ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: No widows and orphans
       [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
  0 siblings, 2 replies; 14+ messages in thread
From: Philipp Stephani @ 2011-03-01 16:06 UTC (permalink / raw)
  To: ntg-context

Am 01.03.2011 um 16:03 schrieb ntg-context-request@ntg.nl:

> Von: Cecil Westerhof <cldwesterhof@gmail.com>
> Datum: 1. März 2011 15:56:03 MEZ
> An: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Betreff: Re: [NTG-context] No widows and orphans
> Antwort an: mailing list for ConTeXt users <ntg-context@ntg.nl>
> 
> 
> 2011/3/1 Thomas A. Schmitz <thomas.schmitz@uni-bonn.de>
> 
> On Mar 1, 2011, at 3:41 PM, Cecil Westerhof wrote:
> 
> > I do not want to have widows and orphans. Because of this I use:
> > \clubpenalty=10000
> > \widowpenalty=10000
> >
> > But this has no effect. Still the last two lines of a paragraph are put on the next page instead of the complete paragraph.
> 
> I think you are confusing things here: orphans and widows refer to single lines on the following/preceding page. So if you get two lines, you get exactly what you ask for. If I understand you correctly, you do not want to break paragraphs vertically at all?
> 
> Okay, I did not understand the terminology correctly.
> 
> Yes, in this particular case I would like not to break them.

I don't know whether that still works in ConTeXt, but try
\interlinepenalty=10000

> What would also be acceptable is when there are at least five lines on the page.

Try this (again untested):
\clubpenalties 5 10000 10000 10000 10000 10000
\widowpenalties 5 10000 10000 10000 10000 10000
___________________________________________________________________________________
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] 14+ messages in thread

* Re: No widows and orphans
  2011-03-01 16:06 ` No widows and orphans Philipp Stephani
@ 2011-03-01 16:14   ` Cecil Westerhof
  2011-03-01 16:17   ` Wolfgang Schuster
  1 sibling, 0 replies; 14+ messages in thread
From: Cecil Westerhof @ 2011-03-01 16:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

2011/3/1 Philipp Stephani <st_philipp@yahoo.de>

> > Yes, in this particular case I would like not to break them.
>
> I don't know whether that still works in ConTeXt, but try
> \interlinepenalty=10000
>

That made havoc of my document.



> > What would also be acceptable is when there are at least five lines on
> the page.
>
> Try this (again untested):
> \clubpenalties 5 10000 10000 10000 10000 10000
> \widowpenalties 5 10000 10000 10000 10000 10000
>

Does not seem to have any effect.

-- 
Cecil Westerhof

[-- Attachment #1.2: Type: text/html, Size: 1041 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: No widows and orphans
  2011-03-01 16:06 ` No widows and orphans Philipp Stephani
  2011-03-01 16:14   ` Cecil Westerhof
@ 2011-03-01 16:17   ` Wolfgang Schuster
  2011-03-01 17:05     ` Cecil Westerhof
  1 sibling, 1 reply; 14+ messages in thread
From: Wolfgang Schuster @ 2011-03-01 16:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Wolfgang

___________________________________________________________________________________
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] 14+ messages in thread

* Re: No widows and orphans
  2011-03-01 16:17   ` Wolfgang Schuster
@ 2011-03-01 17:05     ` Cecil Westerhof
  2011-03-01 17:21       ` Wolfgang Schuster
  0 siblings, 1 reply; 14+ messages in thread
From: Cecil Westerhof @ 2011-03-01 17:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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.

-- 
Cecil Westerhof

