ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Bruce Horrocks <ntg@scorecrow.com>
To: ntg-context mailing list <ntg-context@ntg.nl>
Subject: [NTG-context] Re: streams reversed?
Date: Thu, 14 Sep 2023 11:14:15 +0100	[thread overview]
Message-ID: <E19203E7-EC36-4073-84B8-95D2487C2200@scorecrow.com> (raw)
In-Reply-To: <20f6346e-2e52-f65b-e716-fd281285e070@gmail.com>

On 13 Sep 2023, at 07:47, jbf <roma83537@gmail.com> wrote:
> 
> When I come to bodymatter and Chapter 1, again it works, except that the positions of the languages are reversed, so I end up with vi on the left and en on the right. By Chapter 2 we are back to the correct position once more (en left and vi right).
> I want to know why this is happening, and if I can prevent it happening.


I've modified the sample code you got from Wolfgang to include chapter headings and it all looks fine to me[1] - the red text is all on the right hand side and the greeen text is all on the left. If this doesn't help and you still have problems then you'll need to post a sample that actually shows the problem. I'm using ConTeXt  ver: 2023.09.04 19:15.

\starttext

\startoutputstream[one]
   \startcolor[red]
   \dorecurse{5}{\chapter{Stream One}
     \dorecurse{10}{\input knuth\par}
     }
   \stopcolor
\stopoutputstream

\startoutputstream[two]
   \startcolor[green]
   \dorecurse{5}{\chapter{Stream Two}
     \dorecurse{10}{\input zapf\par}
     }
   \stopcolor
\stopoutputstream

\synchronizestreams[one,two]

\setbox\scratchboxone\outputstreambox[one]
\setbox\scratchboxtwo\outputstreambox[two]

\doloop
 {\ifvoid\scratchboxone
    \exitloop
  \else
    \setbox\scratchboxfour\vsplit\scratchboxone to \textheight
    \vbox to \vsize{\box\scratchboxfour\vss}%
    \setbox\scratchboxfive\vsplit\scratchboxtwo to \textheight
    \vbox to \vsize{\box\scratchboxfive\vss}%
  \fi}

\stoptext


[1] Apart from unnecessary blank pages at the beginning but that's a different problem so I'm not addressing that for now.

—
Bruce Horrocks
Hampshire, UK


___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2023-09-14 10:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-13  6:47 [NTG-context] " jbf
2023-09-14 10:14 ` Bruce Horrocks [this message]
2023-09-14 22:04   ` [NTG-context] " jbf
2023-09-15 12:43     ` Hamid,Idris
2023-09-15 22:57       ` jbf
2023-09-17  8:01         ` Hans Hagen via ntg-context
     [not found]     ` <611158B6-83A3-424A-823C-78CA3C3EAFAD@scorecrow.com>
2023-09-15 22:55       ` jbf

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=E19203E7-EC36-4073-84B8-95D2487C2200@scorecrow.com \
    --to=ntg@scorecrow.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).