Re: [NTG-context] bug in \definefontfamily?

2017-03-19 Thread Wolfgang Schuster
Pablo Rodriguez 19. März 2017 um 22:08via Postbox Yes, this might work, but I’m afraid I need to disable other default features such as ligatures (not only liga, but TeX ligatures). I had

Re: [NTG-context] bug in \definefontfamily?

2017-03-19 Thread Pablo Rodriguez
On 03/19/2017 09:58 PM, Wolfgang Schuster wrote: >> Pablo Rodriguez 19. März 2017 schrieb: >> But [features={none, quality}] disables everything and I canot enable >> protrusion plus expansion only. >> >> At least, it doesn’t work with \definefontfamily. I haven’t tested this >> with

Re: [NTG-context] bug in \definefontfamily?

2017-03-19 Thread Wolfgang Schuster
Pablo Rodriguez 19. März 2017 um 21:40via Postbox But [features={none, quality}] disables everything and I canot enable protrusion plus expansion only. At least, it doesn’t work with

Re: [NTG-context] bug in \definefontfamily?

2017-03-19 Thread Wolfgang Schuster
Pablo Rodriguez 19. März 2017 um 21:40via Postbox But [features={none, quality}] disables everything and I canot enable protrusion plus expansion only. At least, it doesn’t work with

Re: [NTG-context] bug in \definefontfamily?

2017-03-19 Thread Pablo Rodriguez
On 03/19/2017 09:32 PM, Wolfgang Schuster wrote: >> Pablo Rodriguez 19. März 2017 um 21:07via Postbox >> [...] >> BTW, does it happen the same to mono fonts? In the past, I wanted to >> check whether quality values for protrusion and expansion would make >> sense in the document I was typesetting,

Re: [NTG-context] bug in \definefontfamily?

2017-03-19 Thread Wolfgang Schuster
Pablo Rodriguez 19. März 2017 um 21:07via Postbox Many thanks for your explanation, Wolfgang. I didn’t consider that Neo Euler might be a default font. And I didn’t know that the values would

[NTG-context] \showlayout values

2017-03-19 Thread Pablo Rodriguez
Dear list, I have the following sample: \setuplayout[backspace=2.5cm, cutspace=2.5\backspace, rightmargin=1.75\leftmarginwidth, width=middle] \showframe \starttext \showlayout \stoptext Values equal to 0pt are written as 0ptpt. I guess this might be a typo

Re: [NTG-context] bug in \definefontfamily?

2017-03-19 Thread Pablo Rodriguez
On 03/19/2017 08:38 PM, Wolfgang Schuster wrote: >> Pablo Rodriguez 19. März 2017 schrieb: >> [...] >> Is this a bug or what am I missing? > > When you use a math font (which Neo Euler is) the argument of the > features key is ignored and \definefontfamily uses internal default > values

Re: [NTG-context] bug in \definefontfamily?

2017-03-19 Thread Wolfgang Schuster
Pablo Rodriguez 19. März 2017 um 13:38via Postbox Hi Joseph, sorry, the second sample was different. The first line was TeX Gyre Pagella and the second line was Neo Euler. The default

Re: [NTG-context] Passing data back and forth between metapost and lua

2017-03-19 Thread Hans Hagen
On 3/19/2017 7:29 PM, Aditya Mahajan wrote: On Sun, 19 Mar 2017, Aditya Mahajan wrote: On Tue, 20 Dec 2016, Alan Braslau wrote: On Mon, 19 Dec 2016 08:19:25 -0800 Aditya Mahajan wrote: The ability to pass parameters to metapost has been around since the beginning. See

Re: [NTG-context] Passing data back and forth between metapost and lua

2017-03-19 Thread Aditya Mahajan
On Sun, 19 Mar 2017, Aditya Mahajan wrote: On Tue, 20 Dec 2016, Alan Braslau wrote: On Mon, 19 Dec 2016 08:19:25 -0800 Aditya Mahajan wrote: The ability to pass parameters to metapost has been around since the beginning. See the metafun manual for details (search for

Re: [NTG-context] Calculating with \measure

2017-03-19 Thread Marco Patzer
On Sun, 19 Mar 2017 18:18:48 +0100 Wolfgang Schuster wrote: > > Is it possible to calculate with \measure or do I have to resort to > > dimens? Example: > > > > \definemeasure [mymeasure] [4cm] > > \newdimen\mydim \mydim4cm > > > > \starttext > >

Re: [NTG-context] How to use tex.print in ctxlua

2017-03-19 Thread Hans Hagen
On 3/19/2017 4:51 PM, Thomas A. Schmitz wrote: On 19.03.2017 16:30, Otared Kavian wrote: I would like to print in a text the values of a array computed in a \startluacode …. \stopluacode combination. How can I do it properly? Please have a look at the example below and its output, which is not

Re: [NTG-context] How to use tex.print in ctxlua

2017-03-19 Thread Hans Hagen
On 3/19/2017 5:56 PM, Wolfgang Schuster wrote: Otared Kavian 19. März 2017 um 17:46via Postbox Hi Aditya, Thanks, as Thomas, Pablo and you mentioned the right way is to use context()

Re: [NTG-context] Calculating with \measure

2017-03-19 Thread Wolfgang Schuster
Marco Patzer 19. März 2017 um 18:06via Postbox Hi! Is it possible to calculate with \measure or do I have to resort to dimens? Example: \definemeasure [mymeasure] [4cm] \newdimen\mydim

Re: [NTG-context] How to use tex.print in ctxlua

2017-03-19 Thread Otared Kavian
Hi Wolfgang, Thanks for letting me know the command string.formatters[….]. It allows to avoid the concatenation, which is to avoid as Thomas points out. Now that I have solved the issue with the spurious space, I have one more question: how could one print the values (vecteuX[i],vecteurY[i])

[NTG-context] Calculating with \measure

2017-03-19 Thread Marco Patzer
Hi! Is it possible to calculate with \measure or do I have to resort to dimens? Example: \definemeasure [mymeasure] [4cm] \newdimen\mydim \mydim4cm \starttext \framed[width=4cm]{Foobar} \framed[width=\measure{mymeasure}]{Foobar} \framed[width=2\mydim]{Foobar}

Re: [NTG-context] How to use tex.print in ctxlua

2017-03-19 Thread Wolfgang Schuster
Otared Kavian 19. März 2017 um 17:46via Postbox Hi Aditya, Thanks, as Thomas, Pablo and you mentioned the right way is to use context() instead of tex.print() Actually I just saw that

Re: [NTG-context] How to use tex.print in ctxlua

2017-03-19 Thread Thomas A. Schmitz
On 19.03.2017 16:56, Pablo Rodriguez wrote: is there any reason not to use the following instead of your way below? for i = 1,n do tex.print("(" .. vecteurX[i] .. ", " .. vecteurY[i] .. ")\\par") end I don't think that this is a good approach. Refer to chapter 11.6 of "Programming in

Re: [NTG-context] How to use tex.print in ctxlua

2017-03-19 Thread Otared Kavian
Hi Aditya, Thanks, as Thomas, Pablo and you mentioned the right way is to use context() instead of tex.print() Actually I just saw that one can also concatenate with context() as in: context("(" .. vecteurX[i] .. ", " .. vecteurY[i] .. ")\\par") which is equivalent to

Re: [NTG-context] How to use tex.print in ctxlua

2017-03-19 Thread Otared Kavian
Hi Pablo, Thanks for your answer: actually I did not know that it is possible to concatenate so easily in lua… Your solution is indeed simpler than what I did and solves also the problem of the spurious space before the closing parenthesis. Best regards: OK > On 19 Mar 2017, at 16:56, Pablo

Re: [NTG-context] How to use tex.print in ctxlua

2017-03-19 Thread Otared Kavian
Hi Thomas, Thanks for your answer. Indeed I did not know that I could use directly context(vecteurY[i]) Now this solves my problem! Best regards: OK > On 19 Mar 2017, at 16:51, Thomas A. Schmitz > wrote: > > On 19.03.2017 16:30, Otared Kavian wrote: >> I

Re: [NTG-context] How to use tex.print in ctxlua

2017-03-19 Thread Aditya Mahajan
On Sun, 19 Mar 2017, Otared Kavian wrote: Hi, I would like to print in a text the values of a array computed in a \startluacode …. \stopluacode combination. How can I do it properly? Please have a look at the example below and its output, which is not satisfactory because the right

Re: [NTG-context] How to use tex.print in ctxlua

2017-03-19 Thread Pablo Rodriguez
On 03/19/2017 04:30 PM, Otared Kavian wrote: > Hi, > > I would like to print in a text the values of a array computed in a > \startluacode …. \stopluacode combination. > How can I do it properly? Please have a look at the example below > and its output, which is not satisfactory because the right

Re: [NTG-context] How to use tex.print in ctxlua

2017-03-19 Thread Thomas A. Schmitz
On 19.03.2017 16:30, Otared Kavian wrote: I would like to print in a text the values of a array computed in a \startluacode …. \stopluacode combination. How can I do it properly? Please have a look at the example below and its output, which is not satisfactory because the right parenthesis is

Re: [NTG-context] How to use tex.print in ctxlua

2017-03-19 Thread josephcanedo
Hi, I think you can use tex.write() instead of tex.print() (pretty much the same as in lua io functions). Hope this helps Joseph De : Otared Kavian Envoyé le :dimanche 19 mars 2017 16:31 À : mailing list for ConTeXt users Objet :[NTG-context] How to use tex.print in ctxlua Hi, I would like

[NTG-context] How to use tex.print in ctxlua

2017-03-19 Thread Otared Kavian
Hi, I would like to print in a text the values of a array computed in a \startluacode …. \stopluacode combination. How can I do it properly? Please have a look at the example below and its output, which is not satisfactory because the right parenthesis is separated from the number by a space.

[NTG-context] bug in \definefontfamily? (was: Re: OT salt feature not working?)

2017-03-19 Thread Pablo Rodriguez
On 03/19/2017 12:19 PM, josephcan...@gmail.com wrote: > Hi Pablo, > > When I typeset your MWE below with latest beta version (on win 10) you > use too, I see 2 lines of 1110 with different appearance. Hi Joseph, sorry, the second sample was different. The first line was TeX Gyre Pagella and the

Re: [NTG-context] OT salt feature not working?

2017-03-19 Thread Pablo Rodriguez
On 03/18/2017 11:05 PM, Pablo Rodriguez wrote: > Dear list, > > I have the following sample: > [...] > I get the same results with or without the first line commented out. > (I’m using latest beta from 2017.03.02 22:23.) > > Is this a bug or what am I missing? The issue is with the font: