Thank you, Wolfgang, for the suggestion using the buffer. This seems like a very good solution, indeed. I hadn't thought of that.

I noticed that this buffer even respects headlines starting on a new page...

%% begin: section test
\startbuffer[content]
\definepapersize[column][width=100mm,height=210mm]
\setuppapersize[column]
\setuphead[section][
    page=yes
  ]
\startsection[title={First Section}]
\dorecurse{15}{Line \recurselevel\par}
\startsection[title={Second Section}]
\dorecurse{17}{Line \recurselevel\par}
\startsection[title={Third Section}]
\dorecurse{200}{Line \recurselevel\par}
\stopbuffer

(...)
%% end: section test

So, this will work well, I think.

Thanks a lot! :D
Marcus



Am 31.08.25 um 22:22 schrieb Wolfgang Schuster:
Am 31.08.2025 um 22:08 schrieb Wolfgang Schuster:
Am 31.08.2025 um 20:11 schrieb Bruce Horrocks:

[...]

I'm not sure how this will react to different page sizes (for the ring binder space etc) so you may need to use a completely different approach whereby you print a "normal" document to PDF in regular page order, and then process that PDF using a separate Context file and / insertpages to achieve the layout you want.

The imposition mechanism isn't the best solution in this case to achieve something like the result from the example with a wide left margin.

A two step mechanism with with one document for the content and a second for the page placement is the simples solution. With the help of a buffer and \typesetbuffer it should be possible to combine both in a single document.

A simple example for the buffer method:

\startbuffer[content]
\definepapersize[column][width=100mm,height=210mm]
\setuppapersize[column]
\dorecurse{200}{Line \recurselevel\par}
\stopbuffer

\setuppapersize[A4,landscape]

\setuplayout[page]

\starttext

\setupTABLE
  [start]
  [frame=off,
   offset=0pt,
   height=th,
   align={middle,lohi},
   textwidth=tw,
   option=stretch]

\bTABLE
  \bTR
    \bTD \eTD
    \bTD \typesetbuffer[content][page=2] \eTD
    \bTD \typesetbuffer[content][page=3] \eTD
  \eTR
\eTABLE

\bTABLE
  \bTR
    \bTD \typesetbuffer[content][page=1] \eTD
    \bTD \typesetbuffer[content][page=4] \eTD
    \bTD \eTD
  \eTR
\eTABLE

\stoptext

Wolfgang

___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!

maillist : [email protected] / 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
___________________________________________________________________________________
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
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