Re: [NTG-context] ASCII mode within \footnote

2019-11-01 Thread Hans Hagen
On 11/1/2019 2:23 PM, cont...@vivaldi.net wrote: Hello, the following code doesn't compile: \starttext   \startasciimode %@$\stopasciimode   A   \footnote{\startasciimode %@$\stopasciimode} % Try to comment this \stoptext When the line with \footnote is commented,

[NTG-context] ASCII mode within \footnote

2019-11-01 Thread context
Hello, the following code doesn't compile: \starttext \startasciimode %@$\stopasciimode A \footnote{\startasciimode %@$\stopasciimode} % Try to comment this \stoptext When the line with \footnote is commented, compilation works fine. What's "evil" in

Re: [NTG-context] issue embedding from Lua code

2019-11-01 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 01.11.2019 um 11:48: 2. Use the asciimode environment to make TeX's special characters normal letters. Is there any ascii mode equivalent for Lua? I mean, something like "asciimode(whatever)". You can change catcode regimes to change meaning of the special

Re: [NTG-context] issue embedding from Lua code

2019-11-01 Thread Pablo Rodriguez
On 11/1/19 11:08 AM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 01.11.2019 um 10:44: >> [...] >> \start >> \catcode`\#=12 % local change of character TeX category >> \doloopif{\cA}{~=}{}{\getbuffer[main]} >> \stop >> >> This \start..\stop is required to get

Re: [NTG-context] issue embedding from Lua code

2019-11-01 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 01.11.2019 um 10:44: On 11/1/19 9:13 AM, Wolfgang Schuster wrote: Pablo Rodriguez schrieb am 01.11.2019 um 08:20: [...] I don’t know why I do get the second attachment, but not the first one. Lua code seems to be fine (given the last command in the sample). Could

Re: [NTG-context] issue embedding from Lua code

2019-11-01 Thread Pablo Rodriguez
On 11/1/19 9:13 AM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 01.11.2019 um 08:20: >> [...] >> I don’t know why I do get the second attachment, but not the first one. >> Lua code seems to be fine (given the last command in the sample). >> >> Could anyone explain me what I’m doing

Re: [NTG-context] issue embedding from Lua code

2019-11-01 Thread Hans Hagen
On 11/1/2019 9:13 AM, Wolfgang Schuster wrote: Pablo Rodriguez schrieb am 01.11.2019 um 08:20: Dear list, I have the following sample: \setupinteraction[state=start] \starttext \startluacode function document.special_attachment(reference) year = reference:sub(7,

Re: [NTG-context] issue embedding from Lua code

2019-11-01 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 01.11.2019 um 08:20: Dear list, I have the following sample: \setupinteraction[state=start] \starttext \startluacode function document.special_attachment(reference) year = reference:sub(7, 10) attachment_url =

[NTG-context] issue embedding from Lua code

2019-11-01 Thread Pablo Rodriguez
Dear list, I have the following sample: \setupinteraction[state=start] \starttext \startluacode function document.special_attachment(reference) year = reference:sub(7, 10) attachment_url = "https://www.boe.es/buscar/pdf/; .. year .. "/" .. reference ..