Re: [NTG-context] A Spanish introduction to ConTeXt Mark IV

2020-10-13 Thread Jairo A. del Rio
Hi, Joaquín. I've just found your introduction yesterday and I have to say it is a pleasure to read it. I can help you with some areas you haven't discussed too much, e.g. Lua interfaces and Metapost (well, I'm not as skilled as Aditya or Hans in the latter), as I use it often. I'll send you a

[NTG-context] A Spanish introduction to ConTeXt Mark IV

2020-10-13 Thread Joaquín Ataz López
Sorry. By mistake I sent the message as a reply to another one, when in fact I was trying to start a new thread with it. I'm sending it again (I think I'll do it right now): - Good morning to everyone. Although I guess it will not be of interest to

[NTG-context] A Spanish introduction to ConTeXt Mark IV

2020-10-13 Thread Joaquín Ataz López
Good morning to everyone. Although I guess it will not be of interest to most of the list members, I wanted to communicate that I have written an introduction to ConTeXt Mark IV in Spanish, which can be downloaded at https://webs.um.es/jal/docs/introCTX.pdf. Its title is "An Introduction

Re: [NTG-context] Some interaction questions

2020-10-13 Thread Denis Maier
Follow up, I'm trying to also ignore commands when setting PDF metadata: The wiki gives these examples:  \appendtoks \def\CONTEXT{ConTeXt}  \to \simplifiedcommands And:  \appendtoks \let\quad\space  \to \simplifiedcommands So, I just added this to my environment file: \appendtoks  

Re: [NTG-context] Some interaction questions

2020-10-13 Thread Pablo Rodriguez
On 10/13/20 10:14 PM, Denis Maier wrote: > [...] > So, I just added this to my environment file: > > \appendtoks >   \def\em{\space} > \to \simplifiedcommands > > But, the \em still shows up in the PDF metadata. Is this still the > recommended way to do this? Or is there an easier way? I guess,

Re: [NTG-context] Some interaction questions

2020-10-13 Thread Denis Maier
Thanks. Both suggestions were very helpful. Best, Denis Am 13.10.2020 um 16:14 schrieb Pablo Rodriguez: On 10/13/20 11:40 AM, Denis Maier wrote: Hi, I have a few more question regarding interaction/PDF bookmarks and PDF links: - How can you ignore Commands in bookmarks? Like when instead of

Re: [NTG-context] need help comparing strings

2020-10-13 Thread Pablo Rodriguez
On 10/13/20 7:14 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 13.10.2020 um 19:06: >> [...] >> In any case, I cannot compare to a number: >> >>\startluacode >> userdata = userdata or {} >> function userdata.numbersfname(name) >> return string.match(name, "%d+")

Re: [NTG-context] need help comparing strings

2020-10-13 Thread Pablo Rodriguez
On 10/13/20 5:33 PM, Pablo Rodriguez wrote: > [...] > \starttext > \ctxlua{ d = [[\env{fname}]] } > > d: \cldcontext{d}\\ > \doifelse{\cldcontext{d:match("\letterpercent d+")}} > {123}{yes}{no} > \stoptext > [...] > 3. I’m trying this on a Linux box, but on Windows I would say that

Re: [NTG-context] need help comparing strings

2020-10-13 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 13.10.2020 um 19:06: On 10/13/20 5:54 PM, Aditya Mahajan wrote: On Tue, 13 Oct 2020, Pablo Rodriguez wrote: [...] Could anyone explain me what I’m missing here? Many thanks for your reply, Aditya. I find it simpler to write macros where there is clean

Re: [NTG-context] need help comparing strings

2020-10-13 Thread Pablo Rodriguez
On 10/13/20 6:14 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 13.10.2020 um 17:33: >> [...] >> 2. Is there no Lua version of \getvariable{...}{...}? > > There is no need because everything is stored in a Lua table. > [...] > local argumentlist  = document.arguments.arguments >

Re: [NTG-context] need help comparing strings

2020-10-13 Thread Pablo Rodriguez
On 10/13/20 5:54 PM, Aditya Mahajan wrote: > On Tue, 13 Oct 2020, Pablo Rodriguez wrote: >> [...] >> Could anyone explain me what I’m missing here? Many thanks for your reply, Aditya. > I find it simpler to write macros where there is clean communicating > between tex and lua. For example: >

