Re: [NTG-context] question about frames

2020-11-26 Thread Hans Hagen
On 11/26/2020 10:03 PM, Pablo Rodriguez wrote: On 11/26/20 5:26 PM, Wolfgang Schuster wrote: Pablo Rodriguez schrieb am 25.11.2020 um 22:43: [...] Which is the way to avoid any vertical space between frames? Variant 1: \offinterlineskip} Many thanks for your reply, Wolfgang. As

Re: [NTG-context] mathmatrix and internal lines

2020-11-26 Thread Hans Hagen
On 11/26/2020 8:43 PM, Otared Kavian wrote: Hi Jean-Philippe, A few weeks ago I saw briefly the discussion about Hans' message regarding \noalign and the the new definitions of \HR and \VR that you are sending. Indeed your solution works great ! Just for the case other people may have the

Re: [NTG-context] question about frames

2020-11-26 Thread Andres Conrado Montoya
A bit late to the party but maybe this helps... try "frameoffset": \defineframed[caja][frameoffset=\zeropoint,width=5cm,height=2cm] \starttext \dorecurse{5}{\caja[frame=on]{Hello}} \stoptext -- Andrés Conrado Montoya

Re: [NTG-context] Orphan issue with \startitemize

2020-11-26 Thread Marco Patzer
On Thu, 26 Nov 2020 21:11:25 + Bruce Horrocks wrote: > With \dorecurse{34} all of the items move to the second page even > though only one extra line has been added and there is now quite a > large gap at the bottom of the first page. > > Is there a setting that controls this a bit more

Re: [NTG-context] question about frames

2020-11-26 Thread Andres Conrado Montoya
Disregard that... that is the default... it doesn't work as I thought initially. Sorry for the noise. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

[NTG-context] Orphan issue with \startitemize

2020-11-26 Thread Bruce Horrocks
With the following MWE: \def\Lorem{Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. } \showframe \starttext

Re: [NTG-context] question about frames

2020-11-26 Thread Pablo Rodriguez
On 11/26/20 5:26 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 25.11.2020 um 22:43: >> [...] >> Which is the way to avoid any vertical space between frames? > > Variant 1: > > \offinterlineskip} Many thanks for your reply, Wolfgang. As always, your solution is straight to the

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
On Thu, 2020-11-26 at 21:01 +0100, Johann Birnick wrote: > On Thu, 2020-11-26 at 20:11 +0100, Wolfgang Schuster wrote: > > Johann Birnick schrieb am 26.11.2020 um 19:42: > > > Ah, sorry again. I use > > > > > > \usemodule[Scite] > > > > > > at the begin of the document. Removing this helps. But

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Wolfgang Schuster
Johann Birnick schrieb am 26.11.2020 um 21:40: I have updated and now it works. Thank you very much for all your efforts. The problem was fixed at the end of march. Now let's come to my second problem: the sidebar. Proudly, I present to you my first MWE: \definetyping[CPP]

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Keith McKay
/First « //uniformdeviate(1) - 0.5// » could be modified to « //uniformdeviate(0.5)//»./ / / /To add noise, you can use the randomized function of Metafun. For exemple, you can write:/ / / /draw pp randomized 1cm ;/ / / That's true Fabrice but in this use case I wanted a random number between

Re: [NTG-context] new upload

2020-11-26 Thread Bruce Horrocks
> On 26 Nov 2020, at 18:43, Mojca Miklavec > wrote: > > There are three options: > - the existing Intel binaries should work just fine > - yes, you should be able to compile the binaries yourself > - we should eventually get hold of one device for our build farm, or > in the meantime just ask

Re: [NTG-context] Testing for LMTX

2020-11-26 Thread Pablo Rodriguez
On 11/26/20 8:06 PM, Jean-Philippe Rey wrote: > [...] > Do you know a way to distinguish between LMTX and MkIV ? Hi Jean-Philippe, I guess this is what you are looking for: \starttext \startTEXpage[offset=1em] \startlmtxmode LMTX\stoplmtxmode \startmkivmode MkIV\stopmkivmode

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
On Thu, 2020-11-26 at 20:11 +0100, Wolfgang Schuster wrote: > Johann Birnick schrieb am 26.11.2020 um 19:42: > > Ah, sorry again. I use > > > > \usemodule[Scite] > > > > at the begin of the document. Removing this helps. But I need it for the C > > and > > Cpp pretty printer. So do you know

