On Wed, 17 Nov 2021 08:51:03 -0700, Henning Hraban Ramm via ntg-context
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.
Ok, it it’s about such small snippets, consider \doifmode{mode1,mode2}{Conditional text}.
I don’t think you would get shorter markup with nesting.
More possibilities see https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.conte...
Started there before starting this thread, but the focus appears to be global and the one and only working example near the end is pretty trivial -) But armed with the answers received here, will look at it again for ideas.
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.
How about:
Here is some text that \startmodeset [variantone] {contains} [varianttwo] {includes} [variantthree] {is comprised of} [default] {doesn’t contain} \stopmodeset some variants.
Very nice, many thanks! Will experiment with this method as well, comparing and contrasting with blocks and Aditya's modes method.
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.
Well, it looks like you’ll need a lot of markup anyway.
Indeed. And that's ok, as long as the structure is simple enough.. Occam's razor! Best wishes -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80512