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

2020-06-18 Thread Hans Hagen
On 6/18/2020 10:27 AM, Lukas/ConTeXt wrote: Hello, I'm using Hans' macro suggested some time before. I've just updated Ctx MkIV and my sample code: \starttext \def\MyMacro{Ahoj} \def\MyMacWithPars#1#2{Something} \def\Undefined{} \let\Undefined\undefined \def\DoNothing{}

Re: [NTG-context] margin comment above heading

2020-06-18 Thread Pablo Rodriguez
On 6/17/20 11:26 PM, Henning Hraban Ramm wrote: > [...] > Pablo, do I understand right that you’re converting XML and the > comment comes last in that structure, but you need it first?> I.e. > the real question is how to process the XML structure in a different > order, right? Hraban, yes, this

Re: [NTG-context] \blank space at the top of a page

2020-06-18 Thread James Withers
Many thanks Wolfgang I tried using force but that caused a problem with aligning to the grid, not included in my original example, but included below. I think I have seen \mbox used in this way in Latex, so was trying to find a quick solution. James \setuplayout[grid=yes] \showgrid

Re: [NTG-context] How could I find the 'depth' of an element found with xml.first()?

2020-06-18 Thread Hans Hagen
On 6/18/2020 3:24 PM, Gerben Wierda wrote: Given the following XML snippet OmaFoo

Re: [NTG-context] \blank space at the top of a page

2020-06-18 Thread Wolfgang Schuster
James Withers schrieb am 18.06.2020 um 17:35: Hello list I have been trying to find a solution to how to insert blank lines before a chapter heading at the start of a page. In the following example the \blank[4*big] is ignored. The solution I've found is to add an empty box using \mbox{} before

Re: [NTG-context] margin comment above heading

2020-06-18 Thread Pablo Rodriguez
On 6/17/20 10:47 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 16.06.2020 um 22:17: >> Dear list, >> >> I have the following sample: >> >>\startsetups[tinytiny] >> \setupwhitespace[-2em] >> \setupbodyfont[0.01pt] >> \setupinterlinespace[1sp] >>\stopsetups This

[NTG-context] \blank space at the top of a page

2020-06-18 Thread James Withers
Hello list I have been trying to find a solution to how to insert blank lines before a chapter heading at the start of a page. In the following example the \blank[4*big] is ignored. The solution I've found is to add an empty box using \mbox{} before the \blank command. Is this the right way to

[NTG-context] How could I find the 'depth' of an element found with xml.first()?

2020-06-18 Thread Gerben Wierda
Given the following XML snippet OmaFoo

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

2020-06-18 Thread Lukas/ConTeXt
Hello, I need to check within Lua. My sample cases are very minimalistic - I'm working on more complicated task actually, where check-for-control-sequence-existence need to be performed run-time within Lua scope. Best, Lukas -- Původní e-mail -- Od: Hans van der

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

2020-06-18 Thread Hans van der Meer
Why can you not simply use one of the doifundefined macro's? Something for example: \doifundefined{ExitStatus}{\gdef\ExitStatus{0}} % default to ok as in UNIX dr. Hans van der Meer > On 18 Jun 2020, at 10:27, Lukas/ConTeXt wrote: > > Hello, > I'm using Hans' macro suggested some time before.

[NTG-context] Checking existence of a macro (control sequence) by Lua - problem after updating MkIV

2020-06-18 Thread Lukas/ConTeXt
Hello, I'm using Hans' macro suggested some time before. I've just updated Ctx MkIV and my sample code: \starttext \def\MyMacro{Ahoj} \def\MyMacWithPars#1#2{Something} \def\Undefined{} \let\Undefined\undefined \def\DoNothing{} \let\DoNothing\donothing \startluacode if

Re: [NTG-context] (no subject)

2020-06-18 Thread Malte Frank Gerdes
I am rarely using mailing lists, so i hope that i do it right :). Thanks for the help, Taco. I added an entry to the Wiki, but i'm not sure if it is sufficient this way and if it needs approval/review or something. Malte