ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Bert Trüger" <xulxer@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Streams
Date: Sat, 12 Apr 2008 07:08:11 +0200	[thread overview]
Message-ID: <f4c832270804112208q6072b164g9ec92e893ddef1b9@mail.gmail.com> (raw)
In-Reply-To: <65D21850-8423-40A6-9325-887E13FD70BD@access.uzh.ch>


[-- Attachment #1.1: Type: text/plain, Size: 1784 bytes --]

On 4/11/08, Roman Sigg <rosigg@access.uzh.ch> wrote:
>
> Hello
>
> For a publication project in phonetics and dialectology I'd like to
> print the phonetic transcription and the dialect text in a two column
> setup. I would be interested to use context for that (more
> flexibility than LaTeX), but every new paragraph is printed on a new
> page (as Henning Hraban Ramm posted earlier). Is there a work around
> other than using two pages?
>
> Thanks,
> Roman
>
> Universität Zürich
> Phonogrammarchiv
> Roman Sigg
> Rämistr. 71
> 8006 Zürich
>
> Fon +41 44 634 39 90
> Fax +41 44 634 49 68
> rosigg@access.uzh.ch
>
> http://www.phonogrammarchiv.uzh.ch



Hi,

perhaps the streams module can help you? I use it to set texts and
theirs translations on
facing pages. You can find an example below. (It came over this list a while
ago.)

Kind regards

Chris



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\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.
\starttext

\scale[width=\textwidth,height=\textheight,factor=fit]{\ss m-streams}
\page

\StartCouple

\Original
this is an original text \crlf
\input knuth
%\blank[1cm]

\Translation
THIS IS THE TRANSLATION \crlf
\input tufte

\Original
\ss this is an original text \crlf
\input knuth

\Translation
\ss THIS IS THE TRANSLATION \crlf
\input tufte

\StopCouple

\stoptext

[-- Attachment #1.2: Type: text/html, Size: 2459 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  parent reply	other threads:[~2008-04-12  5:08 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-11  9:45 Streams Roman Sigg
2008-04-11 20:05 ` Streams Henning Hraban Ramm
2008-04-12  5:08 ` Bert Trüger [this message]
2008-04-12 22:02 ` Streams luigi scarso
2008-04-13 18:28   ` Streams Henning Hraban Ramm
  -- strict thread matches above, loose matches on Subject: below --
2011-11-23 19:31 Streams Willi Egger
2011-11-23 19:43 ` Streams Wolfgang Schuster
2011-11-23 22:09   ` Streams Willi Egger
2010-03-11 10:47 streams Philipp Gesang
2010-03-11 18:37 ` streams Hans Hagen
2010-03-12 22:43   ` streams Philipp Gesang
2010-03-13 12:20     ` streams Hans Hagen
2007-03-07 19:43 Streams Idris Samawi Hamid

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=f4c832270804112208q6072b164g9ec92e893ddef1b9@mail.gmail.com \
    --to=xulxer@gmail.com \
    --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).