Re: [NTG-context] new upload

2020-11-26 Thread Keith McKay
Thanks for your interesting and very helpful reply Mojca. It's given me lots to think about. Best wishes Keith McKay On 26/11/2020 18:43, Mojca Miklavec wrote: On Thu, 26 Nov 2020 at 16:26, Keith McKay wrote: I was planning on getting the new entry level MAC min M1 with 8GB unified memory

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Keith McKay
Thanks again Hans and Fabrice, for the time you have both taken with my question and thanks for the code snippet Hans. Just one last confirmation from the snippet. Hans uses the correction factor cf on the x and yparts of a[i]. I taking this as meaning that this has to be done because the x

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Wolfgang Schuster
Johann Birnick schrieb am 26.11.2020 um 19:42: Ah, sorry again. I use \usemodule[Scite] at the begin of the document. Removing this helps. But I need it for the C and Cpp pretty printer. So do you know what's going on with Scite module? 1. There is still no working minimal example, just

Re: [NTG-context] mathmatrix and internal lines

2020-11-26 Thread Otared Kavian
Hi Jean-Philippe, A few weeks ago I saw briefly the discussion about Hans' message regarding \noalign and the the new definitions of \HR and \VR that you are sending. Indeed your solution works great ! Just for the case other people may have the same question about writing block matrix, I copy

Re: [NTG-context] Testing for LMTX

2020-11-26 Thread Jairo A. del Rio
Hi I'm not sure whether or not there's a better way, but a bit of grepping allows you to find the following conditional: \starttext \ifcase\contextlmtxmode MKIV %Whatever you want in MkIV \else LMTX %Whatever you want in LMTX \fi \stoptext Best regards, Jairo El jue, 26 de nov. de 2020 a

Re: [NTG-context] new upload

2020-11-26 Thread luigi scarso
On Thu, Nov 26, 2020 at 6:10 PM Hans Hagen wrote: > On 11/26/2020 6:07 PM, luigi scarso wrote: > > > > > > Il Gio 26 Nov 2020, 18:00 Hans Hagen > > ha scritto: > > > > On 11/26/2020 5:10 PM, luigi scarso wrote: > > > > > > > > > On Thu, Nov 26, 2020

[NTG-context] Testing for LMTX

2020-11-26 Thread Jean-Philippe Rey
Dear list, I would like to determine if LMTX is being used. Mimicking system modes I tried \startmode[*lmtx] . . . \stopmode however, LMTX doesn't define this mode but apparently defines *mkiv. Do you know a way to distinguish between LMTX and MkIV ? Thank you, -- Jean-Philippe Rey

Re: [NTG-context] new upload

2020-11-26 Thread Wolfgang Schuster
Mojca Miklavec schrieb am 26.11.2020 um 19:43: There are three options: - the existing Intel binaries should work just fine - yes, you should be able to compile the binaries yourself - we should eventually get hold of one device for our build farm, or in the meantime just ask someone for the

Re: [NTG-context] mathmatrix and internal lines

2020-11-26 Thread Jean-Philippe Rey
Hi Otared, Thank you very much. I used your example to write the following macros. They are far from perfect but suit my needs. A few days ago, Hans warned not to use \noalign in LMTX, so I used the trick he gave to the list even if I don't really understand it. === LMTX version

Re: [NTG-context] new upload

