From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: No widows and orphans
Date: Tue, 1 Mar 2011 18:21:35 +0100 [thread overview]
Message-ID: <46A033FB-E668-4EC3-9C70-65C2511322A5@gmail.com> (raw)
In-Reply-To: <AANLkTim18zRGjUKRa4SW5YnCXDjgFYEyW90On-tp_O42@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 971 bytes --]
Am 01.03.2011 um 18:05 schrieb Cecil Westerhof:
> 2011/3/1 Wolfgang Schuster <schuster.wolfgang@googlemail.com>
>
> Am 01.03.2011 um 17:06 schrieb Philipp Stephani:
>
> > I don't know whether that still works in ConTeXt, but try
> > \interlinepenalty=10000
>
> It works but it’s to low level.
>
> There is also \interlinepenalties and ConTeXts \keeplinestogether (which use it) command but it doesn’t work
>
> \starttext
>
> \dorecurse{4}{\input tufte\par}
>
> \keeplinestogether{10}
> \input tufte\par
>
> \stoptext
>
> If you add before starttext \interlinepenalty=10000 it works. But alas, not in my case.
This will change the settings for all paragraphs while \keeplinestogether
only applies for a given number of line for the next paragraph.
Maybe this is what you want:
\starttext
\dorecurse{4}{\input tufte\par}
\start\interlinepenalty=10000 % keep the setting local
\input tufte\par
\stop
\stoptext
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 1803 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2011-03-01 17:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1156.1298991796.4223.ntg-context@ntg.nl>
2011-03-01 16:06 ` Philipp Stephani
2011-03-01 16:14 ` Cecil Westerhof
2011-03-01 16:17 ` Wolfgang Schuster
2011-03-01 17:05 ` Cecil Westerhof
2011-03-01 17:21 ` Wolfgang Schuster [this message]
2011-03-01 18:06 ` Cecil Westerhof
2011-03-01 19:19 ` Wolfgang Schuster
2011-03-01 19:31 ` Cecil Westerhof
2011-03-01 19:53 ` Wolfgang Schuster
2011-03-01 21:10 ` Cecil Westerhof
2011-03-01 14:41 Cecil Westerhof
2011-03-01 14:50 ` Thomas A. Schmitz
2011-03-01 14:56 ` Cecil Westerhof
2011-03-01 14:58 ` luigi scarso
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=46A033FB-E668-4EC3-9C70-65C2511322A5@gmail.com \
--to=schuster.wolfgang@googlemail.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).