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., we may have

a) abridged content
b) unabridged content - includes a)
c) abridged content + translation
d) unabridged content + translation
[:]

One can author and organize this in XML - pre-ConteXt - but perhaps one prefers to write in ConTeXt (take advantage of shortcuts etc.). So maybe

\defineparagraphs[unabridged]
\defineparagraphs[abridged]
\defineparagraphs[translation]

Then one authors the complete work in a single project, but you can produce a variety of versions, depending on the mode chosen:

\definemode[unabridged]
etc.

Can one do this in context? If so, does anyone have some working example of how to do it? Might even be worth a MyWay if not too unwieldy.. Thank you in advance!
see tests files in blocks path of test suite ... one of the oldest mechanisms in context (as we needed it for on source multiple output in educational documents)

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
  • [NTG-con... Idris Samawi Hamid ادريس سماوي حامد via ntg-context
    • Re:... Aditya Mahajan via ntg-context
      • ... Idris Samawi Hamid ادريس سماوي حامد via ntg-context
        • ... Henning Hraban Ramm via ntg-context
          • ... Idris Samawi Hamid ادريس سماوي حامد via ntg-context
            • ... Taco Hoekwater via ntg-context
            • ... Henning Hraban Ramm via ntg-context
        • ... Aditya Mahajan via ntg-context
          • ... Hans Hagen via ntg-context
          • ... Idris Samawi Hamid ادريس سماوي حامد via ntg-context
    • Re:... Hans Hagen via ntg-context

Reply via email to