2020-11-26 Thread Mojca Miklavec
On Thu, 26 Nov 2020 at 16:26, Keith McKay wrote: > > I was planning on getting the new entry level MAC min M1 with 8GB > unified memory but I see that there will be no ConTeXt binaries for > these new M1 chip Macs. It's not that there will not be, it's just that none of us has purchased a piece

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
On Thu, 2020-11-26 at 19:39 +0100, Johann Birnick wrote: > On Thu, 2020-11-26 at 19:35 +0100, Wolfgang Schuster wrote: > > Johann Birnick schrieb am 26.11.2020 um 19:26: > > > I didn't want to copy paste it :D Just add [option=XML] to \starttext like > > > this: > > > > Why do pass a option for

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
On Thu, 2020-11-26 at 19:35 +0100, Wolfgang Schuster wrote: > Johann Birnick schrieb am 26.11.2020 um 19:26: > > I didn't want to copy paste it :D Just add [option=XML] to \starttext like > > this: > > Why do pass a option for the typing environment to \starttext? > > >

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Wolfgang Schuster
Johann Birnick schrieb am 26.11.2020 um 19:26: I didn't want to copy paste it :D Just add [option=XML] to \starttext like this: Why do pass a option for the typing environment to \starttext? \definetextbackground[code][background=color, backgroundcolor=lightgray, frame=off,

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Aditya Mahajan
On Thu, 26 Nov 2020, Johann Birnick wrote: > On Thu, 2020-11-26 at 19:17 +0100, Wolfgang Schuster wrote: > > Johann Birnick schrieb am 26.11.2020 um 19:10: > > > On Thu, 2020-11-26 at 17:31 +0100, Wolfgang Schuster wrote: > > > > Johann Birnick schrieb am 26.11.2020 um 17:00: > > > > > On Thu,

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
On Thu, 2020-11-26 at 19:17 +0100, Wolfgang Schuster wrote: > Johann Birnick schrieb am 26.11.2020 um 19:10: > > On Thu, 2020-11-26 at 17:31 +0100, Wolfgang Schuster wrote: > > > Johann Birnick schrieb am 26.11.2020 um 17:00: > > > > On Thu, 2020-11-26 at 09:38 -0500, Aditya Mahajan wrote: > > > >

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Wolfgang Schuster
Johann Birnick schrieb am 26.11.2020 um 19:10: On Thu, 2020-11-26 at 17:31 +0100, Wolfgang Schuster wrote: Johann Birnick schrieb am 26.11.2020 um 17:00: On Thu, 2020-11-26 at 09:38 -0500, Aditya Mahajan wrote: On Thu, 26 Nov 2020, Johann Birnick wrote: How to surround such things properly?

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
On Thu, 2020-11-26 at 17:31 +0100, Wolfgang Schuster wrote: > Johann Birnick schrieb am 26.11.2020 um 17:00: > > On Thu, 2020-11-26 at 09:38 -0500, Aditya Mahajan wrote: > > > On Thu, 26 Nov 2020, Johann Birnick wrote: > > > > > > > How to surround such things properly? I just want a background

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Fabrice L
Keith, > Le 26 nov. 2020 à 12:12, Keith McKay a écrit : > Thanks Fabrice and Hans. > > I now see I can simplify some lines of the code: > > pp := ((xpart a[i])/cf*cm, (ypart a[i])/cf*cm); now becomes pp:= a[i]; > > and > > pp := pp --- ((xpart a[i+1]/cf)*cm, (ypart a[i+1])/cf*cm); now

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Hans Hagen
On 11/26/2020 6:12 PM, Keith McKay wrote: Thanks Fabrice and Hans. I now see I can simplify some lines of the code: pp := ((xpart a[i])/cf*cm, (ypart a[i])/cf*cm); now becomes pp:= a[i]; and pp := pp --- ((xpart a[i+1]/cf)*cm, (ypart a[i+1])/cf*cm); now becomes pp := pp --- a[i +1] ;

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Keith McKay
Thanks Fabrice and Hans. I now see I can simplify some lines of the code: pp := ((xpart a[i])/cf*cm, (ypart a[i])/cf*cm); now becomes pp:= a[i]; and pp := pp --- ((xpart a[i+1]/cf)*cm, (ypart a[i+1])/cf*cm); now becomes pp := pp --- a[i +1] ; However I still have the problem in the

Re: [NTG-context] new upload

2020-11-26 Thread Hans Hagen
On 11/26/2020 6:07 PM, luigi scarso wrote: Il Gio 26 Nov 2020, 18:00 Hans Hagen > ha scritto: On 11/26/2020 5:10 PM, luigi scarso wrote: > > > On Thu, Nov 26, 2020 at 5:00 PM Hans Hagen mailto:j.ha...@xs4all.nl> >

Re: [NTG-context] new upload

2020-11-26 Thread luigi scarso
Il Gio 26 Nov 2020, 18:00 Hans Hagen ha scritto: > On 11/26/2020 5:10 PM, luigi scarso wrote: > > > > > > On Thu, Nov 26, 2020 at 5:00 PM Hans Hagen > > wrote: > > > > Of course, if they care about luatex cs support they > > could send an M1 mini to Mojca for

Re: [NTG-context] new upload

2020-11-26 Thread Hans Hagen
On 11/26/2020 5:10 PM, luigi scarso wrote: On Thu, Nov 26, 2020 at 5:00 PM Hans Hagen > wrote:  Of course, if they care about luatex cs support they could send an M1 mini to Mojca for the compile farm for some real testing. very likely luatex will run

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Wolfgang Schuster
Johann Birnick schrieb am 26.11.2020 um 17:00: On Thu, 2020-11-26 at 09:38 -0500, Aditya Mahajan wrote: On Thu, 26 Nov 2020, Johann Birnick wrote: How to surround such things properly? I just want a background to these and a sidebar. No addition spacing / empty lines. A MWE will help...

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Aditya Mahajan
On Thu, 26 Nov 2020, Johann Birnick wrote: > On Thu, 2020-11-26 at 09:38 -0500, Aditya Mahajan wrote: > > On Thu, 26 Nov 2020, Johann Birnick wrote: > > > > > How to surround such things properly? I just want a background to these > > > and > > > a > > > sidebar. No addition spacing / empty

Re: [NTG-context] question about frames

2020-11-26 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 25.11.2020 um 22:43: Dear list, here is a minimal sample of frames to make up labels: \setuplayout[page] \starttext \dorecurse{16}{\dontleavehmode\dorecurse{4} {\framed[width=52.5mm, height=18.5mm, align=right]{\null}}\\} \stoptext Which is the way to

Re: [NTG-context] new upload

2020-11-26 Thread luigi scarso
On Thu, Nov 26, 2020 at 5:00 PM Hans Hagen wrote: > Of course, if they care about luatex cs support they > could send an M1 mini to Mojca for the compile farm for some real testing. > very likely luatex will run full native on M1 on next texlive, following

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
On Thu, 2020-11-26 at 09:38 -0500, Aditya Mahajan wrote: > On Thu, 26 Nov 2020, Johann Birnick wrote: > > > How to surround such things properly? I just want a background to these and > > a > > sidebar. No addition spacing / empty lines. > > A MWE will help... > > Aditya For example, take:

Re: [NTG-context] new upload

2020-11-26 Thread Hans Hagen
On 11/26/2020 4:26 PM, Keith McKay wrote: Hi, I'm planning in the next few weeks to retire my 2012 16GB Mac mini which has served me well with ConTeXt (and other software) over these past few years. I was planning on getting the new entry level MAC min M1 with 8GB unified memory but I see

Re: [NTG-context] question about frames

2020-11-26 Thread Pablo Rodriguez
On 11/26/20 9:42 AM, Henning Hraban Ramm wrote: >> Am 25.11.2020 um 22:43 schrieb Pablo Rodriguez: >> [...] >> Which is the way to avoid any vertical space between frames? >> >> Sorry, this may be obvious, but I don’t know how to do it now. > > try offset=overlay > don’t know if that goes all the

Re: [NTG-context] new upload

2020-11-26 Thread Keith McKay
Hi, I'm planning in the next few weeks to retire my 2012 16GB Mac mini which has served me well with ConTeXt (and other software) over these past few years. I was planning on getting the new entry level MAC min M1 with 8GB unified memory but I see that there will be no ConTeXt binaries for

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Hans Hagen
On 11/26/2020 4:09 PM, Keith McKay wrote: Hi, I have been using xpart and ypart to extract these values from pairs of points in a path but I wasn't getting the correct result. I was expecting: pair (2cm, 11cm) to give xpart 2 and ypart 11 However I was getting: pair (2cm, 11cm) -> xpart

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Fabrice L
Hi keith, > Le 26 nov. 2020 à 10:09, Keith McKay a écrit : > > Hi, > > I have been using xpart and ypart to extract these values from pairs of > points in a path but I wasn't getting the correct result. I was expecting: > > pair (2cm, 11cm) to give xpart 2 and ypart 11 > > However I was

[NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Keith McKay
Hi, I have been using xpart and ypart to extract these values from pairs of points in a path but I wasn't getting the correct result. I was expecting: pair (2cm, 11cm) to give xpart 2 and ypart 11 However I was getting: pair (2cm, 11cm) -> xpart 56.6929 and ypart 311.8096 After much head

Re: [NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Aditya Mahajan
On Thu, 26 Nov 2020, Johann Birnick wrote: > How to surround such things properly? I just want a background to these and a > sidebar. No addition spacing / empty lines. A MWE will help... Aditya ___ If your question

Re: [NTG-context] mathmatrix and internal lines

2020-11-26 Thread Otared Kavian
Hi Jean-Philippe, The following is better than the one I sent earlier: \definemathmatrix[mymatrix] [left={\left(\,}, right={\ \right)}] \starttext \startformula \startmymatrix \NC A \NC\hskip-.5em \vrule \NC\hskip-.5em B \NR

[NTG-context] Vertical space when surrounding with textbackground

2020-11-26 Thread Johann Birnick
Hi there, in my document(s) I have enumerations (created with \defineenumeration) and "typing"s (created with \definetyping) and I need to give a specific layout to them. In particular, I want to add textbackground (created with \definetextbackground) and sometimes a sidebar (created with

Re: [NTG-context] Strange bug with obayspaces and tagging

2020-11-26 Thread Hans Hagen
On 11/26/2020 10:47 AM, Christoph Reller wrote: Hi, With the currently latest version of ConTeXt LMTX 2020.11.25 21:42, this MNWE fails with the following error message: \setuptagging[state=start] \starttext \obeyspaces\obeylines   patch \stoptext tex error       > tex error on

Re: [NTG-context] mathmatrix and internal lines

2020-11-26 Thread Otared Kavian
Hi Jean-Philippe, For a simple case like the one you sent, a rather not optimal solution can be this: \definemathmatrix[mymatrix] [left={\left(\,}, right={\ \right)}] \starttext \startformula \startmymatrix \NC A \hskip .5em |\hskip-.5em \NC B

[NTG-context] Strange bug with obayspaces and tagging

2020-11-26 Thread Christoph Reller
Hi, With the currently latest version of ConTeXt LMTX 2020.11.25 21:42, this MNWE fails with the following error message: \setuptagging[state=start] \starttext \obeyspaces\obeylines patch \stoptext tex error > tex error on line 4 in file ./scratch1.tex: Valid keyword

[NTG-context] mathmatrix and internal lines

2020-11-26 Thread Jean-Philippe Rey
Dear list, I would like to draw matrices with internal lines as can be done with LaTeX (cf pdf output) : \documentclass{article} \begin{document} $M =\left( \begin{array}{c|c} A & B \\ \hline C & D \\ \end{array} \right)$ \end{document} I

Re: [NTG-context] question about frames

2020-11-26 Thread Henning Hraban Ramm
> Am 25.11.2020 um 22:43 schrieb Pablo Rodriguez : > > Dear list, > > here is a minimal sample of frames to make up labels: > > \setuplayout[page] > \starttext > \dorecurse{16}{\dontleavehmode\dorecurse{4} > {\framed[width=52.5mm, height=18.5mm, align=right]{\null}}\\} > \stoptext > >

Re: [NTG-context] Setting and measuring boxes TeX/Lua

2020-11-26 Thread Hans Hagen
On 11/25/2020 10:28 PM, Jano Kula wrote: Hello Hans! On Wed, 25 Nov 2020 at 21:25, Hans Hagen > wrote: \startluacode context.stepwise (function()      context.step() end) \stopluacode Thank you very much! I was trying context.stepwise several