Re: [NTG-context] need help comparing strings

2020-10-13 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 13.10.2020 um 17:33: Dear list, I have the following sample: \starttext \def\numbersfname {\cldcontext{string.match([[\env{fname}]], "\letterpercent d+")}} \ctxlua{ c = context.getvariable("environment", "fname") or "a" } \ctxlua{ d = [[\env{fname}]]

Re: [NTG-context] need help comparing strings

2020-10-13 Thread Aditya Mahajan
On Tue, 13 Oct 2020, Pablo Rodriguez wrote: > Dear list, > > I have the following sample: > > \starttext > \def\numbersfname > {\cldcontext{string.match([[\env{fname}]], "\letterpercent d+")}} > \ctxlua{ c = context.getvariable("environment", "fname") or "a" } > \ctxlua{ d =

[NTG-context] need help comparing strings

2020-10-13 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \def\numbersfname {\cldcontext{string.match([[\env{fname}]], "\letterpercent d+")}} \ctxlua{ c = context.getvariable("environment", "fname") or "a" } \ctxlua{ d = [[\env{fname}]] } tex: \numbersfname\\ \doifelse{}

Re: [NTG-context] bug with hz in LMTX?

2020-10-13 Thread Hans Hagen
On 10/13/2020 4:47 PM, Pablo Rodriguez wrote: On 10/13/20 1:36 PM, Hans Hagen wrote: On 10/12/2020 4:59 PM, Pablo Rodriguez wrote: [...] On page 36 (https://pdf.ousia.tk/wrong-font-expansion.pdf#page=36), lines 4, 11 and 20 are wrong. Current LMTX (LuaTeX 2.07 20200920 + ConTeXt MkIV

Re: [NTG-context] bug with hz in LMTX?

2020-10-13 Thread Pablo Rodriguez
On 10/13/20 1:36 PM, Hans Hagen wrote: > On 10/12/2020 4:59 PM, Pablo Rodriguez wrote: >> [...] >> On page 36 (https://pdf.ousia.tk/wrong-font-expansion.pdf#page=36), >> lines 4, 11 and 20 are wrong. >> >> Current LMTX (LuaTeX 2.07 20200920 + ConTeXt MkIV 2020.09.20 23:02) has >> the issue, while

Re: [NTG-context] Some interaction questions

2020-10-13 Thread Pablo Rodriguez
On 10/13/20 11:40 AM, Denis Maier wrote: > Hi, > > I have a few more question regarding interaction/PDF bookmarks and PDF > links: > > - How can you ignore Commands in bookmarks? Like when instead of "The > concept of {\em bookmarks}", I'd prefer to just have "The concept of > bookmarks". I know I

[NTG-context] Some interaction questions

2020-10-13 Thread Denis Maier
Hi, I have a few more question regarding interaction/PDF bookmarks and PDF links: - How can you ignore Commands in bookmarks? Like when instead of "The concept of {\em bookmarks}", I'd prefer to just have "The concept of bookmarks". I know I can just use something like

Re: [NTG-context] font clarification

2020-10-13 Thread Hans Hagen
On 10/13/2020 12:41 AM, jbf wrote: Can someone clarify a font issue for me please. I have the following setup: \definefontfamily[mainface][rm][TeX Gyre Pagella] \definefontfamily [mainface] [ss] [Arial][tf=file:arial:ttf] \definefontfamily [mainface] [mm] [TeX Gyre Pagella Math]

Re: [NTG-context] bug with hz in LMTX?

2020-10-13 Thread Hans Hagen
On 10/12/2020 4:59 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \showframe\showgrid \setuplayout[width=middle] \definefontfamily[mainface][rm][TeX Gyre Pagella] [features={default, quality}] \setupbodyfont[mainface, 20pt] \setupalign[hanging, hz]

Re: [NTG-context] How do you deal with inappropriate ligatures?

2020-10-13 Thread Hans Hagen
On 10/12/2020 11:09 PM, Denis Maier wrote: Am 12.10.2020 um 22:35 schrieb Hans Hagen: On 10/12/2020 4:55 PM, Denis Maier wrote: Hi, with LuaLaTeX I used to use the selnolig package to disable inappropriate ligatures. With ConTeXt I have just inputted the list prepared by Hraban (based on a