Re: [NTG-context] Checking existence of a macro (control sequence) by Lua

2020-05-29 Thread context
Hello Hans, thank you for explanation and the nice how-to solution! Best regards, Lukas Because the macro actually *is* defined: as soon as tex sees \foo it reserves the name and gives it the meaning undefined, so even \undefined is defined. Anyway, that is why we have \ifdefined that

[NTG-context] Math delimiters across math alignment environments

2020-05-29 Thread Jairo A. del Rio
Hi dear list! I have a question about the use of delimiters. There are commands as \left ... \right which allow delimiters of variable size, but they are usually asymmetrical. AFAIK, ConTeXt has mechanisms of the form \definemathfence[something][something][command=yes]. My question is: is it

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Henning Hraban Ramm
> Am 29.05.2020 um 22:18 schrieb Aditya Mahajan : > > On Fri, 29 May 2020, Henning Hraban Ramm wrote: > >> In a similar setup I wanted to start every chapter with image and short vita >> the author and came up with the following (of course not without help from >> our wizards): >> >> >>

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Aditya Mahajan
On Fri, 29 May 2020, Henning Hraban Ramm wrote: In a similar setup I wanted to start every chapter with image and short vita the author and came up with the following (of course not without help from our wizards): \doifelse{\structureuservariable{image}}{}{% if image empty }{% ... }

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Henning Hraban Ramm
In a similar setup I wanted to start every chapter with image and short vita the author and came up with the following (of course not without help from our wizards): \definefont[ChapterFont][Sans*default at 30pt] \startsetups normalheader % default numbers of my bodyfont are oldstyle

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Jan U. Hasecke
Am 29.05.20 um 18:03 schrieb Aditya Mahajan: > The magic of loading and reusing them happens behind the scenes, so the > user doesn't have to worry about it. See > https://wiki.contextgarden.net/System_Macros/Key_Value_Assignments#Multi-pass_data > for more details. > > Now, suppose you wanted to

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Aditya Mahajan
On Fri, 29 May 2020, Jan U. Hasecke wrote: One and a half question. Why did you set \ChapterCounter explizitly and why is \ChapterCounter part of the datasetvariable? \dataset... is a high level interface for collecting two-pass data in ConTeXt. Here is a simple example:

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Jan U. Hasecke
Hi Wolfgang, thank you very much. Amazing! Am 29.05.20 um 15:35 schrieb Wolfgang Schuster: > \definedataset [chapter] > > \startsetups [chapter:before] > >   \page[yes] > >   \doglobal\increment\ChapterCounter > >   \doifoddpageelse >     {} >     {\doifsomething >   

Re: [NTG-context] referencing both real and user pagenumbers

2020-05-29 Thread Wolfgang Schuster
Alan Bowen schrieb am 29.05.2020 um 16:53: Thank you, Wolfgang. That works nicely. One small detail left: the reference is not interactive. I have tried \setupreferencing [state=start, interaction=all] but that does not seem to be the way. minimal file: \setupinteraction[state=start]

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Wolfgang Schuster
Jan U. Hasecke schrieb am 29.05.2020 um 15:10: Am 29.05.20 um 12:45 schrieb Wolfgang Schuster: juh schrieb am 29.05.2020 um 10:29: Dear all, with your help I can colorize the empty even page right before a chapter starts on the odd page. The mwe below shows it. Now I would like to redefine

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Jan U. Hasecke
Am 29.05.20 um 12:45 schrieb Wolfgang Schuster: > juh schrieb am 29.05.2020 um 10:29: >> Dear all, >> >> with your help I can colorize the empty even page right before a >> chapter starts >> on the odd page. The mwe below shows it. >> >> Now I would like to redefine the contents of the left page

Re: [NTG-context] referencing both real and user pagenumbers

2020-05-29 Thread Wolfgang Schuster
Alan Bowen schrieb am 29.05.2020 um 00:13: I have a collection of papers printed previously that are to go into a single volume so that, while the papers retain their original pagination and internal cross-referencing, they are also paginated continuously. I have managed to do this using

Re: [NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread Wolfgang Schuster
juh schrieb am 29.05.2020 um 10:29: Dear all, with your help I can colorize the empty even page right before a chapter starts on the odd page. The mwe below shows it. Now I would like to redefine the contents of the left page on the fly in the text so that I could place images on this page.

Re: [NTG-context] mtxrun exit code

2020-05-29 Thread Marco Patzer
On Fri, 29 May 2020 11:20:22 +0200 Hans van der Meer wrote: > I am producing a series of files in a shell script with mtxrun > --autogenerate --script context input Doing exit mtxrun... shows > there is no exit number to test in the shell The exit code from mtxrun works here: printf '%s\n'

[NTG-context] mtxrun exit code

2020-05-29 Thread Hans van der Meer
I am producing a series of files in a shell script with mtxrun --autogenerate --script context input Doing exit mtxrun... shows there is no exit number to test in the shell, or to ste a shell variable to that value. I can set a global macro \ExitStatus to an exit value depending on success or

[NTG-context] Let chapter start on odd page and make the even page before show an image

2020-05-29 Thread juh
Dear all, with your help I can colorize the empty even page right before a chapter starts on the odd page. The mwe below shows it. Now I would like to redefine the contents of the left page on the fly in the text so that I could place images on this page. I thought that I could get a simple

Re: [NTG-context] About the use of command handlers

2020-05-29 Thread Hans Hagen
On 5/29/2020 6:29 AM, Jairo A. del Rio wrote: Hello list! I was reading the following: https://wiki.contextgarden.net/Style_Alternatives I wanted to figure out how to make a simple module. However, there's a point in the example below which I don't understand % macros=mkvi

Re: [NTG-context] LMTX: different output if dots are used in the file name

2020-05-29 Thread Hans Hagen
On 5/28/2020 8:31 PM, Marco Patzer wrote: On Thu, 28 May 2020 18:18:51 +0200 Hans Hagen wrote: MkIV (everything's predictable and fine): 10.10.10.tex → 10.10.10.pdf 10.10.11.tex → 10.10.11.pdf 11.10.11.tex → 11.10.11.pdf LMTX: 10.10.10.tex → 10.10 (not even a

Re: [NTG-context] Unicode chars and \insertpages (Win7)

2020-05-29 Thread Hans Hagen
On 5/28/2020 9:49 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \startext \insertpages[ξ_file.pdf] \stoptext Using latest on Linux, it works perfectly fine. On Windows (I’m still on Win7), it doesn’t work unless I replace "ξ" with an ASCII character. Could

Re: [NTG-context] Checking existence of a macro (control sequence) by Lua

2020-05-29 Thread Hans Hagen
On 5/28/2020 11:24 PM, cont...@vivaldi.net wrote: Hello, one more question - why macros \Undefined and \DoNothing show "defined" although I (tried to) undefine them? \starttext   \def\MyMacro{Ahoj}   \def\MyMac#1#2{Something}   \def\Undefined{}   \let\Undefined\undefined