Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [widows-orphans]

{widows-orphans} is about dealing with (typographic) widows (isolated lines created when paragraphs end on the first line of a page) and orphans (created when paragraphs start on the last line of a page). If you use this tag, add the more general {page-breaking} tag.

2
votes
4answers
49 views

TOC continues to next page with one line

Consider this example: \documentclass{report} %% \clubpenalty=10000 ...
0
votes
0answers
25 views

Allow widows on left page, orphans on right pages

With \clubpenalty and \widowpenalty you set the penalties for widows and orphans for all pages. Is it possible to disable widows only for right pages, orphans only for left pages?
1
vote
0answers
50 views

How to get rid of widow in List of theorems

In my PhD thesis I have 31 definitions in my List of Definitions. The last definition does not fit on the page, and becomes a widow on the next page. How can I get one or more definitions to be moved ...
0
votes
1answer
72 views

Always allow orphans and widows

I have a simple question, yet I can't find an answer anywhere. I simply want to always allow orphan and widow lines. Here's what I've done: Set \widowpenalty=0 and \clubpenalty=0. Use \flushbottom. ...
2
votes
1answer
30 views

Revision tracking macro causes widow or orphan

In a previous question "Revision tracking on a per subsection basis" I asked about tracking revisions by section. The answer that worked well for me was a macro that user Mike wrote. \...
4
votes
1answer
44 views

Avoid widow frame for lstlisting

I am currently writing a 200 pages book with many code extracts (around 100). I like to display them in a lstlisting environment (within a black frame). I have some very short code extracts (one line) ...
0
votes
1answer
60 views

Widows in reledpar

I can't provide a MWE (too difficult to reproduce) so take it as a general question, please: How can I prevent reledpar generating widows? I read that I could prevent orphans by manually inserting a ...
1
vote
0answers
62 views

How to avoid new pages in the middle of a sentence?

Sometime, my text rendering is: BEGIN OF THE SENTENCE -- NEW PAGE(S) FULL OF PICTURES -- END OF THE SENTENCE How can I manage to avoid this behavior and made this problematic sentence starting at ...
1
vote
1answer
103 views

Prevent orphan lines using \pagebreak[3]

Rather than use global commands like \widowpenalty as discussed in this thread, I'd like to be able to control orphan lines locally, using \pagebreak[3]. Since the 3 option is the strongest ...
1
vote
2answers
168 views

How to raise/lower table of content?

In my Table of Contents, the line for the last section of Chapter 3 is orphaned on top of the next page. I was hoping that raising the table of content a bit may bring that last line back to the ...
0
votes
1answer
45 views

enclosing a verbatim block in samepage creates both widow and orphan

I'm missing something: enclosing a verbatim block in a samepage expands the previous page and moves the verbatim block to the new page, but also drags the last line of the previous paragraph with it, ...
1
vote
1answer
96 views

Combining \raggedbottom with zero widow and club penalties

It seems to me that when the penalties for widows and orphans (clubs) are set to zero, then raggedbottom and \flushbottom have the same effect. MWE illustrating this point, where you can change the ...
4
votes
2answers
135 views

Index, widows and orphans

I have troubles dealing with widows in an index. Imagine an index created of senders and receivers of letters. \item is the receiver \subitem is the sender and \subsubitem is the day the letter was ...
3
votes
1answer
76 views

How to shrink a whole chapter to not leave orphans?

A chapter has a full-page image at the end, and its last paragraph overflows two lines to a new page. How to make the last line stays in the bottom of a page so that there's no almost blank page ...
3
votes
0answers
285 views

footnotes and widow/orphan control: how to avoid big whitespace on page bottom?

I'm using \usepackage[all]{nowidow} to avoid widows and orphans. However, there is one quite elementary case in which this does not lead to the desired result: As soon as there is a long footnote in ...
1
vote
1answer
95 views

get rid of a nasty widow

I am currently doing the "fine-tuning" to a finished document (scrbook, flushbottom, other information from preamble does not seem to be helpful here). Everything fine, but on one page I have an ...
1
vote
1answer
72 views

polyglossia with italian: orphan and widow problem

