ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: massifr@fastwebnet.it
To: ntg-context@ntg.nl
Subject: parallel texts, setuptabulate and widows-orphans control
Date: Tue, 19 Apr 2016 17:14:31 +0200	[thread overview]
Message-ID: <1750764.cfY0rSYDAn@max> (raw)

Hello list,
I've found that \start ... \stoptabulate can be used to format parallel texts,
with paragraphs that are synchronized and split well on different pages.

I also found that they don't play well with widow-orphan penalties.
Try this:

\setuptabulate[split=yes]

\starttext
  \setpenalties\widowpenalties{1}{10000}
  \setpenalties\clubpenalties{1}{10000}
  \starttabulate[|p|p|]
    \NC
    \dorecurse{3}{\input knuth}
    \NC
    \dorecurse{2}{\input knuth}
    \NC\NR
  \stoptabulate
\stoptext

The penalties' settings make some lines overlap.
Comment out those two lines and everything works well.
Not a great problem, since I don't think you need
widow-orphan control in parallel texts.

It took me some time to understand what was making 
lines overlap.
So I leave it here for future reference, if someone else
stumbles on the same problem.
___________________________________________________________________________________
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
___________________________________________________________________________________

                 reply	other threads:[~2016-04-19 15:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1750764.cfY0rSYDAn@max \
    --to=massifr@fastwebnet.it \
    --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).