Re: [NTG-context] protected macro vs protected luacall

2023-01-27 Thread Henri Menke via ntg-context
On Thu, 2023-01-26 at 23:07 +0100, Hans Hagen via ntg-context wrote: > On 1/26/2023 9:33 PM, Henri Menke via ntg-context wrote: > > \directlua{ > >userdata = userdata or {} > >function userdata.test() > > tex.print("\string\\numexpr 17\string\\relax") > >end > > } > > > > \tt > >

Re: [NTG-context] protected macro vs protected luacall

2023-01-27 Thread Hans Hagen via ntg-context
On 1/27/2023 10:13 AM, Henri Menke via ntg-context wrote: On Thu, 2023-01-26 at 23:07 +0100, Hans Hagen via ntg-context wrote: On 1/26/2023 9:33 PM, Henri Menke via ntg-context wrote: \directlua{ userdata = userdata or {} function userdata.test() tex.print("\string\\numexpr

Re: [NTG-context] protected macro vs protected luacall

2023-01-27 Thread Henri Menke via ntg-context
On Fri, 2023-01-27 at 11:01 +0100, Hans Hagen via ntg-context wrote: > On 1/27/2023 10:35 AM, Henri Menke via ntg-context wrote: > > > Thanks, this is indeed the workaround that I currently use. > > However, > > the downside is that this has to tokenize the contents of > > \directlua > > every

Re: [NTG-context] protected macro vs protected luacall

2023-01-27 Thread Henri Menke via ntg-context
On Fri, 2023-01-27 at 10:30 +0100, Hans Hagen via ntg-context wrote: > On 1/27/2023 10:13 AM, Henri Menke via ntg-context wrote: > > On Thu, 2023-01-26 at 23:07 +0100, Hans Hagen via ntg-context > > wrote: > > > On 1/26/2023 9:33 PM, Henri Menke via ntg-context wrote: > > > > \directlua{ > > > >

Re: [NTG-context] protected macro vs protected luacall

2023-01-27 Thread Hans Hagen via ntg-context
On 1/27/2023 12:03 PM, Henri Menke via ntg-context wrote: How much do you think would break if protected luacall were treated like protected macros after \the in the engine? That kind of incompatibility is no option (I'm not going to analyze it for mkiv let along other macro package usage

Re: [NTG-context] protected macro vs protected luacall

2023-01-27 Thread Hans Hagen via ntg-context
On 1/27/2023 10:35 AM, Henri Menke via ntg-context wrote: Thanks, this is indeed the workaround that I currently use. However, the downside is that this has to tokenize the contents of \directlua every time (and is therefore susceptible to surrounding \catcode shenanigans) and it expands in at

Re: [NTG-context] autospacing and colonequals (was Lucida-1.901 (2023-01-21) available)

2023-01-27 Thread Otared Kavian via ntg-context
Hi Hans, Thank you for the hint: indeed \setupmathematics[collapsing=2] does exactly what I was looking for… Now, like many others, I am just waiting for the 3145 pages document about maths in ConTeXt :-) Best regards: Otared > On 26 Jan 2023, at 23:23, Hans Hagen via ntg-context

Re: [NTG-context] autospacing and colonequals (was Lucida-1.901 (2023-01-21) available)

2023-01-27 Thread Hans Hagen via ntg-context
On 1/27/2023 6:26 PM, Otared Kavian via ntg-context wrote: Hi Hans, Thank you for the hint: indeed \setupmathematics[collapsing=2] does exactly what I was looking for… Now, like many others, I am just waiting for the 3145 pages document about maths in ConTeXt :-) It will be 3147 because we

Re: [NTG-context] autospacing and colonequals (was Lucida-1.901 (2023-01-21) available)

2023-01-27 Thread Hans Hagen via ntg-context
On 1/27/2023 6:58 PM, Aditya Mahajan via ntg-context wrote: On Fri, 27 Jan 2023, Hans Hagen via ntg-context wrote: On 1/27/2023 6:26 PM, Otared Kavian via ntg-context wrote: Hi Hans, Thank you for the hint: indeed \setupmathematics[collapsing=2] does exactly what I was looking for… Now,

Re: [NTG-context] autospacing and colonequals (was Lucida-1.901 (2023-01-21) available)

2023-01-27 Thread Aditya Mahajan via ntg-context
On Fri, 27 Jan 2023, Hans Hagen via ntg-context wrote: > On 1/27/2023 6:26 PM, Otared Kavian via ntg-context wrote: > > Hi Hans, > > > > Thank you for the hint: indeed > > \setupmathematics[collapsing=2] > > does exactly what I was looking for… > > > > Now, like many others, I am just waiting

[NTG-context] Subject: Leading spaces verbatim

2023-01-27 Thread Kalouguine Andre via ntg-context
Good day to everyone, I'm trying to make a verbatim block of text with copiable leading spaces so that students can just copy my Python code snippets into their IDE. I believe the question has been asked before (though I confess I can't find the right search terms to find the answer again). I

[NTG-context] notes by paragraph

2023-01-27 Thread jbf via ntg-context
Re my earlier question on footnotes by defined paragraph: \start...stoplocalfootnotes and \placelocalfootnotes largely solves the issue (had forgotten that option), but I am still getting the footnotes repeated at the bottom of the page. I am obviously missing a setting. There are parts of

[NTG-context] footnotes by paragraph?

2023-01-27 Thread jbf via ntg-context
Here's a tricky one (for me) that I haven't been able to work out. I am dealing with a set of constitutions that I am organizing with a paragraph definition \defineparagraphs[Two][n=2] \setupparagraphs[Two][1][width=.2\textwidth,style=\bfx,after={\blank},align=flushleft]