Re: Widows and Orphans

2013-09-10 Thread Richard Heck

On 09/09/2013 04:25 PM, Gordon Cooper wrote:

  Is there a simple answer to the typesetting widow  orphan
problem in Lyx/latex? I see that there are various suggestions
offered in the manuals but they all seem to result in the need
for a bit of text adjustment (fiddling) as the final step before
printing.


If you google clubpenalty widowpenalty you'll find lots of
discussion of this kind of thing, e.g., here:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=widows
You can force LaTeX never to allow widows or orphans by
setting the two comments I mentioned to insanely high values,
e.g.:
\clubpenalty=1
\widowpenalty=1
But this can cause other problems, since LaTeX is already
leaving an orphan (say) only when it has little other choice.
Generally, it really is best to leave this until everything else
is done, and then make adjustments if necessary.

Richard



Re: Widows and Orphans

2013-09-10 Thread Gordon Cooper

I expected that an answer would not be simple About 20 years ago
I wrote a module in Pascal that kept a line count for each page
and forced a new page if a paragraph break or a new heading
came within a selectable distance from the bottom. This partly
solved the issue, but not completely.

Thanks for the information.

Gordon Cooper



On 11/09/13 00:57, Richard Heck wrote:

Generally, it really is best to leave this until everything else
is done, and then make adjustments if necessary.




Re: Widows and Orphans

2013-09-10 Thread Ray Rashif
On 11 September 2013 03:35, Gordon Cooper hughgord...@gmail.com wrote:
 I expected that an answer would not be simple About 20 years ago
 I wrote a module in Pascal that kept a line count for each page
 and forced a new page if a paragraph break or a new heading
 came within a selectable distance from the bottom. This partly
 solved the issue, but not completely.

 Thanks for the information.

This has really bothered me as well, often in large documents where I
have to go through every single page after a minor revision to check
for widows and orphans -- it really is a PITA. The high penalty
settings did not work for me in any of the cases.


--
GPG/PGP ID: C0711BF1


Re: Widows and Orphans

2013-09-10 Thread Richard Heck

On 09/09/2013 04:25 PM, Gordon Cooper wrote:

  Is there a simple answer to the typesetting widow  orphan
problem in Lyx/latex? I see that there are various suggestions
offered in the manuals but they all seem to result in the need
for a bit of text adjustment (fiddling) as the final step before
printing.


If you google clubpenalty widowpenalty you'll find lots of
discussion of this kind of thing, e.g., here:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=widows
You can force LaTeX never to allow widows or orphans by
setting the two comments I mentioned to insanely high values,
e.g.:
\clubpenalty=1
\widowpenalty=1
But this can cause other problems, since LaTeX is already
leaving an orphan (say) only when it has little other choice.
Generally, it really is best to leave this until everything else
is done, and then make adjustments if necessary.

Richard



Re: Widows and Orphans

2013-09-10 Thread Gordon Cooper

I expected that an answer would not be simple About 20 years ago
I wrote a module in Pascal that kept a line count for each page
and forced a new page if a paragraph break or a new heading
came within a selectable distance from the bottom. This partly
solved the issue, but not completely.

Thanks for the information.

Gordon Cooper



On 11/09/13 00:57, Richard Heck wrote:

Generally, it really is best to leave this until everything else
is done, and then make adjustments if necessary.




Re: Widows and Orphans

2013-09-10 Thread Ray Rashif
On 11 September 2013 03:35, Gordon Cooper hughgord...@gmail.com wrote:
 I expected that an answer would not be simple About 20 years ago
 I wrote a module in Pascal that kept a line count for each page
 and forced a new page if a paragraph break or a new heading
 came within a selectable distance from the bottom. This partly
 solved the issue, but not completely.

 Thanks for the information.

This has really bothered me as well, often in large documents where I
have to go through every single page after a minor revision to check
for widows and orphans -- it really is a PITA. The high penalty
settings did not work for me in any of the cases.


--
GPG/PGP ID: C0711BF1


Re: Widows and Orphans

2013-09-10 Thread Richard Heck

On 09/09/2013 04:25 PM, Gordon Cooper wrote:

  Is there a simple answer to the typesetting widow & orphan
problem in Lyx/latex? I see that there are various suggestions
offered in the manuals but they all seem to result in the need
for a bit of text adjustment (fiddling) as the final step before
printing.


If you google "clubpenalty widowpenalty" you'll find lots of
discussion of this kind of thing, e.g., here:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=widows
You can force LaTeX never to allow widows or orphans by
setting the two comments I mentioned to insanely high values,
e.g.:
\clubpenalty=1
\widowpenalty=1
But this can cause other problems, since LaTeX is already
leaving an orphan (say) only when it has little other choice.
Generally, it really is best to leave this until everything else
is done, and then make adjustments if necessary.

Richard



Re: Widows and Orphans

2013-09-10 Thread Gordon Cooper

I expected that an answer would not be simple About 20 years ago
I wrote a module in Pascal that kept a line count for each page
and forced a new page if a paragraph break or a new heading
came within a selectable distance from the bottom. This partly
solved the issue, but not completely.