I encounter a problem when I load polyglossia with italian as default language. \clubpenalty = 10000 \widowpenalty = 10000 \displaywidowpenalty = 10000 do not prevent orphans and widows. The problem ...
11
votes
1answer
197 views

Paragraph callback to help with widows/orphans hand tuning

It is often hard to tell when adding \looseness=-1 to a paragraph would actually succeed in producing one less row. How can I add a callback to the paragraph builder so that every paragraph is ...
4
votes
2answers
151 views

no linebreak between opening quotation mark and em-dash

In dialogues I often need to use the form \enquote{---\,Lorem ipsum dolor}. But sometimes, when the quote begins toward the end of a line, I get an ugly rendering like this: d sse lectus lorem sit ...
2
votes
1answer
195 views

Setting clubpenalty locally

Do \clubpenalty or \widowpenalty extend beyond the paragraph in which they are issued? Specifically, if I put First paragraph blah blah \clubpenalty10000 blah blah... Next paragraph blah blah ...
9
votes
3answers
685 views

Prevent widowing/orphaning of sections that can fit on one page

In my LaTeX document, I want to make it so that sections that can fit entirely on one page are automatically forced to start on the next page so that the section does not get widowed/orphaned. The ...
1
vote
0answers
251 views

Avoiding widow/orphan lines with parcolumns [closed]

I am using parcolumns for two parallel columns, and I have also set \widowpenalty=10000 % avoid widows \clubpenalty=10000 % avoid orphans But while \widowpenalty and \clubpenalty ...
4
votes
2answers
295 views

Class moderncv orphan headings

How can I avoid orphan headings using class moderncv? MWE: \documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{casual} \moderncvcolor{blue} \usepackage[scale=0.75]{geometry} \name{John}{Doe} ...
0
votes
1answer
242 views

Preventing the first line on list elements becoming orphan

I have a document with a long list of items in enumerate and itemize environments, some of these start with a single line followed of a long (or sort) paragraph: \begin{itemize} \item short sentence ...
3
votes
1answer
158 views

Require three-line widows but allow two-line orphans

I know with \usepackage[defaultlines=2,all]{nowidow} I can easily avoid all widows/orphans for a given number of lines. But what if I want to have different minimum numbers of lines for widows and ...
3
votes
2answers
94 views

Safer alternative to everypar in creating a custom paragraph format in an environment?

I'm trying to create an environment where each paragraph gets some stylized text prepended to it (e.g. "Tips: ") is not allowed to be broken up across pages Based on this answer, I've managed to ...
6
votes
1answer
138 views

Text adjustment

