ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* (again) issues with streams
@ 2012-01-03 19:25 Pablo Rodríguez
  0 siblings, 0 replies; only message in thread
From: Pablo Rodríguez @ 2012-01-03 19:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi there,

playing with an example posted by Wolfgang to the list, I'm trying to
generate a bilingual poetry edition (original and facing translation).

If anyone could help, I'd really appreciate (this is the second time I
post the message to the list
http://www.ntg.nl/pipermail/ntg-context/2011/064184.html).

This is a minimal sample:

	\enabletrackers[streams.flushing]
	\def\itit#1{{\language[it]\em#1}}
	\starttext
	\completecontent
	
	\startoutputstream[agr]
	
	\dorecurse{4}{\chapter{Knuth}\input knuth\par}
	
	\enableoutputstream[es]
	
	\dorecurse{4}{\chapter{Ward}\input ward\par \input tufte\par}
	
	\disableoutputstream
	\stopoutputstream
	\synchronizestreams[agr,es]
	\page \flushoutputstream[agr]
	\page \flushoutputstream[es]
	\stoptext

My first question is how can I make that ConTeXt synchronizes
automatically titles and paragraphs. I mean, I want to type the original
first and the translation after the original and that ConTeXt typesets
everything right (original with facing translation).

My second question is how can I do that numbering on both sides is
really independent. I mean that chapter and similar titles have the same
number that its facing translations (and the same for footnotes).

My third question is how can I number lines there, since I get the
following error when using \starlinenumbering ... \stoplinenumbering
(this is all Greek to me):

!LuaTeX error: There should have been a lua <node> here, not an object
with type nil!
 ==> Fatal error occurred, no output PDF file produced!
Compilation failed.
mtx-context     | fatal error: return code: 70

Thanks for your help,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-01-03 19:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-03 19:25 (again) issues with streams Pablo Rodríguez

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).