Thanks for the information.

Gordon Cooper



On 11/09/13 00:57, Richard Heck wrote:

Generally, it really is best to leave this until everything else
is done, and then make adjustments if necessary.




Re: Widows and Orphans

2013-09-10 Thread Ray Rashif
On 11 September 2013 03:35, Gordon Cooper  wrote:
> I expected that an answer would not be simple About 20 years ago
> I wrote a module in Pascal that kept a line count for each page
> and forced a new page if a paragraph break or a new heading
> came within a selectable distance from the bottom. This partly
> solved the issue, but not completely.
>
> Thanks for the information.

This has really bothered me as well, often in large documents where I
have to go through every single page after a minor revision to check
for widows and orphans -- it really is a PITA. The high penalty
settings did not work for me in any of the cases.


--
GPG/PGP ID: C0711BF1


Re: Widows... and orphans

2010-07-17 Thread Richard Heck

On 07/17/2010 04:39 PM, Frederick Noronha wrote:

Is there any way to avoid widows and orphans showing up in Lyx?

   
TeX tries to avoid them, but it will allow them if it deems other 
options worse. You can make TeX give greater weight to the prevention of 
widows and orphans by setting certain variables, but I don't now 
remember what they are. Google knows, though. So might the LyX wiki.


rh



Re: Widows... and orphans

2010-07-17 Thread Alan L Tyree
On Sat, 17 Jul 2010 22:27:06 -0400
Richard Heck rgh...@comcast.net wrote:

 On 07/17/2010 04:39 PM, Frederick Noronha wrote:
  Is there any way to avoid widows and orphans showing up in Lyx?
 
 
 TeX tries to avoid them, but it will allow them if it deems other 
 options worse. You can make TeX give greater weight to the prevention
 of widows and orphans by setting certain variables, but I don't now 
 remember what they are. Google knows, though. So might the LyX wiki.
 
 rh
 

\clubpenalty=1
\widowpenalty=1

Cheers,
Alan


-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206



Re: Widows... and orphans

2010-07-17 Thread Richard Heck

On 07/17/2010 04:39 PM, Frederick Noronha wrote:

Is there any way to avoid widows and orphans showing up in Lyx?

   
TeX tries to avoid them, but it will allow them if it deems other 
options worse. You can make TeX give greater weight to the prevention of 
widows and orphans by setting certain variables, but I don't now 
remember what they are. Google knows, though. So might the LyX wiki.


rh



Re: Widows... and orphans

2010-07-17 Thread Alan L Tyree
On Sat, 17 Jul 2010 22:27:06 -0400
Richard Heck rgh...@comcast.net wrote:

 On 07/17/2010 04:39 PM, Frederick Noronha wrote:
  Is there any way to avoid widows and orphans showing up in Lyx?
 
 
 TeX tries to avoid them, but it will allow them if it deems other 
 options worse. You can make TeX give greater weight to the prevention
 of widows and orphans by setting certain variables, but I don't now 
 remember what they are. Google knows, though. So might the LyX wiki.
 
 rh
 

\clubpenalty=1
\widowpenalty=1

Cheers,
Alan


-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206



Re: Widows... and orphans

2010-07-17 Thread Richard Heck

On 07/17/2010 04:39 PM, Frederick Noronha wrote:

Is there any way to avoid widows and orphans showing up in Lyx?

   
TeX tries to avoid them, but it will allow them if it deems other 
options worse. You can make TeX give greater weight to the prevention of 
widows and orphans by setting certain variables, but I don't now 
remember what they are. Google knows, though. So might the LyX wiki.


rh



Re: Widows... and orphans

2010-07-17 Thread Alan L Tyree
On Sat, 17 Jul 2010 22:27:06 -0400
Richard Heck  wrote:

> On 07/17/2010 04:39 PM, Frederick Noronha wrote:
> > Is there any way to avoid widows and orphans showing up in Lyx?
> >
> >
> TeX tries to avoid them, but it will allow them if it deems other 
> options worse. You can make TeX give greater weight to the prevention
> of widows and orphans by setting certain variables, but I don't now 
> remember what they are. Google knows, though. So might the LyX wiki.
> 
> rh
> 

\clubpenalty=1
\widowpenalty=1

Cheers,
Alan


-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan
Tel:  04 2748 6206



Re: Widows and Orphans

2006-06-30 Thread Juergen Spitzmueller
Rich Shepard wrote:
I have a widow line: the last line of a paragraph that is the first line
 on the following page; it's actually the last line of the report chapter,
 which makes it look worse.

I _thought_ there was a macro to extend the page, but I cannot find a
 reference to it. 

\enlargethispage

 Nothing in TLC2 that helps. Google found a page from 
 Purdue University (where all the chickens go before the end up in the
 supermarket) that suggested using \widowpenalty=450. I put that in the
 preamble, but there's no joy yet.

