Re: [NTG-context] Space before/after combinations + centring

2021-11-17 Thread Hans Hagen via ntg-context
On 11/17/2021 11:50 PM, Marco Patzer via ntg-context wrote: On Wed, 17 Nov 2021 20:17:52 +0100 Wolfgang Schuster wrote: 2. There are no changes to adjust the vertical before and after a combination environment. That's unfortunate. Local patches can also be tricky because ConTeXt tries to

Re: [NTG-context] Space before/after combinations + centring

2021-11-17 Thread Marco Patzer via ntg-context
On Wed, 17 Nov 2021 20:17:52 +0100 Wolfgang Schuster wrote: > 2. There are no changes to adjust the vertical before and after a > combination environment. That's unfortunate. > Local patches can also be tricky because ConTeXt tries to freeze > the definitions of many user level commands which

Re: [NTG-context] Math in LMTX and definemathcommand

2021-11-17 Thread Hans Hagen via ntg-context
On 11/17/2021 10:59 PM, Otared Kavian via ntg-context wrote: Hi Hans, Thank you for the new upload and the rewriting of the math fonts stuff, thanks also to Mikael S. I did several tests on real size math projects and did not notice important issues. you missed the multiple primes issue (a

[NTG-context] Math in LMTX and definemathcommand

2021-11-17 Thread Otared Kavian via ntg-context
Hi Hans, Thank you for the new upload and the rewriting of the math fonts stuff, thanks also to Mikael S. I did several tests on real size math projects and did not notice important issues. The two issues I noticed, show up mainly with LucidaOT, and are explained in the following example:

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Idris Samawi Hamid ادريس سماوي حامد via ntg-context
On Wed, 17 Nov 2021 08:51:03 -0700, Henning Hraban Ramm via ntg-context wrote: TeX comments will illustrate: == This text goes into the abridged version. % This text will appear in the unabridged version. And this text goes into the abridged version. % And this text goes into

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Idris Samawi Hamid ادريس سماوي حامد via ntg-context
On Wed, 17 Nov 2021 11:54:52 -0700, Hans Hagen via ntg-context wrote: Blocks are a better mechanism, but I still prefer modes here because I find the \beginblock ... \endblock syntax to be a bit awkward in a context document. it also depends on usage ... you can have blocks and delay

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Idris Samawi Hamid ادريس سماوي حامد via ntg-context
On Wed, 17 Nov 2021 10:56:46 -0700, Aditya Mahajan via ntg-context wrote: But you don't have to directly use the modes. The following will work: \definestartstop[abridged] % By default, don't show the unabridged text \definebuffer[unabridged][local=yes, nested=yes] \startmode[unabridged]

Re: [NTG-context] Space before/after combinations + centring

2021-11-17 Thread Wolfgang Schuster via ntg-context
Marco Patzer via ntg-context schrieb am 17.11.2021 um 16:54: Hi! I'm in the process of converting some projects to LMTX. Combinations lacking “”before” and “after” keys (that place content before/after the *entire* combination, rather than the individual cell pairs), I came up with the

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Hans Hagen via ntg-context
On 11/17/2021 6:56 PM, Aditya Mahajan via ntg-context wrote: On Tue, 16 Nov 2021, Idris Samawi Hamid ادريس سماوي حامد wrote: Hi Aditya, Many thanks; see below: On Tue, 16 Nov 2021 17:23:59 -0700, Aditya Mahajan via ntg-context wrote: On Tue, 16 Nov 2021, Idris Samawi Hamid ادريس سماوي

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Aditya Mahajan via ntg-context
On Tue, 16 Nov 2021, Idris Samawi Hamid ادريس سماوي حامد wrote: > Hi Aditya, > > Many thanks; see below: > > On Tue, 16 Nov 2021 17:23:59 -0700, Aditya Mahajan via ntg-context > wrote: > > > On Tue, 16 Nov 2021, Idris Samawi Hamid ادريس سماوي حامد via ntg-context > > wrote: > > > > > Dear

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Henning Hraban Ramm via ntg-context
> Am 17.11.2021 um 16:08 schrieb ⁨Idris Samawi Hamid ادريس سماوي حامد⁩ > <⁨idris.ha...@colostate.edu⁩>: > >> That looks to me like flawed logic – why should content for the unabridged >> version appear within the abridged version? > > TeX comments will illustrate: > > == > This

[NTG-context] Space before/after combinations + centring

2021-11-17 Thread Marco Patzer via ntg-context
Hi! I'm in the process of converting some projects to LMTX. Combinations lacking “”before” and “after” keys (that place content before/after the *entire* combination, rather than the individual cell pairs), I came up with the following ugliness – which worked for longer than it deserved:

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Taco Hoekwater via ntg-context
Hi Idris, I think Hans was trying to point you to the blocks mechanism. Blocks *do* nest: \defineblock[sectionblock] \defineblock[myblock] \startmode[variantone] \keepblocks[sectionblock] \keepblocks[myblock] \stopmode \startmode[varianttwo] \keepblocks[sectionblock] \stopmode \starttext

[NTG-context] figure not added in current latest

2021-11-17 Thread Pablo Rodriguez via ntg-context
Hi Hans, I have the following sample: \setuppapersize[S6] \startbuffer[flag] \setuppapersize[S6] \starttext \startmakeup[page][align=center] \dontleavehmode \externalfigure[uk-flag.pdf][width=.8\textwidth] \stopmakeup \stoptext \stopbuffer \starttext

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Idris Samawi Hamid ادريس سماوي حامد via ntg-context
Hi Hraban, Many thanks; see below: On Wed, 17 Nov 2021 04:32:56 -0700, Henning Hraban Ramm via ntg-context wrote: Am 17.11.2021 um 04:06 schrieb ⁨Idris Samawi Hamid ادريس سماوي حامد via ntg-context⁩ <⁨ntg-context@ntg.nl⁩>: You know about \startnotmode and that you can use lists of

Re: [NTG-context] Checking for a macro in a string without expanding it

2021-11-17 Thread Hans Hagen via ntg-context
On 11/17/2021 12:36 PM, Henning Hraban Ramm via ntg-context wrote: Am 16.11.2021 um 22:18 schrieb Hans Hagen via ntg-context : it's pretty fast and needs no lua magic, only a twisted mind May I quote you as “ConTeXt needs a twisted mind”? ;D How about "Context tries to untwist your tex

Re: [NTG-context] Checking for a macro in a string without expanding it

2021-11-17 Thread Henning Hraban Ramm via ntg-context
> Am 16.11.2021 um 22:18 schrieb Hans Hagen via ntg-context > : > it's pretty fast and needs no lua magic, only a twisted mind May I quote you as “ConTeXt needs a twisted mind”? ;D Hraban ___ If your question is

Re: [NTG-context] Can modes be used for content control?

2021-11-17 Thread Henning Hraban Ramm via ntg-context
> Am 17.11.2021 um 04:06 schrieb ⁨Idris Samawi Hamid ادريس سماوي حامد via > ntg-context⁩ <⁨ntg-context@ntg.nl⁩>: > > Unfortunately - as pointed out on the wiki - modes cannot be nested. Why would you need that? You know about \startnotmode and that you can use lists of modes?

Re: [NTG-context] Checking for a macro in a string without expanding it

2021-11-17 Thread Hans Hagen via ntg-context
On 11/16/2021 11:15 PM, Joey McCollum via ntg-context wrote: I'm not sure if my mind is twisted enough! I can follow how Jairo's answer works, and that does what I need it to, but it's not as clear to me what the last two TeX-only approaches are doing at a low level. Perhaps more importantly,