[NTG-context] Re: Pre-loading libraries by making custom format

2025-07-29 Thread Max Chernoff via ntg-context
interblocksep = [[\par]], string = false, paragraph = false, plain = false, inline_html_comment = function() end, block_html_comment = function() end, document = [[\starttext %s \stoptext]], blockquote = [[\startquotation %s \stopquotation ]], link = function(label, u

[NTG-context] Patch to use ls-R files with TeX Live

2025-07-24 Thread Max Chernoff via ntg-context
local content = io.loaddata(lsrfile) +if not content or content == "" then +report("no content in ls-R file %a", lsrfile) +return +end + +--[[ slower +local files, remap, directories = { }, { }, { } +local n_files, n_remap, n_directories = 0,

[NTG-context] Re: VSCode support

2025-06-28 Thread Hraban Ramm
/home/hraban/lmtx/tex/texmf-context/context/data/vscode/extensions" --verbose --force --install-extension cdt.context TRACE [File Watcher (node.js)] Request to start watching: /home/hraban/.config/VSCodium/User (excludes: , includes: , filter: , correlationId: ),/hom

[NTG-context] Re: VSCode support

2025-06-28 Thread David Roderick
x/texmf-context/context/data/vscode/extensions" > --verbose --force --install-extension cdt.context > > TRACE [File Watcher (node.js)] Request to start watching: > /home/hraban/.config/VSCodium/User (excludes: > , includes: , filter: , correlationId: > ),/home/hraban/.con

[NTG-context] VSCode support

2025-06-28 Thread Hraban Ramm
t;cdt.context" but also doesn’t install: codium --reuse-window --extensions-dir "/home/hraban/lmtx/tex/texmf-context/context/data/vscode/extensions" --verbose --force --install-extension cdt.context TRACE [File Watcher (node.js)] Request to start watching: /home/hraban/.confi

[NTG-context] Re: How to typeset interactive, hyphenated URLs in a bibliography?

2025-04-06 Thread Riviera Taylor
Hi Pablo, That works for me, thanks for clarifying! Riviera On Sun, 6 Apr 2025 at 18:50, Pablo Rodriguez via ntg-context wrote: > > On 4/6/25 18:40, Pablo Rodriguez via ntg-context wrote: > > [...] > > \goto{\btxflush{howpublished}}[url(\btxflush{howpublished})]

[NTG-context] Re: How to typeset interactive, hyphenated URLs in a bibliography?

2025-04-06 Thread Pablo Rodriguez via ntg-context
On 4/6/25 18:40, Pablo Rodriguez via ntg-context wrote: > [...] > \goto{\btxflush{howpublished}}[url(\btxflush{howpublished})] Sorry, Riviera, this line just should read: \goto{\hyphenatedurl{\btxflush{howpublished}}} [url(\btxflush{howpublished})] I hope it is clear now,

[NTG-context] Re: How to typeset interactive, hyphenated URLs in a bibliography?

2025-04-06 Thread Pablo Rodriguez via ntg-context
btxdoif{howpublished} { Available at:\btxspace \goto{\btxflush{howpublished}}[url(\btxflush{howpublished})] \btxleftparenthesis {Accessed}\btxspace{April 6 2025} \btxrightparenthesis } Just add a space before and add \hyphenatedurl in the first pair of braces (no

[NTG-context] How to typeset interactive, hyphenated URLs in a bibliography?

2025-04-06 Thread Riviera Taylor
ailable at: \goto{\btxflush{howpublished}}[url(\hyphenatedurl{\btxflush{howpublished}})] \btxleftparenthesis {Accessed}\btxspace{April 6 2025} \btxrightparenthesis } \btxperiod \removeunwantedspaces \stopsetups \stopbuffer \savebuffer[list=bib_env,file=bib_env.tex

[NTG-context] Re: Problem with \reference and \at

2025-03-24 Thread Jacob Kauffmann via ntg-context
Hi Uschi, \goto{Seite 33}[other] will get you there. Or \setcounter[userpage][33] combined with \at{Seite}[other]. Best wishes, Jacob Kauffmann > Am 24.03.2025 um 08:44 schrieb Ursula Hermann : > > Dear List, > > If I compile the following example, > > \usecolors[svg

[NTG-context] Problem with \reference and \at

2025-03-24 Thread Ursula Hermann
can I do, to not have the 1, after the page Number? Cause If I try the same example, but use \goto, then it works, but I wanted the page number. Many Thanks Uschi ___ If your question is of interest to others as well

[NTG-context] The formula after the text

2025-02-17 Thread Ursula Hermann
(von Proposition \goto{7.3.53} [Abschnitt:1]). \tf Die Eigenschaften (i)-(iii) fol-\par gen unmittelbar durch leichte Rechnung aus der Definition. \blank (iv) \quad Wir berechnen \m {u × (v × w)}: \startformula \startalign[n=2, align={1: right, 2: right}] \NC u \times (v \times \ w) \NC = u

[NTG-context] Re: The formula after the text

2025-02-17 Thread Wolfgang Schuster
7.3.53}} \usecolors[svg] \setupinteraction   [state=start,    contrastcolor=cornflowerblue] \reference[Abschnitt:1]{7.3.52} {\bi Beweis (von Proposition \goto{7.3.53} [Abschnitt:1]). \tf Die Eigenschaften (i)-(iii) fol-\par gen unmittelbar durch leichte Rechnung aus der Definition. \blank (iv

[NTG-context] The formula after the text

2025-02-17 Thread Ursula Hermann
=cornflowerblue] \reference[Abschnitt:1]{7.3.52} {\bi Beweis (von Proposition \goto{7.3.53} [Abschnitt:1]). \tf Die Eigenschaften (i)-(iii) fol-\par gen unmittelbar durch leichte Rechnung aus der Definition. \blank (iv) \quad Wir berechnen \m {u × (v × w)}: \startformula \startalign[n=2, align={1

[NTG-context] Example, the formular is too much in the middle, should be mor left

2025-02-11 Thread Ursula Hermann
]{7.3.52} {\bi Beweis (von Proposition \goto{7.3.53} [Abschnitt:1]). \tf Die Eigenschaften (i)-(iii) fol-\par gen unmittelbar durch leichte Rechnung aus der Definition. \blank (iv) \space \space Wir berechnen \m u × (\m v × \m w):\nospace \startformula \m u ×(\m v × \m w )=\m u × \startmathmatrix[fences

[NTG-context] Re: Weird date output

2025-01-14 Thread Wolfgang Schuster
}, } local function toroman(n) if n >= 4000 then return toroman(floor(n/1000)) .. " " .. toroman(n%1000) else return rep("M",floor(n/1000)) .. roman[3][floor((n%1000)/100)] .. roman[2][floor((n%100)/10)] .. roman[1][floor((n%10)/1)] end end

[NTG-context] Fwd: Touch my cow: Overlaying a picture with links to text

2025-01-09 Thread Hans Hagen
mp;"}", (a * xstep, b * ystep)); enddef ; \stopMPinclusions \startMPpage % Picture draw externalfigure "cow.pdf" xsized 16cm; % Grid gridscaled; % Text annotb (1, 5, .8, 7.3, "\goto{Maul}[Maul]"); touchtolink (.8, 7.3, "\goto{\blackrule[height=2cm, width=4cm, color

[NTG-context] Touch my cow: Overlaying a picture with links to text

2025-01-09 Thread Axel Kielhorn
xternalfigure "cow.pdf" xsized 16cm; % Grid gridscaled; % Text annotb (1, 5, .8, 7.3, "\goto{Maul}[Maul]"); touchtolink (.8, 7.3, "\goto{\blackrule[height=2cm, width=4cm, color=transparentwhite]}[Maul]"); annotb (6, 2, 7, 3.2, "\goto{Euter}[Euter]"); an

[NTG-context] Re: \goto is corrupting a URL

2024-12-30 Thread Bruce Horrocks
Schuster >>>>> wrote: >>>>> >>>>> Bruce Horrocks schrieb am 27.12.2024 um 00:09: >>>>>> Trying to include a URL as a clickable link using \goto but in the >>>>>> generated PDF the underlying link is corrupted. >>

[NTG-context] Re: \goto is corrupting a URL

2024-12-30 Thread Hans Hagen
\goto but in the generated PDF the underlying link is corrupted. \setupinteraction[state=start] \starttext \goto{https://www.mclpcb.com/blog/polyimide-pcb-material-information-fr4-vs-polyimide-pcb/} [https://www.mclpcb.com/blog/polyimide-pcb-material-information-fr4-vs-polyimide-pcb/)] \stoptext

[NTG-context] Re: \goto is corrupting a URL

2024-12-27 Thread Bruce Horrocks
> On 27 Dec 2024, at 19:21, Hans Hagen wrote: > > On 12/27/2024 8:11 PM, Bruce Horrocks wrote: >>> On 27 Dec 2024, at 10:03, Wolfgang Schuster >>> wrote: >>> >>> Bruce Horrocks schrieb am 27.12.2024 um 00:09: >>>> Trying to

[NTG-context] Re: \goto is corrupting a URL

2024-12-27 Thread Hans Hagen
On 12/27/2024 8:11 PM, Bruce Horrocks wrote: On 27 Dec 2024, at 10:03, Wolfgang Schuster wrote: Bruce Horrocks schrieb am 27.12.2024 um 00:09: Trying to include a URL as a clickable link using \goto but in the generated PDF the underlying link is corrupted. \setupinteraction[state=start

[NTG-context] Re: \goto is corrupting a URL

2024-12-27 Thread Bruce Horrocks
> On 27 Dec 2024, at 10:03, Wolfgang Schuster > wrote: > > Bruce Horrocks schrieb am 27.12.2024 um 00:09: >> Trying to include a URL as a clickable link using \goto but in the generated >> PDF the underlying link is corrupted. >> >> \setupinteraction

[NTG-context] Re: \goto is corrupting a URL

2024-12-27 Thread Wolfgang Schuster
Bruce Horrocks schrieb am 27.12.2024 um 00:09: Trying to include a URL as a clickable link using \goto but in the generated PDF the underlying link is corrupted. \setupinteraction[state=start] \starttext \goto{https://www.mclpcb.com/blog/polyimide-pcb-material-information-fr4-vs-polyimide-pcb

[NTG-context] Re: \goto is corrupting a URL

2024-12-27 Thread Hans Hagen
On 12/27/2024 12:09 AM, Bruce Horrocks wrote: Trying to include a URL as a clickable link using \goto but in the generated PDF the underlying link is corrupted. \setupinteraction[state=start] \starttext \goto{https://www.mclpcb.com/blog/polyimide-pcb-material-information-fr4-vs-polyimide-pcb

[NTG-context] \goto is corrupting a URL

2024-12-26 Thread Bruce Horrocks
Trying to include a URL as a clickable link using \goto but in the generated PDF the underlying link is corrupted. \setupinteraction[state=start] \starttext \goto{https://www.mclpcb.com/blog/polyimide-pcb-material-information-fr4-vs-polyimide-pcb/} [https://www.mclpcb.com/blog/polyimide-pcb

[NTG-context] Re: Deactivate (back)links of the bibliography

2024-10-07 Thread Bruce Horrocks
the back linking. 1) Goto the home directory where Context is installed (the one with “install.sh" in it) 2) Edit the file tex/texmf-context/tex/context/base/mkiv/publ-ini.lua 3) Goto line 2313 which should read: local interactive = not rendering.collected 4) Immediately after it

[NTG-context] (any) link with document breaks Reader DC

2024-06-25 Thread Pablo Rodriguez via ntg-context
Reader for Windows and macOS with the US English version may not crash (I was told). The sample document contains only a link. It has generated from the following source: \setupinteraction[state=start] \starttext \startTEXpage[offset=1dk] \protected\define[1]\myurl% {{\tt\goto

[NTG-context] (off-topic) hovering over links in Acrobat Reader

2024-06-19 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following source: \setupbodyfont[dejavu, sans, 24pt] \setupinteraction[state=start, style=, color=, contrastcolor=, display=new] \enabledirectives[references.border=darkgreen] \def\myurl#1% {{\tt\goto{\hyphenatedurl{#1}}[url(#1)]}} \protect

[NTG-context] Re: Cite-proc Lua - Following up

2024-06-12 Thread Max Chernoff
@cite/entry"] = false, ["@bibliography/entry"] = [[\item %s]] .. "\n" } function ConTeXtWriter:write_escaped(str, context) return string.formatters["%!tex!"](str) end function ConTeXtWriter:write_link(inline, context)

[NTG-context] Re: Problem with PNG images in the latest standalone version

2024-05-24 Thread Hajtmar Jaroslav
-new.png][height=3.5cm] \par PNG local file: \externalfigure[gyzalogo-new.png][height=3.5cm] \par Results: \par \goto{PDF file by ConTeXt ver: 2024.05.17}[url(https://hajtmar.cz/temp-ntg/minimalexample20240517.pdf)] \par \goto{PDF file by ConTeXt ver: 2018.04.04}[url(https://hajtmar.cz

[NTG-context] Re: defining hashtag simulator

2024-05-20 Thread Hans Hagen
an you put all the code in the one Lua function and not need to put hbox or goto function outside of Lua? In the next upload you can do this: \protected\def\Hashtag#1% {\begingroup \nohyphens \spacechar\underscoreasciicode \nospaces\plusthree \letterhash#1% \endgroup} (was a

[NTG-context] Re: defining hashtag simulator

2024-05-20 Thread Hans Hagen via ntg-context
an you put all the code in the one Lua function and not need to put hbox or goto function outside of Lua? \startluacode interfaces.implement { name = "Hashtag", public= true, protected = true, arguments = "string", actions = function

[NTG-context] Re: defining hashtag simulator

2024-05-19 Thread seyal . zavira
ot;#1" replacespace = string.gsub(str," ","_") context.letterhash() context(replacespace) } } } \starttext \Hashtag{hello} \stoptext i used hbox for making phrase unbreakable. How can you put all the code in the one Lua function and

[NTG-context] Re: defining hashtag simulator

2024-05-19 Thread Hans Hagen
) ... "Table 215 — Named actions" lists several named actions (PDF 1.2) that interactive PDF processors shall support; further names may be added in the future. Table 215 — Named ac Only a few were ever formal ok. Acrobat supports some more (at least did) but even on the \goto{test}[act

[NTG-context] Re: How can I do this?

2024-03-08 Thread Otared Kavian
[color=black, height=0.10ex, width=13.50cm] \reference[Regel:1]{3.1} {\bf Aufgabe 3.2.18} Formulieren Sie gemäß der Regel (\goto{3.1}[Regel:1]) äquivalent \startitemize[n,packed,broad] \item \m{\forall n \in \naturalnumbers\mtp{:} n^2 > n \implies n > 1}, \item \m{\forall n \in \naturalnumbe

[NTG-context] How can I do this?

2024-03-06 Thread Ursula Hermann
=13.50cm] \setupinteraction [state=start, color=blue] \reference[Regel:1]{3.1}\par {\bf Aufgabe 3.2.18} Formulieren Sie gemäß der Regel (\goto{3.1}[Regel:1]) äquivalent \startitemize[n,packed,broad] \item \m{\forall n \in \naturalnumbers\mtp{:} n^2 > n \implies n > 1},\item \m{\forall

[NTG-context] Re: \in, \at, and labletext

2024-02-29 Thread Ursula Hermann
Dear List, So I changed my sentence a little bit, now it works perfect, as I wanted it. \setupinteraction[state=start] \starttext \reference[Rule:1]{Rule (3.1)} Formulate equivalents according to rule (\goto {3.1} [Rule:1]). \stoptext Uschi Von: Ursula

[NTG-context] Hyperlinks cease working after page selection

2024-02-26 Thread Michael Guravage
greatly appreciated. \setupinteraction[state=start, color=darkblue] \setupwhitespace [big] \starttext Consult the \goto{\ConTeXt\ wiki}[url(https://wiki.contextgarden.net/)] .\par \dorecurse{5}{\samplefile{lorem}\par} \stoptext Processed as follows: context mwe.tex context --extra=select

[NTG-context] Re: XML processing, unwanted indentation/alignment

2024-02-16 Thread Taco Hoekwater
; \ifxmlattempty{#1}{maiden_name} {} \else { >> \tfxx(\xmlatt{#1}{maiden_name})} \fi} I am fairly certain the “ {} “ before the \else introduces spaces. >> >> % Create a mailto:link that associates a individual's name with their email >> address. >> \def

[NTG-context] Re: XML processing, unwanted indentation/alignment

2024-02-15 Thread Bruce Horrocks
} \else > {\xmlatt{#1}{initials}, \xmlatt{#1}{first_name}} \fi Remove the space after {first_name} here >\ifxmlattempty{#1}{maiden_name} {} \else { > \tfxx(\xmlatt{#1}{maiden_name})} \fi} > > % Create a mailto:link that associates a individual's name with their email >

[NTG-context] XML processing, unwanted indentation/alignment

2024-02-15 Thread Michael Guravage
ls}, \xmlatt{#1}{first_name}} \fi \ifxmlattempty{#1}{maiden_name} {} \else { \tfxx(\xmlatt{#1}{maiden_name})} \fi} % Create a mailto:link that associates a individual's name with their email address. \def\nameemaillink#1% {\ifxmlattempty{#1}{email} {\name{#1}} \else {\goto{\name{#1}} [url(mail

[NTG-context] Re: removing whitespace

2024-02-13 Thread Wolfgang Schuster
Michael Guravage schrieb am 13.02.2024 um 14:01: While reading the documentation I spotted something similar from which I derived this solution: \setupinteraction[state=start] \def\squeeze#1%   {     \goto{#1} [url(tel:\ctxlua{context(string.gsub("#1", " ", "")

[NTG-context] Re: removing whitespace

2024-02-13 Thread Michael Guravage
While reading the documentation I spotted something similar from which I derived this solution: \setupinteraction[state=start] \def\squeeze#1% { \goto{#1} [url(tel:\ctxlua{context(string.gsub("#1", " ", ""))})] } \starttext Call \squeeze{01234 56789

[NTG-context] removing whitespace

2024-02-12 Thread Michael Guravage
ction[state=start] \def\squeeze#1% {\goto{#1}[url(tel:#1)]} \starttext Call \squeeze{01234 56789} \stoptext -- With kind regards, Michael ___ If your question is of interest to others as well, please add an ent

[NTG-context] Re: LuaMetaTeX code

2024-01-19 Thread Henri Menke via ntg-context
On Fri, 2024-01-19 at 13:56 +0530, Shiv Shankar Dayal wrote: > Dear Hans, > > I saw the C code of LuaMetaTeX and I saw a lot of gotos which is not > good > coding practice. These potions of code which have goto should be > refactored. https://xkcd.com/292/ > I am a C progra

[NTG-context] Re: LuaMetaTeX code

2024-01-19 Thread Hans Hagen
On 1/19/2024 9:26 AM, Shiv Shankar Dayal wrote: Dear Hans, I saw the C code of LuaMetaTeX and I saw a lot of gotos which is not good coding practice. These potions of code which have goto should be refactored. I am a C programmer, but I know very little of TeX. If you can point me towards

[NTG-context] Re: LuaMetaTeX code

2024-01-19 Thread Shiv Shankar Dayal
uot;; > > > > These ensure type-safety in the code and are good coding practice. > > > > On Fri, Jan 19, 2024 at 1:56 PM Shiv Shankar Dayal < > shivshankar.da...@gmail.com> wrote: > > Dear Hans, > > > > I saw the C code of LuaMetaTeX and I saw a lot of

[NTG-context] Re: LuaMetaTeX code

2024-01-19 Thread Taco Hoekwater
rsion_string="2.10.10"; > > These ensure type-safety in the code and are good coding practice. > > On Fri, Jan 19, 2024 at 1:56 PM Shiv Shankar Dayal > wrote: > Dear Hans, > > I saw the C code of LuaMetaTeX and I saw a lot of gotos which is not good > coding

[NTG-context] Re: LuaMetaTeX code

2024-01-19 Thread Shiv Shankar Dayal
of gotos which is not good > coding practice. These potions of code which have goto should be refactored. > > I am a C programmer, but I know very little of TeX. If you can point me > towards where should I start for TeX(perhaps TeX Book or TeX for the > Impatient), I can help wi

[NTG-context] LuaMetaTeX code

2024-01-19 Thread Shiv Shankar Dayal
Dear Hans, I saw the C code of LuaMetaTeX and I saw a lot of gotos which is not good coding practice. These potions of code which have goto should be refactored. I am a C programmer, but I know very little of TeX. If you can point me towards where should I start for TeX(perhaps TeX Book or TeX

[NTG-context] too large dimension in current latest

2024-01-15 Thread Pablo Rodriguez via ntg-context
attribute \dostarttagged \t!link \empty #1\dostoptagged }{#1} \else #1\fi \ ... \mypersonalurl #1#2->\bgroup \goto {\urlstyle {\hyphenatedurl {#2}}}[url(#1)] \egroup {} ... I can't work with sizes bigger than about 19 feet (45 Theodores as of 2023), 575 centimeters, 2300 Toves, 23

[NTG-context] Re: [ flowing figures ]

2024-01-11 Thread Henning Hraban Ramm
ust notice that there is a hyperlink, but will not even open the pdf. Let alone jumping to the intended page. mupdf does not respond to the link either Is this even possible? \goto{\externalfigure[thumb/20210213_142125-skel.png][width=30mm]}[url(__index.pdf#page=1)] To open an external file

[NTG-context] Re: [ flowing figures ]

2024-01-11 Thread Floris van Manen via ntg-context
e pdf. Let alone jumping to the intended page. mupdf does not respond to the link either Is this even possible? \goto{\externalfigure[thumb/20210213_142125-skel.png][width=30mm]}[url(__index.pdf#page=1)] .Floris _

[NTG-context] Re: Links

2024-01-09 Thread Ursula Hermann
\pagereference. Then you can use \in[chap:first], \about[chap:first] or \at[chap:first]. For external links, you use \goto (it’s a bit extensive). Please look up the syntax reference in the wiki. Hraban ___ If your q

[NTG-context] Re: Links

2024-01-08 Thread Henning Hraban Ramm
manually using \textreference and \pagereference. Then you can use \in[chap:first], \about[chap:first] or \at[chap:first]. For external links, you use \goto (it’s a bit extensive). Please look up the syntax reference in the wiki. Hraban

[NTG-context] Re: QR Code

2023-12-18 Thread Michal Vlasák
of using the zint _library_. I published compiled versions of zint and couple of other libraries to the optional libraries repository: https://github.com/contextgarden/luametatex-optional-libraries https://github.com/contextgarden/luametatex-optional-libraries/releases/tag/v20230902 I test

[NTG-context] Re: mtx-synctex.lua question

2023-12-08 Thread Jim
On Fri, Dec 8, 2023 at 21:18 (+0100), Hans Hagen wrote: > On 12/8/2023 7:51 PM, Jim wrote: >> Hi Hans (and anyone else interested in synctex), >> 282a284,285 >>> locate( 0, s) if fi ~= 0 then tl = s ; goto done end >>> locate( 0,-s) if fi ~= 0 then tl = s ; got

[NTG-context] Re: mtx-synctex.lua question

2023-12-08 Thread Hans Hagen
On 12/8/2023 7:51 PM, Jim wrote: Hi Hans (and anyone else interested in synctex), 282a284,285 locate( 0, s) if fi ~= 0 then tl = s ; goto done end locate( 0,-s) if fi ~= 0 then tl = s ; goto done end and then wrote the following quick and dirty shell

[NTG-context] Re: mtx-synctex.lua question

2023-12-08 Thread Jim
cal function findlocation(filename,page,xpos,ypos,tolerance) >>> there is the following code: >>> for s=1,tolerance,max(tolerance//10,1) do >>> locate( s, 0) if fi ~= 0 then tl = s ; goto done end >>> locate(-s, 0) if fi ~= 0 then tl = s ; goto done end >>&g

[NTG-context] Re: mtx-synctex.lua question

2023-12-08 Thread Jim
(tolerance//10,1) do >> locate( s, 0) if fi ~= 0 then tl = s ; goto done end >> locate(-s, 0) if fi ~= 0 then tl = s ; goto done end >> locate( s, s) if fi ~= 0 then tl = s ; goto done end >> locate( s,-s) if fi ~= 0 then tl = s ; goto done end >> locate(-s, s) if fi ~=

[NTG-context] Re: mtx-synctex.lua question

2023-12-08 Thread Hans Hagen via ntg-context
On 12/7/2023 7:23 PM, Jim wrote: Hi, In mtx-synctex.lua, inside local function findlocation(filename,page,xpos,ypos,tolerance) there is the following code: for s=1,tolerance,max(tolerance//10,1) do locate( s, 0) if fi ~= 0 then tl = s ; goto done

[NTG-context] mtx-synctex.lua question

2023-12-07 Thread Jim
Hi, In mtx-synctex.lua, inside local function findlocation(filename,page,xpos,ypos,tolerance) there is the following code: for s=1,tolerance,max(tolerance//10,1) do locate( s, 0) if fi ~= 0 then tl = s ; goto done end locate(-s, 0

[NTG-context] Re: (again) wrong destination types?

2023-12-06 Thread Pablo Rodriguez via ntg-context
. > > What are you using for links to external documents? If just a single > command such as \goto then you might be able to get away with defining a > wrapper (e.g. \myGoto) that does > \setupinteraction[state=start,page=name,focus=standard] then the \goto > command then \

[NTG-context] Re: (again) wrong destination types?

2023-12-04 Thread Bruce Horrocks
hope it is clearer now. Let me know if it is not. > > My issue is that I cannot avoid having "page=name" for links to external > documents, but this breaks footnotes and other special operation links. What are you using for links to external documents? If just a single command suc

[NTG-context] wrong destination types?

2023-11-17 Thread Pablo Rodriguez via ntg-context
alter the page view (when the document is not viewed as full page). Sorry, I don’t have other way to say it. I should get (only named destination value): 7 0 obj << /D [ 6 0 R /XYZ 76.84458 722.7349 null ] >> endobj And I’m getting: 4 0 obj << /D [ 1 0 R /F

[NTG-context] Re: context not producing synctex output that my synctex program can use

2023-11-15 Thread Jim
en.net/SyncTeX) somewhere? When I try that out, for example with mtxrun --script synctex --edit --name=a.tex --line=222 a.tex I am rewarded with sandbox | variable 'linenumber' has no checker (I tried various variations on that line I won't bore you with, b

[NTG-context] Re: named destinations in /GoToR

2023-11-14 Thread Pablo Rodriguez via ntg-context
whether they may be created adding something like: identifier identifier-1 identifier-2 identifier-3 … identifier-n This way (or a similar one) all named destinations are created. Of course, when linking with \goto, \in, \at, \about, the right identifier should be chosen. With links within the

[NTG-context] Re: named destinations in /GoToR

2023-11-13 Thread Michal Vlasák
y > contain only digits. > > Then I need to access some named destinations from a document such as: > > \setupinteraction[state=start, > focus=standard] > \starttext > \dorecurse{5} > {\goto{Chapter \recurselevel}[whatever.pdf::\recurselevel], > \goto

[NTG-context] named destinations in /GoToR

2023-11-13 Thread Pablo Rodriguez via ntg-context
\starttext \dorecurse{5} {\goto{Chapter \recurselevel}[whatever.pdf::\recurselevel], \goto{section \recurselevel}[whatever.pdf::sec-\recurselevel]\par} \stoptext Sorry, but after reading again lpdf-ano.mkxl I’m not sure whether I can get named destinations (such as "/D (4)" or "/D

[NTG-context] Re: context not producing synctex output that my synctex program can use

2023-11-12 Thread Hans Hagen
intercept some 'goto the text file' command and then launches an editor (afik the library has some heuristics build in wrt boxes and nesting and so); at the tex end there is also a library that kicks in addiional code for nodes and the backend (which is why enabling synctex will have

[NTG-context] Re: colors for links

2023-10-14 Thread Hans Hagen via ntg-context
hat one can say: […] I'll also add \outline and \outlined […] which of course you then will wikify ... Of course, I’ll wikify this new feature in ConTeXt. As it might help other users, I‘m happy to help. I’ll have to wait until I test \namedgoto myself, because I don’t get how \namedgoto may di

[NTG-context] Re: colors for links

2023-10-14 Thread Pablo Rodriguez
lp other users, I‘m happy to help. I’ll have to wait until I test \namedgoto myself, because I don’t get how \namedgoto may differ from \goto. > I attached an example but there is no upload (will happen when the build > is running again because I can't make osx bins here). So al

[NTG-context] Re: colors for links

2023-10-14 Thread Hans Hagen via ntg-context
[references.border=darkgreen]% \goto{#1}[url(#1)]\stop} \def\intwo#1{% \start\setupinteraction[color=darkred]% \enabledirectives[references.border=darkred]% \goto{#1}[url(#1)]\stop} \def\inthree#1{% \start\setupinteraction[color=darkblue]% \enabledirectives

[NTG-context] colors for links

2023-10-12 Thread Pablo Rodriguez
Hi Hans, I have the following source, which tries to resemble three kinds of links: \setupinteraction[state=start, style=, focus=standard] \def\inone#1{% \start\setupinteraction[color=darkgreen]% \enabledirectives[references.border=darkgreen]% \goto{#1}[url(#1)]\stop

[NTG-context] Re: escaping \ in Lua

2023-09-06 Thread Pablo Rodriguez
On 9/5/23 21:00, Hans Hagen wrote: > On 9/5/2023 6:43 PM, Pablo Rodriguez wrote: >> [...] >> Sorry for the obscure question, but how can I access this with >> "\goto{link to external}[a(b).pdf]"? > > \goto{link to external}[file(a(b).pdf)] Ma

[NTG-context] XML, multiple spaces encoded as %20 get merged into one space

2023-09-06 Thread denis.maier
tartalignment[center] \goto {\xmlfilter{#1}{/graphic/command(xml:graphic)}} [url(\xmlfilter{#1}{/link/command(xml:link)})] \stopalignment \stopplacefigure \goto{test}[url(\xmlfilt

[NTG-context] Fwd: escaping \ in Lua

2023-09-05 Thread Hans Hagen via ntg-context
] \enabledirectives[references.border=darkgreen] \starttext \startTEXpage[offset=1dk] \attachment[method=hidden, file=a(b).pdf] \stopTEXpage \stoptext The name in EmbeddedFiles is "a\(b\).pdf". Sorry for the obscure question, but how can I access this with "\goto{link

[NTG-context] escaping \ in Lua

2023-09-05 Thread Pablo Rodriguez
).pdf". Sorry for the obscure question, but how can I access this with "\goto{link to external}[a(b).pdf]"? I guess there may be some Lua magic, but I cannot write a proper ":gsub("%(", "%\%(

[NTG-context] Re: (feature proposal) link to attachments: /GoToE

2023-09-03 Thread Pablo Rodriguez
ethod=hidden, reference=foobar, ] \goto{Link to attachment}[foobar] \stopTEXpage \stoptext Many thanks for your help, Pablo ___ If your question is of interest to others as well, please add an entry to the Wik

[NTG-context] Re: (feature proposal) link to attachments: /GoToE

2023-09-03 Thread Hans Hagen
-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf#G11.2048909). At least to begin with, only links to embedded children documents would be required. If this GoToR is generated by ConTeXt from "\goto{whatever}[destination-doc::page(15)]": 17 0 obj << /D [ 14 /Fit ] /F (des

[NTG-context] (feature proposal) link to attachments: /GoToE

2023-09-03 Thread Pablo Rodriguez
#G11.2048909). At least to begin with, only links to embedded children documents would be required. If this GoToR is generated by ConTeXt from "\goto{whatever}[destination-doc::page(15)]": 17 0 obj << /D [ 14 /Fit ] /F (destination-doc.pdf) /NewWindow true /S /GoToR

[NTG-context] XML: Correct usage of hash symbol in url

2023-08-25 Thread denis.maier
and e[1].at[a] local s = u and lpeg.match(lpeg.patterns.urlunescaper,u) context(s) end \stopluacode \startxmlsetups xml:element \xmldoifelse{#1}{.[@href and contains(@href,'https://iiif.ub.unibe.ch')]} {\goto{\xmlflush{#1}}[url(https://uv-v4.

[NTG-context] Experiments with \doloopoverlist

2023-08-16 Thread Andres Conrado Montoya
oes not require inlineuserdata? %% MWE: \setupinteraction[state=start] \define[2]\imghref{\bgroup\goto{#1}[url(#2)]\egroup} \defineexternalfigure[logo][height=1em] \definedataset[autores] \setdataset[autores][ nombre={Angie Natalia Farfán Acevedo}, cvlac={ https://scienti.minciencias.gov.co/cvl

[NTG-context] Re: Why overbar is so big

2023-08-13 Thread Hans Hagen
rmanentment inacabada. Per aquest motiu convé saber quina versió del document esteu llegint. 28 29 \medskip 30 La versió d'aquest document és la {\bf 0.4.0-alfa.\currentdate[year,-, mm,-,dd]}. 31 32 \bigskip 33 Aquest document ha estat generat, \currentdate[wee

[NTG-context] Re: Why overbar is so big

2023-08-13 Thread Xavier B.
uina versió del document esteu llegint. 28 29 \medskip 30 La versió d'aquest document és la {\bf 0.4.0-alfa.\currentdate[year,-, mm,-,dd]}. 31 32 \bigskip 33 Aquest document ha estat generat, \currentdate[weekday,{ },day,{ },month,{ },year] a les \currenttime, usant prog

[NTG-context] Re: upload

2023-08-10 Thread Henning Hraban Ramm
: """ \setupreferencing[left=,right=,] \starttext \about[something] \stoptext """ tex error > tex error on line 5 in file referencetest.tex: Extra }, or forgotten \endgroup \egroup \about ...ways \let \\\space \postponenotes \referencingparameter \c!left \d

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-22 Thread Pablo Rodriguez
".pdf", "ba.pdf") end ) \stopluacode \stoptext Then you have calling file (with file:///): \setupinteraction[state=start, focus=standard] \def\MyURL#1{\goto{\tt#1}[url(#1)]} \starttext Link to other document: \MyURL{file:///path/ba.pdf\letterhash n_73

[NTG-context] "true" units in LuaMetaTeX

2022-10-26 Thread Max Chernoff via ntg-context
d *value, halfword *order) { + AGAIN: do { tex_get_x_token(); } while (cur_cmd == spacer_cmd); @@ -2327,7 +2328,6 @@ static int tex_aux_scan_unit(halfword *num, halfword *denom, halfword *value, ha goto BACK_TWO; } cur_cs = save_cur_cs; - AGA

Re: [NTG-context] never add a hyphen to break a URL

2022-10-25 Thread Steffen Wolfrum via ntg-context
aksimil?show_search_work&s_query=retractata&s_lbworkid=lb487378&s_mediatype=faksimil&s_word_form_only] > [https://litteraturbanken.se] > > \starttext > >before \goto{\url[litteraturbanken]}[url(litteraturbanken)] after > >before \from[litteraturbanken]

Re: [NTG-context] never add a hyphen to break a URL

2022-10-25 Thread Hans Hagen via ntg-context
\starttext before \goto{\url[litteraturbanken]}[url(litteraturbanken)] after before \from[litteraturbanken] after \stoptext beware of viewer behaviour: some viewers parse the displayed pdf Hans -

Re: [NTG-context] never add a hyphen to break a URL

2022-10-25 Thread Steffen Wolfrum via ntg-context
g-context > mailto:ntg-context@ntg.nl>>: > > A simpler approach would read (there is a single url, instead of two > [less typos in the end]): > > \setupinteraction[state=start] > > \starttext > > \def\MyURL[#1]{\goto{\tt\hyphenatedurl{#1}}[url(#1)]} > > \My

Re: [NTG-context] never add a hyphen to break a URL

2022-10-24 Thread Pablo Rodriguez via ntg-context
rttext \def\MyURL[#1]{\goto{\tt\hyphenatedurl{#1}}[url(#1)]} \MyURL[https://litteraturbanken.se/författare/CollijnI/titlar/ActaEtProcessusCanon/sida/614/faksimil?show_search_work&s_query=retractata&s_lbworkid=lb487378&s_mediatype=faksimil&s_word_form_only] \stoptext But https://wik

[NTG-context] list not following "focus=standard"

2022-10-14 Thread Pablo Rodriguez via ntg-context
1 0 R /Fit ] /S /GoTo >> endobj Instead of being a named destination, such as in: 5 0 obj << /D (#3) /S /GoTo >> endobj 11 0 obj << /D [ 1 0 R /XYZ 61.65861 129.0214 null ] >> endobj 40 0 obj << /Limits [ (#3) (conte

Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-22 Thread amano.kenji via ntg-context
entation, you would have to decide how that information would be > kept (this is mostly the directory structure problem). > > With that said, taking Hans' instructions as a start: > > On Fri Aug 19, 2022 at 3:11 PM CEST, Hans Hagen via ntg-context wrote: > > > Not s

Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-21 Thread Michal Vlasák via ntg-context
ide how that information would be kept (this is mostly the directory structure problem). With that said, taking Hans' instructions as a start: On Fri Aug 19, 2022 at 3:11 PM CEST, Hans Hagen via ntg-context wrote: > Not sure what you mean here but basically a (future) installation is: > &

Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-19 Thread amano.kenji via ntg-context
hat describes manual offline > > installation for package distributors? > > Not sure what you mean here but basically a (future) installation is: > > - unzip the main zip file > - goto the source subtree > - run build.sh (assumes compiler and cmake installed) > - move the binary

Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-19 Thread Hans Hagen via ntg-context
: - unzip the main zip file - goto the source subtree - run build.sh (assumes compiler and cmake installed) - move the binary file to the relevant bin location - set symlinks from luametatex to mtsrun and context - copy mtxrun.lua and context.lue there too - adapt your path - maybe add texmf-fonts

Re: [NTG-context] Custom engine settings in AUCTEX

2022-07-02 Thread Jan-Erik Hägglöf via ntg-context
ll.el > <https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el>" > 'silent 'inhibit-cookies) > (goto-char (point-max)) > (eval-print-last-sexp))) > (load bootstrap-file nil 'nomessage)) > > > > ;; Install us

[NTG-context] Custom engine settings in AUCTEX

2022-07-01 Thread Mauricio Reyna via ntg-context
(with-current-buffer (url-retrieve-synchronously "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"; 'silent 'inhibit-cookies) (goto-char (point-max)) (eval-print-last-sexp))) (load bootstrap-file nil 'no

  1   2   3   4   5   6   7   8   9   >