Hi Hraban,
Many thanks; see below:
On Wed, 17 Nov 2021 04:32:56 -0700, Henning Hraban Ramm via ntg-context
<ntg-context@ntg.nl> 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 modes?
\startmode[short,long]
Something that appears everywhere.
\stopmode
\startmode[long] % or \startnotmode[short]
Something that’s only in the long version.
\stopmode
Many thanks; will study this.
Unfortunately - as pointed out on the wiki - modes cannot be nested.
:
Why would you need that?
:
Can you give an example for a use case?
:
That looks to me like flawed logic – why should content for the
unabridged version appear within the abridged version?
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 the unabridged version.
And this additional text goes into the abridged version.
% And this additional text goes into the unabridged version.
==============
An abridged run will ignore the commented text, and an unabridged run will
include it.
Consider variant texts:
=======
Here is some text that
contains % mode=variantone
includes % mode=varianttwo
is comprised of % mode=variantthree
some variants.
Here is some more text that
features % mode=variantone
exhibits % mode=varianttwo
illustrates % mode=variantthree
some variants.
=======
This example is to be processed to produce exactly three distinct results.
So, e.g., "contains" and "features" belong to variantone. Etc. So like XML.
It might be a bit annoying, but you could end the previous mode before
starting the next.
Assuming that I'm not misunderstanding you: For a book-length project,
that would be beyond annoying.
And, as mentioned above, you can use \startmode with lists.
Will try it. Thank you again!
Best wishes
Idris
--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80512
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________