When I am writing (document class article), Latex automatically adjust the length of the paragraph to fit at least two lines on the next page (my paragraph can't fit entirely on one page). Is there a ...
0
votes
0answers
63 views

How to set different \clubpenalty for main text and footnotes?

I am using memoir class to typeset a book containing texts with many footnotes. To control widows and orphans I use the following settings: \clubpenalty=5000 \widowpenalty=5002 \displaywidowpenalty=...
2
votes
2answers
61 views

widow paragraph title with orphan epigraph with epigraph package

When I use an \epigraph{} command (from the epigraph package) just after a paragraph containing a title, I can get a widow paragraph title on a page bottom and an orphan epigraph on the next page top… ...
1
vote
1answer
2k views

When using \widowpenalty and \clubpenalty, how can I prevent spacing increasing?

I use \widowpenalty and \clubpenalty to avoid widow and orphan lines. However, latex automatically increases the line spacing of my document. How do I prevent the increment of line spacing while using ...
12
votes
1answer
190 views

\@clubpenalty leaks out

In the following example the value of \clubpenalty has been reset to the one of \@clubpenalty on the second page: \documentclass[]{book} \usepackage{lipsum} \begin{document} \subsection{abc} blblb ...
6
votes
1answer
141 views

Unnecessary Hyphenation and orphaned words

I get unnecessary and weird hyphenation along with orphaned words at the end of my paragraphs although there is plenty enough room to fit the word into the line before. Some times, they aren't even ...
0
votes
0answers
40 views

Avoiding orphan parts of a command

I have a command that is used to print stuff with a certain structure: \newcommand{\miracle}[2]{ \textbf{#1} #2 \bigskip } How can I ensure that the stuff printed by the ...
0
votes
1answer
423 views

Equation at page break forces widow line from previous paragraph

I have a two-column document, and I'm having some weird behavior at an automatic page break. I have some text followed by some equations like this: So that abutting triangles do not double-paint ...
1
vote
1answer
130 views

Orphan created by biblatex

I have a footnote that ends with an awkward orphan. The footnote is so long and the orphan so small that I would normally be able to fix this quite easily by pushing the orphan 12 back up on the ...
1
vote
0answers
133 views

How should I avoid orphan and widow lines in Context [duplicate]

Typesetting a very simple document (no maths etc, just text, quotations and images), I am stuck with several orphan and widow lines. Is there a way to make Context avoid doing this? I can't find any ...
2
votes
1answer
61 views

Is there an alternative for samepage for a multicolumn environment?

In my document, I successfully use samepage to force content to be on the same page. I want to do the same in a 2-column document so that the heading and the text are in the same column. How can I ...
3
votes
1answer
162 views

Prevent LaTeX from making pages longer or shorter (i.e. changing the text height)

When I try to prevent widows/orphans by increasing \widowpenaltyand clubpenalty, LaTeX usually decides to either make the page one line shorter (to prevent an orphan) or one line longer (to prevent a ...
10
votes
2answers
639 views

Preventing widows and orphans in book, keeping facing pages of same length

I have a document in the book class which has a number of widows and orhans when compiled to pdf. I tried to remove the widows and orphans by using the all option of the nowidow package. It seems to ...
5
votes
1answer
598 views

New environment, orphan line

I created three environments for my document: a booklet for a treasure hunt with scrreprt. I created 3 environments (the document is in french): enigma: \newenvironment{enigme}{\refstepcounter{...
23
votes
1answer
999 views

What are the downsides of \widowpenalty10000 \clubpenalty10000?

I am writing a book with the Koma script class (scrbook). Every now and then I get a single line at the bottom or top of a page ("orphans" and "widows", respectively). I am considering to prevent this ...
2
votes
0answers
49 views

Can I reuse the window/orphan mechanism of section titles to bind something else (like theorems with their proofs)?

LaTeX layout mechanism can somehow try to avoid window/orphan paragraphs and section titles, i.e. it's very rare (or impossible?) for a section title to appear at the end of a page with the first ...
1
vote
0answers
201 views

Reducing letter spacing to get rid of a widow, how much is appropriate?

Some times the only way to get rid of a widow is, to reduce the letter spacing in a certain paragraph or footnote. Being addicted to XeLateX unfortunately I can't use the microtype package to achieve ...
3
votes
1answer
118 views

Widows and Orphans when using the Verse package

First off, I am using a slightly modified version of the Classic Thesis stylesheet. It's too complicated a document to share it all, so there is that factor. Nevertheless, I've reproduced the issue ...
1
vote
0answers
111 views

Shortening text height across chapter to fill last page

We all know the problem of having a chapter that is just too large to fill the last page conveniently, leaving one or two (or three) lines at the top of the last page. Besides attempting feats of ...
1
vote
1answer
130 views

Avoiding widows while keeping text height even across two-page spread

In The Elements of Typographical Style, the author notes (§2.4.8) that widows—single lines occurring at the top of a page—should be avoided. Yet the text height of two facing pages should be the same, ...
0
votes
0answers
177 views

Orphan lines with memoir

I have read that for memoir in order to set separation between paragraphs you use \abnormalparskip{6pt} However I have a question: Does it fix to 6pt or does it allow a little variation between ...
6
votes
3answers
791 views

Preventing page break after the first or before the last list item

Is there a way to globally prevent all lists from having a page break inserted between the first and second items or between the last and second-last item? I'm fine with page breaks that are after the ...
8
votes
1answer
287 views

Check widows/orphans easily in PDF preview output

I'd like to know if there is a easy way to find in the PDF preview the orphans and widows (as does the draft option to search words out of the margins with a black box).
4
votes
1answer
488 views

How to prevent page break in the last three lines of an environment?

I want to create an environment, thats content should not allowed a page break in the last three lines of the last paragraph. If the last three lines of the text inside the environment reach the ...