[-- Attachment #1.2: Type: text/html, Size: 955 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: No widows and orphans
  2011-03-01 17:05     ` Cecil Westerhof
@ 2011-03-01 17:21       ` Wolfgang Schuster
  2011-03-01 18:06         ` Cecil Westerhof
  0 siblings, 1 reply; 14+ messages in thread
From: Wolfgang Schuster @ 2011-03-01 17:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: No widows and orphans
  2011-03-01 17:21       ` Wolfgang Schuster
@ 2011-03-01 18:06         ` Cecil Westerhof
  2011-03-01 19:19           ` Wolfgang Schuster
  0 siblings, 1 reply; 14+ messages in thread
From: Cecil Westerhof @ 2011-03-01 18:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

2011/3/1 Wolfgang Schuster <schuster.wolfgang@googlemail.com>

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

That is exactly what I want: keeping all my paragraphs together. But when I
use it in my file, I get a few lines pro page.

-- 
Cecil Westerhof

[-- Attachment #1.2: Type: text/html, Size: 905 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: No widows and orphans
  2011-03-01 18:06         ` Cecil Westerhof
@ 2011-03-01 19:19           ` Wolfgang Schuster
  2011-03-01 19:31             ` Cecil Westerhof
  0 siblings, 1 reply; 14+ messages in thread
From: Wolfgang Schuster @ 2011-03-01 19:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


Am 01.03.2011 um 19:06 schrieb Cecil Westerhof:

> 2011/3/1 Wolfgang Schuster <schuster.wolfgang@googlemail.com>
>> 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.
> 
> That is exactly what I want: keeping all my paragraphs together. But when I use it in my file, I get a few lines pro page. 


% engine=pdftex

\setupparagraphintro[each][\keeplinestogether{10}]

\starttext
\dorecurse{5}{\input tufte\par}
\stoptext

The \setupparagraphintro command doesn’t work currently in mkiv.

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 1656 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: No widows and orphans
  2011-03-01 19:19           ` Wolfgang Schuster
@ 2011-03-01 19:31             ` Cecil Westerhof
  2011-03-01 19:53               ` Wolfgang Schuster
  0 siblings, 1 reply; 14+ messages in thread
From: Cecil Westerhof @ 2011-03-01 19:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

2011/3/1 Wolfgang Schuster <schuster.wolfgang@googlemail.com>

> \setupparagraphintro[each][\keeplinestogether{10}]
>

Wrecks havoc with my document.

-- 
Cecil Westerhof

[-- Attachment #1.2: Type: text/html, Size: 519 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: No widows and orphans
  2011-03-01 19:31             ` Cecil Westerhof
@ 2011-03-01 19:53               ` Wolfgang Schuster
  2011-03-01 21:10                 ` Cecil Westerhof
  0 siblings, 1 reply; 14+ messages in thread
From: Wolfgang Schuster @ 2011-03-01 19:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


Am 01.03.2011 um 20:31 schrieb Cecil Westerhof:

> 2011/3/1 Wolfgang Schuster <schuster.wolfgang@googlemail.com>
> \setupparagraphintro[each][\keeplinestogether{10}]
> 
> Wrecks havoc with my document. 

Without seeing your document there is no way to help you.

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 891 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: No widows and orphans
  2011-03-01 19:53               ` Wolfgang Schuster
@ 2011-03-01 21:10                 ` Cecil Westerhof
  0 siblings, 0 replies; 14+ messages in thread
From: Cecil Westerhof @ 2011-03-01 21:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

2011/3/1 Wolfgang Schuster <schuster.wolfgang@googlemail.com>

> \setupparagraphintro[each][\keeplinestogether{10}]
>
>
> Wrecks havoc with my document.
>
>
> Without seeing your document there is no way to help you.
>

I'll try to make a synopsis. Will properly be Friday before I'll post it.

-- 
Cecil Westerhof

[-- Attachment #1.2: Type: text/html, Size: 839 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: No widows and orphans
  2011-03-01 14:56   ` Cecil Westerhof
@ 2011-03-01 14:58     ` luigi scarso
  0 siblings, 0 replies; 14+ messages in thread
From: luigi scarso @ 2011-03-01 14:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, Mar 1, 2011 at 3:56 PM, Cecil Westerhof <cldwesterhof@gmail.com> wrote:
> 2011/3/1 Thomas A. Schmitz <thomas.schmitz@uni-bonn.de>
>>
>> On Mar 1, 2011, at 3:41 PM, Cecil Westerhof wrote:
>>
>> > I do not want to have widows and orphans. Because of this I use:
>> > \clubpenalty=10000
>> > \widowpenalty=10000
>> >
>> > But this has no effect. Still the last two lines of a paragraph are put
>> > on the next page instead of the complete paragraph.
>>
>> I think you are confusing things here: orphans and widows refer to single
>> lines on the following/preceding page. So if you get two lines, you get
>> exactly what you ask for. If I understand you correctly, you do not want to
>> break paragraphs vertically at all?
>
> Okay, I did not understand the terminology correctly.
http://en.wikipedia.org/wiki/Widow_%28typesetting%29

-- 
luigi
___________________________________________________________________________________
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] 14+ messages in thread

* Re: No widows and orphans
  2011-03-01 14:50 ` Thomas A. Schmitz
@ 2011-03-01 14:56   ` Cecil Westerhof
  2011-03-01 14:58     ` luigi scarso
  0 siblings, 1 reply; 14+ messages in thread
From: Cecil Westerhof @ 2011-03-01 14:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

2011/3/1 Thomas A. Schmitz <thomas.schmitz@uni-bonn.de>

>
> On Mar 1, 2011, at 3:41 PM, Cecil Westerhof wrote:
>
> > I do not want to have widows and orphans. Because of this I use:
> > \clubpenalty=10000
> > \widowpenalty=10000
> >
> > But this has no effect. Still the last two lines of a paragraph are put
> on the next page instead of the complete paragraph.
>
> I think you are confusing things here: orphans and widows refer to single
> lines on the following/preceding page. So if you get two lines, you get
> exactly what you ask for. If I understand you correctly, you do not want to
> break paragraphs vertically at all?
>

Okay, I did not understand the terminology correctly.

Yes, in this particular case I would like not to break them. What would also
be acceptable is when there are at least five lines on the page.

-- 
Cecil Westerhof

[-- Attachment #1.2: Type: text/html, Size: 1203 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: No widows and orphans
  2011-03-01 14:41 Cecil Westerhof
@ 2011-03-01 14:50 ` Thomas A. Schmitz
  2011-03-01 14:56   ` Cecil Westerhof
  0 siblings, 1 reply; 14+ messages in thread
From: Thomas A. Schmitz @ 2011-03-01 14:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On Mar 1, 2011, at 3:41 PM, Cecil Westerhof wrote:

> I do not want to have widows and orphans. Because of this I use:
> \clubpenalty=10000
> \widowpenalty=10000
> 
> But this has no effect. Still the last two lines of a paragraph are put on the next page instead of the complete paragraph.

I think you are confusing things here: orphans and widows refer to single lines on the following/preceding page. So if you get two lines, you get exactly what you ask for. If I understand you correctly, you do not want to break paragraphs vertically at all?

Thomas
___________________________________________________________________________________
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] 14+ messages in thread

* No widows and orphans
@ 2011-03-01 14:41 Cecil Westerhof
  2011-03-01 14:50 ` Thomas A. Schmitz
  0 siblings, 1 reply; 14+ messages in thread
From: Cecil Westerhof @ 2011-03-01 14:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

I do not want to have widows and orphans. Because of this I use:
\clubpenalty=10000
\widowpenalty=10000

But this has no effect. Still the last two lines of a paragraph are put on
the next page instead of the complete paragraph.

I somewhere read about using:
setups=*strict
so I now have:
\setuplayout[
  header=0mm,
  setups=*strict,
]

This makes it a little better. Now three lines are put on the other page. Is
it possible to get the complete paragraph on the other page?

-- 
Cecil Westerhof

[-- Attachment #1.2: Type: text/html, Size: 570 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2011-03-01 21:10 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.1156.1298991796.4223.ntg-context@ntg.nl>
2011-03-01 16:06 ` No widows and orphans 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
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

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