Please pass me a clue stick on how to fix this. It does come up now and
 then and I do need to take care of the instances.

http://wiki.lyx.org/FAQ/Using#toc7

Personally, I always use this:

\tolerance 1414
\hbadness 1414
\emergencystretch 1.5em
\hfuzz 0.3pt
\widowpenalty = 1
\vfuzz \hfuzz
\raggedbottom

But depending on the situation, there can still be widow lines. For that cases 
I use the macro

\def\condbreak#1{%
\vskip 0pt plus #1\pagebreak[3]\vskip 0pt plus -#1\relax}

So in the document, I can use for instance 
\condbreak{2\baselineskip}
to assure that there have to follow at least 2 lines after a given position, 
else a pagebreak will be inserted.

HTH,
Jürgen

 Rich


Re: Widows and Orphans

2006-06-30 Thread Juergen Spitzmueller
Rich Shepard wrote:
I have a widow line: the last line of a paragraph that is the first line
 on the following page; it's actually the last line of the report chapter,
 which makes it look worse.

I _thought_ there was a macro to extend the page, but I cannot find a
 reference to it. 

\enlargethispage

 Nothing in TLC2 that helps. Google found a page from 
 Purdue University (where all the chickens go before the end up in the
 supermarket) that suggested using \widowpenalty=450. I put that in the
 preamble, but there's no joy yet.

Please pass me a clue stick on how to fix this. It does come up now and
 then and I do need to take care of the instances.

http://wiki.lyx.org/FAQ/Using#toc7

Personally, I always use this:

\tolerance 1414
\hbadness 1414
\emergencystretch 1.5em
\hfuzz 0.3pt
\widowpenalty = 1
\vfuzz \hfuzz
\raggedbottom

But depending on the situation, there can still be widow lines. For that cases 
I use the macro

\def\condbreak#1{%
\vskip 0pt plus #1\pagebreak[3]\vskip 0pt plus -#1\relax}

So in the document, I can use for instance 
\condbreak{2\baselineskip}
to assure that there have to follow at least 2 lines after a given position, 
else a pagebreak will be inserted.

HTH,
Jürgen

 Rich


Re: Widows and Orphans

2006-06-30 Thread Juergen Spitzmueller
Rich Shepard wrote:
>I have a widow line: the last line of a paragraph that is the first line
> on the following page; it's actually the last line of the report chapter,
> which makes it look worse.
>
>I _thought_ there was a macro to extend the page, but I cannot find a
> reference to it. 

\enlargethispage

> Nothing in TLC2 that helps. Google found a page from 
> Purdue University (where all the chickens go before the end up in the
> supermarket) that suggested using \widowpenalty=450. I put that in the
> preamble, but there's no joy yet.
>
>Please pass me a clue stick on how to fix this. It does come up now and
> then and I do need to take care of the instances.

http://wiki.lyx.org/FAQ/Using#toc7

Personally, I always use this:

\tolerance 1414
\hbadness 1414
\emergencystretch 1.5em
\hfuzz 0.3pt
\widowpenalty = 1
\vfuzz \hfuzz
\raggedbottom

But depending on the situation, there can still be widow lines. For that cases 
I use the macro

\def\condbreak#1{%
\vskip 0pt plus #1\pagebreak[3]\vskip 0pt plus -#1\relax}

So in the document, I can use for instance 
\condbreak{2\baselineskip}
to assure that there have to follow at least 2 lines after a given position, 
else a pagebreak will be inserted.

HTH,
Jürgen

> Rich


Re: widows and orphans

2001-04-28 Thread Herbert Voss

Christopher Jones wrote:
 
 I have been trying Herbert Voss's solution for widow and orphan control
 (http://www.educat.hu-berlin.de/~voss/lyx/layouts/widows.html). I tried the
 first solution, and I tried the second as an addition to the first, which is
 what I understood I was supposed to do if the first didn't work.

try the default one:

\clubpenalty = 1
\widowpenalty = 1 \displaywidowpenalty = 1

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/



Re: widows and orphans

2001-04-28 Thread Herbert Voss

Christopher Jones wrote:
 
 I have been trying Herbert Voss's solution for widow and orphan control
 (http://www.educat.hu-berlin.de/~voss/lyx/layouts/widows.html). I tried the
 first solution, and I tried the second as an addition to the first, which is
 what I understood I was supposed to do if the first didn't work.

try the default one:

\clubpenalty = 1
\widowpenalty = 1 \displaywidowpenalty = 1

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/



Re: widows and orphans

2001-04-28 Thread Herbert Voss

Christopher Jones wrote:
> 
> I have been trying Herbert Voss's solution for widow and orphan control
> (http://www.educat.hu-berlin.de/~voss/lyx/layouts/widows.html). I tried the
> first solution, and I tried the second as an addition to the first, which is
> what I understood I was supposed to do if the first didn't work.

try the default one:

\clubpenalty = 1
\widowpenalty = 1 \displaywidowpenalty = 1

Herbert

-- 
http://www.educat.hu-berlin.de/~voss/lyx/