* [NTG-context] stream sync (or \pushoutputstream)
@ 2023-09-16 17:16 Pablo Rodriguez
0 siblings, 0 replies; only message in thread
From: Pablo Rodriguez @ 2023-09-16 17:16 UTC (permalink / raw)
To: ConTeXt users
Dear list,
I have the following sample:
\showgrid
\setuplayout[grid=yes]
\starttext
\startoutputstream[one]
\startcolor[red]
\dorecurse{4}{\input knuth\par\pushoutputstream}
\stopcolor
\stopoutputstream
\startoutputstream[two]
\startcolor[green]
\dorecurse{4}{\input zapf\par\pushoutputstream}
\stopcolor
\stopoutputstream
\null\page
\synchronizestreams[one,two]
\flushoutputstream[one]
\page\flushoutputstream[two]
\stoptext
With MkIV, stream one is always a line before stream two (11-12, 21-22,
31-32).
With LMTX, the output is less reliable, since stream one is one, two and
three lines before stream two (11-12, 21-23, 31-34).
In some cases, having synced streams is highly desirable.
Besides the output difference in LMTX, is there a way to get fully
synced streams?
Many thanks for your help,
Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-09-16 17:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-16 17:16 [NTG-context] stream sync (or \pushoutputstream) Pablo Rodriguez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox