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


Widows and Orphans

2013-09-09 Thread Gordon Cooper

  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.

Gordon
Tauranga.


Widows and Orphans

2013-09-09 Thread Gordon Cooper

  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.

Gordon
Tauranga.


Widows and Orphans

2013-09-09 Thread Gordon Cooper

  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.

Gordon
Tauranga.


Widows... and orphans

2010-07-17 Thread Frederick Noronha
Is there any way to avoid widows and orphans showing up in Lyx? Thanks! FN
Frederick Noronha
+91-9822122436
+91-832-2409490


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



Widows... and orphans

2010-07-17 Thread Frederick Noronha
Is there any way to avoid widows and orphans showing up in Lyx? Thanks! FN
Frederick Noronha
+91-9822122436
+91-832-2409490


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



Widows... and orphans

2010-07-17 Thread Frederick Noronha
Is there any way to avoid widows and orphans showing up in Lyx? Thanks! FN
Frederick Noronha
+91-9822122436
+91-832-2409490


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

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


Widows and Orphans

2006-06-29 Thread Rich Shepard

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

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.(TM)|Accelerator
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Widows and Orphans

2006-06-29 Thread Rich Shepard

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

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.(TM)|Accelerator
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Widows and Orphans

2006-06-29 Thread Rich Shepard

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

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.(TM)|Accelerator
 Voice: 503-667-4517  Fax: 503-667-8863


widows and orphans

2001-04-28 Thread Christopher Jones

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.

The first solution doesn't seem to have any effect by itself-- I still get one
line hanging over, and sometimes the line is just two words long! The second
generates an error-- something wrong with the first line. 

I've made double sure that I don't have typos, though I don't deny there might
be an error in there that I missed. 

Has anybody tried these solutions with success? Is there some other command or
package on which these solutions depend, which is not mentioned on the webpage?
Part of the problem is that since I don't quite understand how those examples
are supposed to work, I can't tweak it. 

Suggestions anyone? 



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/



widows and orphans

2001-04-28 Thread Christopher Jones

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.

The first solution doesn't seem to have any effect by itself-- I still get one
line hanging over, and sometimes the line is just two words long! The second
generates an error-- something wrong with the first line. 

I've made double sure that I don't have typos, though I don't deny there might
be an error in there that I missed. 

Has anybody tried these solutions with success? Is there some other command or
package on which these solutions depend, which is not mentioned on the webpage?
Part of the problem is that since I don't quite understand how those examples
are supposed to work, I can't tweak it. 

Suggestions anyone? 



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/



widows and orphans

2001-04-28 Thread Christopher Jones

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.

The first solution doesn't seem to have any effect by itself-- I still get one
line hanging over, and sometimes the line is just two words long! The second
generates an error-- something wrong with the first line. 

I've made double sure that I don't have typos, though I don't deny there might
be an error in there that I missed. 

Has anybody tried these solutions with success? Is there some other command or
package on which these solutions depend, which is not mentioned on the webpage?
Part of the problem is that since I don't quite understand how those examples
are supposed to work, I can't tweak it. 

Suggestions anyone? 



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/