Changes

Jump to navigation Jump to search
1,126 bytes added ,  18:26, 5 April 2008
more about streams
see [[source:m-streams.tex|streams source]]
 
From the [[http://archive.contextgarden.net/message/20060331.175831.414d087b.en.html|announcement mail]] by Thomas Schmitz:
 
We have streams for even and odd pages that can be synchronized at certain points.
This is useful for, e.g., typesetting bilingual books: have the original on the even pages, the translation on the odd pages, and synchronize at certain points.
 
The module provides a rather low-lever interface. Hans suggested some handy shortcuts:
<texcode>
\usemodule[streams]
 
\def\StartCouple{\page\SwitchToNormal}
\def\StopCouple {\SwitchToNormal \SynchronizeLeftAndRight \FlushLeftAndRight}
\def\Original {\SwitchToNormal\SynchronizeLeftAndRight\SwitchToLeft}
\def\Translation{\SwitchToRight}
 
\Original\en
Are you sleeping, brother John?
 
\Translation\de
Bruder Jakob, schläfst du noch?
</texcode>
 
So you put the part of your document where synchronization should take place between <cmd>StartCouple</cmd> and <cmd>StopCouple</cmd>. After that , <cmd>Original</cmd> and <cmd>Translation</cmd> switches between even and odd pages.
 
Beware, streams don't work in columns and not very good in columnsets.
{{todo|We need documentation and samples for Paragraphs, Streams and Column Sets}}
 
=Floats and other limitations of columns=

Navigation menu