On 2/7/2025 6:48 PM, Pablo Rodriguez via ntg-context wrote:
Dear list,

some days ago, I discovered "m-bibles.mkxl".

Unless I miss something, I think this may be a way to have parallel
texts (such as original text and translation) in facing pages.

I would like to be able to sync two text streams, as in the following
minimal sample:

   \showframe\showgrid

   \setuplayout
   [grid=yes]

   \setupwhitespace
     [none]
   \definecolumnset
     [paral]
     [n=1]

   \definesubcolumnset[paral][1][1]
   \definesubcolumnset[paral][2][2]

   \setuppagenumbering
     [alternative=doublesided]

   \starttext
   \startcolumnset[paral]
   \dorecurse{20}{%
     \startsubcolumnset[1]
       \title{Knuth}
       \flushsubcolumnsets[spread]
     \stopsubcolumnset
     \startsubcolumnset[1]
       \input{knuth}
       \flushsubcolumnsets[spread]
     \stopsubcolumnset}
   \dorecurse{20}
     {\startsubcolumnset[2]
       \title{Zapf}
       \flushsubcolumnsets[spread]
     \stopsubcolumnset
     \startsubcolumnset[2]
       \input{zapf}
       \flushsubcolumnsets[spread]
     \stopsubcolumnset}
    \flushsubcolumnsets[spread]
   \stopcolumnset
   \stoptext

Sorry, but since the module contains also code for XML handling, I don‘t
understand how the whole title and text synching works there.

Would anyone be so kind to explain how the sample above could have both
parallel titles and texts?

Because we prioritize other aspects we can't test all at the same time so this is all preliminary. The first beta of columnsets will be in a few months and the first stable version around the context meeting.

Anyway:

  \setuphead[chapter][before=,page=]

With:

    \dorecurse{20}{%
        \startsubcolumnset[1]
            \title{Knuth}
            \input{knuth}
        \stopsubcolumnset
        \startsubcolumnset[2]
            \title{Zapf}
            \input{zapf}
        \stopsubcolumnset
        \flushsubcolumnsets[spread]
    }

Once columnsets are stable we will deal with parallel text in mode details. There are also some conceptual / interfacing aspects to deal with. Kind of pet projects.

One thing we consider is a module that sets up some commands to work well with columnsets. And of course a manual takes time.

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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to