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

2021-11-16 Thread Hans Hagen via ntg-context
On 11/17/2021 12:25 AM, Idris Samawi Hamid ادريس سماوي حامد via ntg-context wrote: Dear gang, For creating/authoring content in ConTeXt: Can modes or the like be used for content control? For example, someone wants to write at least two versions of a book managed from a single file. So, e.g.,

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

2021-11-16 Thread Idris Samawi Hamid ادريس سماوي حامد via ntg-context
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 gang, For creating/authoring content in ConTeXt: Can modes or the like be used for content

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

2021-11-16 Thread Aditya Mahajan via ntg-context
On Tue, 16 Nov 2021, Idris Samawi Hamid ادريس سماوي حامد via ntg-context wrote: > Dear gang, > > For creating/authoring content in ConTeXt: Can modes or the like be used > for content control? For example, someone wants to write at least two > versions of a book managed from a single file.

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

2021-11-16 Thread Idris Samawi Hamid ادريس سماوي حامد via ntg-context
Dear gang, For creating/authoring content in ConTeXt: Can modes or the like be used for content control? For example, someone wants to write at least two versions of a book managed from a single file. So, e.g., we may have a) abridged content b) unabridged content - includes a) c) abridged

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

2021-11-16 Thread Joey McCollum via ntg-context
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, I should clarify that for my purposes, the \MyOuter macro is the

Re: [NTG-context] SimpleSlides and Visual counters

2021-11-16 Thread Otared Kavian via ntg-context
Hi Aditya, Thank you for your attention and your kind reply. I am sending a setup file with an example of presentation, which shows the issue with LMTX while with mkiv the result is fine. Actually as you can see in the setup file, I have slightly modified the visula counter in order for it to

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

2021-11-16 Thread Hans Hagen via ntg-context
On 11/16/2021 9:09 PM, Jairo A. del Rio via ntg-context wrote: If I understand it correctly, you may need something like this...? % Protection is key \protected\def\inner[#1]{\empty} % \outer is (or was) already defined in \CONTEXT % Please use another name \def\Outer{\inner[123] and

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

2021-11-16 Thread Hans Hagen via ntg-context
On 11/16/2021 8:22 PM, Joey McCollum via ntg-context wrote: As the subject of this question suggests, this is really more of a question about expansion control (a topic that is still a bit obscure to me). Suppose I have a macro \inner that expects a single argument or an assignment of

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

2021-11-16 Thread Jairo A. del Rio via ntg-context
If I understand it correctly, you may need something like this...? % Protection is key \protected\def\inner[#1]{\empty} % \outer is (or was) already defined in \CONTEXT % Please use another name \def\Outer{\inner[123] and \inner[some text] etc.} \startluacode local implement =

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

2021-11-16 Thread Joey McCollum via ntg-context
As the subject of this question suggests, this is really more of a question about expansion control (a topic that is still a bit obscure to me). Suppose I have a macro \inner that expects a single argument or an assignment of parameters in brackets. For my purposes, I don't want this macro to do

Re: [NTG-context] new upload, new trickery

2021-11-16 Thread Hans Hagen via ntg-context
On 11/16/2021 2:52 PM, Marcus Vinicius Mesquita via ntg-context wrote: Hi, Hans I tried to run your first example, but ConTeXt throws an error and complains that \resetleftparbox was never defined. Using version: 2021.11.13 it evolved a bit (see low level manual) or typo-lbx

Re: [NTG-context] SimpleSlides and Visual counters

2021-11-16 Thread Aditya Mahajan via ntg-context
On Mon, 15 Nov 2021, Otared Kavian via ntg-context wrote: Hi Otared, > It seems that the visual counter in SimpleSlides module (the version I have > from ConTeXt Garden is from 2014) does not work fine with the latest LMTX. > Is the issue is known ? If so, is there a new version of

Re: [NTG-context] unknown script

2021-11-16 Thread Aditya Mahajan via ntg-context
On Tue, 16 Nov 2021, skyhorse--- via ntg-context wrote: > > OS: Linux (Ubuntu 20.04.3) > /opt/context-lmtx and all directories and files in it are owned by user > and not root. > > I've had this problem before but forgot how to deal with it and neglected to > make a not of it. > I

[NTG-context] unknown script

2021-11-16 Thread skyhorse--- via ntg-context
OS: Linux (Ubuntu 20.04.3) /opt/context-lmtx and all directories and files in it are owned by user and not root. I've had this problem before but forgot how to deal with it and neglected to make a not of it. I deleted all old context files and did a fresh install of context-lmtx without

Re: [NTG-context] new upload, new trickery

2021-11-16 Thread Marcus Vinicius Mesquita via ntg-context
Hi, Hans I tried to run your first example, but ConTeXt throws an error and complains that \resetleftparbox was never defined. Using version: 2021.11.13 Regards Marcus Vinicius On Thu, Oct 28, 2021 at 6:24 AM Hans Hagen via ntg-context < ntg-context@ntg.nl> wrote: > Hi, > > Among the 'can

Re: [NTG-context] Footnotes in margins

2021-11-16 Thread Marcus Vinicius Mesquita via ntg-context
Thank you Hraban and Taco for the help. Tricky indeed. Regards Marcus Vinicius On Tue, Nov 16, 2021 at 8:57 AM Marcus Vinicius Mesquita < marcusvinicius.mesqu...@gmail.com> wrote: > Dear list, > > When running the MWE below, the first footnote does not appear. > What am I missing? > >

Re: [NTG-context] new upload

2021-11-16 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] Footnotes in margins

2021-11-16 Thread Taco Hoekwater via ntg-context
Hi, Like Hraban said, inserts are generally tricky and they tend to disappear when used inside other elements like floating objects / boxes / tables. However, ConTeXt has an easy way out at least for your case: \starttext \startpostponingnotes \inmargin{Foo\footnote{Foo 1.}}Foo\footnote{Foo

Re: [NTG-context] Footnotes in margins

2021-11-16 Thread Henning Hraban Ramm via ntg-context
> Am 16.11.2021 um 12:57 schrieb Marcus Vinicius Mesquita via ntg-context > : > > Dear list, > > When running the MWE below, the first footnote does not appear. > What am I missing? > > \starttext > \inmargin{Foo\footnote{Foo 1.}}Foo\footnote{Foo 2.} > \stoptext Footnotes are "inserts", and

[NTG-context] Footnotes in margins

2021-11-16 Thread Marcus Vinicius Mesquita via ntg-context
Dear list, When running the MWE below, the first footnote does not appear. What am I missing? \starttext \inmargin{Foo\footnote{Foo 1.}}Foo\footnote{Foo 2.} \stoptext ConTeXt version: 2021.11.13 Regards Marcus Vinicius -- Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o

Re: [NTG-context] space handling in \type

2021-11-16 Thread Hans Hagen via ntg-context
On 11/16/2021 10:53 AM, Henning Hraban Ramm via ntg-context wrote: Hi, \starttext \quotation{\type{\CONTEXT\ }} \stoptext gives “\CONTEXT \” i.e. the space moved. Why? Bug? no, side effect of catcodes ... when you use \type it will change catcodes (sort of) and when tex serializes a \cs it

[NTG-context] space handling in \type

2021-11-16 Thread Henning Hraban Ramm via ntg-context
Hi, \starttext \quotation{\type{\CONTEXT\ }} \stoptext gives “\CONTEXT \” i.e. the space moved. Why? Bug? Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :