Re: [NTG-context] compilation error in LMTX

2020-08-13 Thread Jannik Voges
Hello, I have a similar problem with long context-documents (but not all long context-documents are affected and I don't know what triggers the error). Sometimes, the errors (error code 139) are happening on second or third runs (but it might happen on first runs too). When I remove the chapter

Re: [NTG-context] Two questions about color in MetaFun

2020-08-13 Thread Jairo A. del Rio
Using \MPcolor does it for me. Thank you very much, Aditya :) Jairo :) El jue., 13 de ago. de 2020 a la(s) 18:47, Aditya Mahajan (adit...@umich.edu) escribió: > On Thu, 13 Aug 2020, Jairo A. del Rio wrote: > > > Hi, list! I have two questions concerning MetaFun: > > > > 1st: > > > > What is the

Re: [NTG-context] headers again

2020-08-13 Thread jbf
I will let the people with far superior knowledge than I have work through this, but I am following it with interest. All I can say is that by adopting Aditya's solution, ensuring that for the unnumbered titles I also included 'number=no', the numbered chapters did increment correctly, after

Re: [NTG-context] Two questions about color in MetaFun

2020-08-13 Thread Aditya Mahajan
On Thu, 13 Aug 2020, Jairo A. del Rio wrote: > Hi, list! I have two questions concerning MetaFun: > > 1st: > > What is the correct way to pass a ConTeXt named color (e.g. xwi's "maroon") > to MetaFun. Using (with \usecolors[xwi] loaded in the preamble): > > withcolor maroon > > does not work.

Re: [NTG-context] headers again

2020-08-13 Thread Aditya Mahajan
On Thu, 13 Aug 2020, Wolfgang Schuster wrote: > Aditya Mahajan schrieb am 13.08.2020 um 04:53: > > On Thu, 13 Aug 2020, jbf wrote: > > > > > Where running heads (headers) are concerned, if I use \chapter I have no > > > problems, nor should I expect any. But because I am also using \title, > > >

[NTG-context] Two questions about color in MetaFun

2020-08-13 Thread Jairo A. del Rio
Hi, list! I have two questions concerning MetaFun: 1st: What is the correct way to pass a ConTeXt named color (e.g. xwi's "maroon") to MetaFun. Using (with \usecolors[xwi] loaded in the preamble): withcolor maroon does not work. I could copy-paste definitions from ConTeXt sources and do e.g.

Re: [NTG-context] weird issue with xtable

2020-08-13 Thread Pablo Rodriguez
On 8/13/20 10:11 PM, Wolfgang Schuster wrote: > Wolfgang Schuster schrieb am 13.08.2020 um 20:47: >> [...] >> You can use nested frames: >> >> \startsetups[...] >>     \startframed[offset=overlay,frame=off] >>     \framed[width=.22\textiwdth]{\pinter} >>    

Re: [NTG-context] weird issue with xtable

2020-08-13 Thread Wolfgang Schuster
Wolfgang Schuster schrieb am 13.08.2020 um 20:47: Pablo Rodriguez schrieb am 13.08.2020 um 20:30: On 8/13/20 6:06 PM, Wolfgang Schuster wrote: [...] What am I doing wrong here? (To avoid an error, I get other errors.) There are not enough information to help you. I discovered what was

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-13 Thread Nicola
On 2020-08-13, Pablo Rodriguez wrote: > On 8/13/20 6:06 PM, Nicola wrote: >> [...] >> Thanks. That works with my MWE, but in my document I actually have >> a chapter, and chapters start on the right page, even if I add page=no >> to \setuppagenumbering: >> [...] >> I have no idea how to allow

Re: [NTG-context] weird issue with xtable

2020-08-13 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 13.08.2020 um 20:30: On 8/13/20 6:06 PM, Wolfgang Schuster wrote: [...] What am I doing wrong here? (To avoid an error, I get other errors.) There are not enough information to help you. I discovered what was wrong: I had an xtable on the footer to set the page

[NTG-context] tabulation and \textwidth

2020-08-13 Thread Pablo Rodriguez
Dear list, I have this sample: \showframe \startsetups[footers] \starttabulate [|cw(.5\textwidth)| cw(.5\textwidth)|] [unit=0pt] \NC one\NC two\NC\NR \stoptabulate \stopsetups \setupfootertexts[\directsetup{footers}] \starttext \dorecurse{20}{\input{zapf.tex}\par}

Re: [NTG-context] weird issue with xtable

2020-08-13 Thread Pablo Rodriguez
On 8/13/20 6:06 PM, Wolfgang Schuster wrote: >> [...] >> What am I doing wrong here? (To avoid an error, I get other errors.) > > There are not enough information to help you. I discovered what was wrong: I had an xtable on the footer to set the page numbering. So I replaced it with the

Re: [NTG-context] headers again

2020-08-13 Thread Wolfgang Schuster
Aditya Mahajan schrieb am 13.08.2020 um 04:53: On Thu, 13 Aug 2020, jbf wrote: Where running heads (headers) are concerned, if I use \chapter I have no problems, nor should I expect any. But because I am also using \title, given that I need some unnumbered chapters interspersed  among them, I

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-13 Thread Wolfgang Schuster
Nicola schrieb am 13.08.2020 um 18:06: Thanks. That works with my MWE, but in my document I actually have a chapter, and chapters start on the right page, even if I add page=no to \setuppagenumbering: Can you start a new thread when you have a new question. When other people have the same

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-13 Thread Pablo Rodriguez
On 8/13/20 6:06 PM, Nicola wrote: > [...] > Thanks. That works with my MWE, but in my document I actually have > a chapter, and chapters start on the right page, even if I add page=no > to \setuppagenumbering: > [...] > I have no idea how to allow chapters to start at arbitrary pages when >

Re: [NTG-context] weird issue with xtable

2020-08-13 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 13.08.2020 um 16:18: On 8/13/20 3:11 PM, Wolfgang Schuster wrote: [...] With the options "split=no" and "split=repeat" ConTeXt puts the table in a \vbox but with "split=yes" this doesn't happen. To check is this is the problem he can put the table in a float

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-13 Thread Nicola
On 2020-08-13, Pablo Rodriguez wrote: > On 8/13/20 5:17 PM, Nicola wrote: >> Hi, >> I still have an issue with blank pages... >> 2. Vertically center the ToC (wrt to the text area). >>> >>> Use a makeup for the TOC (if and only if it takes a single page). >> >> Yes, the ToC takes a single

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-13 Thread Pablo Rodriguez
On 8/13/20 5:17 PM, Nicola wrote: > Hi, > I still have an issue with blank pages... > >>> 2. Vertically center the ToC (wrt to the text area). >> >> Use a makeup for the TOC (if and only if it takes a single page). > > Yes, the ToC takes a single page. The makeup seems to insert a blank > page

Re: [NTG-context] Help on tweaking alignment, page numbers and ToC

2020-08-13 Thread Nicola
Hi, I still have an issue with blank pages... >> 2. Vertically center the ToC (wrt to the text area). > > Use a makeup for the TOC (if and only if it takes a single page). Yes, the ToC takes a single page. The makeup seems to insert a blank page afterwards. MWE:

Re: [NTG-context] How can I use ConTeXt from TeXLive2020 ?

2020-08-13 Thread Mojca Miklavec
Dear Otared, On Thu, 13 Aug 2020 at 11:05, Otared Kavian wrote: > > Indeed following your suugestion, I removed the > /opt/local/etc/texmf/ > directory, as well as all other tex related directories and files in > /opt/local/, and then installed again MacTeX2020. There is usually an

Re: [NTG-context] \scantokens in luametatex

2020-08-13 Thread Hans Hagen
On 8/13/2020 2:31 PM, Marcel Fabian Krüger wrote: in the current luametatex upload, \scantokens (and also \scantextokens) behave odd: They seem to act like \detokenize, except that spaces get catcode other instead of catcode space: \starttext \edef\abc{\scantokens{\relax}} \abc

Re: [NTG-context] weird issue with xtable

2020-08-13 Thread Pablo Rodriguez
On 8/13/20 3:11 PM, Wolfgang Schuster wrote: > [...] > With the options "split=no" and "split=repeat" ConTeXt puts the table in > a \vbox but with "split=yes" this doesn't happen. > > To check is this is the problem he can put the table in a float > environment and disable the caption and counter.

Re: [NTG-context] weird issue with xtable

2020-08-13 Thread Pablo Rodriguez
On 8/13/20 2:33 PM, Taco Hoekwater wrote: > [...] > I forgot to answer this. Simple explanation: > > * 'restricted horizontal mode' is inside an \hbox{} or something similar like > a header/footer, > where line breaks are forbidden > * ‘horizontal mode’ is inside a paragraph, where line breaks

Re: [NTG-context] weird issue with xtable

2020-08-13 Thread Wolfgang Schuster
Taco Hoekwater schrieb am 13.08.2020 um 14:33: On 13 Aug 2020, at 14:15, Pablo Rodriguez wrote: My questions are: what is the restricted horizontal mode (as different from the horizontal mode)? I forgot to answer this. Simple explanation: * 'restricted horizontal mode' is inside an \hbox{}

Re: [NTG-context] weird issue with xtable

2020-08-13 Thread Taco Hoekwater
> On 13 Aug 2020, at 14:15, Pablo Rodriguez wrote: > >>> My questions are: what is the restricted horizontal mode (as different >>> from the horizontal mode)? I forgot to answer this. Simple explanation: * 'restricted horizontal mode' is inside an \hbox{} or something similar like a

[NTG-context] \scantokens in luametatex

2020-08-13 Thread Marcel Fabian Krüger
Hi, in the current luametatex upload, \scantokens (and also \scantextokens) behave odd: They seem to act like \detokenize, except that spaces get catcode other instead of catcode space: \starttext \edef\abc{\scantokens{\relax}} \abc \edef\abc{\scantextokens{\relax}} \abc \stoptext used to

Re: [NTG-context] weird issue with xtable

2020-08-13 Thread Pablo Rodriguez
On 8/13/20 1:16 PM, Taco Hoekwater wrote: >> On 13 Aug 2020, at 13:07, Pablo Rodriguez wrote: >> [...] >> I get the following error message (that breaks compilation) when I add >> \setupxtable[split=yes]: >> >> You can't use '\prevdepth' in restricted horizontal mode >> [...] >> My questions

Re: [NTG-context] weird issue with xtable

2020-08-13 Thread Taco Hoekwater
> On 13 Aug 2020, at 13:07, Pablo Rodriguez wrote: > > Dear list, > > in order to avoid a problem already reported > (https://mailman.ntg.nl/pipermail/dev-context/2020/003694.html), I added > to an indiviual table \startxtable[split=yes] (being the default in the > document

Re: [NTG-context] Same counter for figures as theorems

2020-08-13 Thread Taco Hoekwater
> On 13 Aug 2020, at 10:06, Tim Steenvoorden wrote: > > Hi all, > > Anybody some pointers? Next time, prepare a minimal (non)working example. Because the attachment works for me. Best wishes, Taco tryme.tex Description: Binary data

[NTG-context] weird issue with xtable

2020-08-13 Thread Pablo Rodriguez
Dear list, in order to avoid a problem already reported (https://mailman.ntg.nl/pipermail/dev-context/2020/003694.html), I added to an indiviual table \startxtable[split=yes] (being the default in the document \setupxtable[split=repeat, header=repeat]). But I’m experiencing a weird issue with

[NTG-context] compilation error in LMTX

2020-08-13 Thread Pablo Rodriguez
Dear list, compiling a huge XML document (output PDF > 1200 pages), I get the following error with latest current (2020.08.11 15:59): pages > flushing realpage 187, userpage 187, subpage 3 mtx-context | fatal error: return code: 139 Compilation failed. Some hints about what

Re: [NTG-context] How can I use ConTeXt from TeXLive2020 ?

2020-08-13 Thread Axel Kielhorn
Hello Otared, > Thank you very much for your attention and your hints, which solved my > problems with ConTeXt from TeXLive2020. > > Indeed following your suugestion, I removed the > /opt/local/etc/texmf/ > directory, as well as all other tex related directories and files in >

Re: [NTG-context] How can I use ConTeXt from TeXLive2020 ?

2020-08-13 Thread Otared Kavian
Dear Axel, Thank you very much for your attention and your hints, which solved my problems with ConTeXt from TeXLive2020. Indeed following your suugestion, I removed the /opt/local/etc/texmf/ directory, as well as all other tex related directories and files in /opt/local/, and then

Re: [NTG-context] Same counter for figures as theorems

2020-08-13 Thread Tim Steenvoorden
Hi all, Anybody some pointers? Cheers, Tim On 11 Aug 2020, 11:41 +0200, Tim Steenvoorden , wrote: > Hi all, > > I’ve a text where chapters are numbered 1, 2, 3, … and sections 1.1, 1.2, > 1.3, … > Now I’d like all elements (figures, tables, examples, definitions, theorems, > …) to be numbered