ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
Subject: new module: streams
Date: Fri, 31 Mar 2006 19:58:31 +0200	[thread overview]
Message-ID: <1D93D389-F41A-4917-8542-6464F62466AA@uni-bonn.de> (raw)

Dear all,

as you may have seen in the lates release notes, ConTeXt has a new  
feature: we have now 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. I was very  
tenacious about it, and Hans has been characteristically generous  
with his skills and his time and has implemented something. I'm sure  
if some of you are interested, we will be able to refine it.

I am uploading a pdf-document displaying this new feature to our  
institute's website. Due to the system our university uses, it may  
take until tomorrow until it's really visible at http://www.uni- 
bonn.de/www/Philologie/Personal/Schmitz/Dateien.html It's a bilingual  
(Greek-German) edition of a number of Greek texts for my lecture  
course next semester. It's not perfect, but it shows how powerful  
this new feature is. Have a look at it; if anybody is interested in  
seeing the source code, just contact me, and I'll be happy to send it  
along. Just a very brief explanation, if you want to try this at home:

In the module, Hans has suggested a few shortcuts to using it, so I  
have in the preamble of the document:

\usemodule[streams]

\def\StartCouple{\page\SwitchToNormal}
\def\StopCouple {\SwitchToNormal \SynchronizeLeftAndRight  
\FlushLeftAndRight}
\def\Original   {\SwitchToNormal\SynchronizeLeftAndRight\SwitchToLeft}
\def\Translation{\SwitchToRight}

So you put the part of your document where synchronization should  
take place between \StartCouple and \StopCouple. After that ,  
\Original and \Translation switches between even and odd pages.

I know that several people on the list asked for a similar feature,  
and I'm very grateful to Hans for providing it.

Best

Thomas

             reply	other threads:[~2006-03-31 17:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-31 17:58 Thomas A. Schmitz [this message]
2006-03-31 21:45 ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1D93D389-F41A-4917-8542-6464F62466AA@uni-bonn.de \
    --to=thomas.schmitz@uni-bonn.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).