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.

Filter by
Sorted by
Tagged with
0
votes
1answer
53 views

\looseness=-1 has no effect

I'm trying to fix some orphans (penalties are already at 9999) in the final layout using \looseness=-1. However, this does not lead to any change in the text layout. I've tried increasing the ...
3
votes
1answer
133 views

How to force widow lines using \widowpenalty?

Suppose I want the last line of a paragraph to be printed on a new page to have a widow line. Which command is suitable for this? Neither \widowpenalty nor \clubpenalty works for this. I do not want ...
2
votes
1answer
52 views

\widowpenalty: the negative infinite penalty

I would like to know how do I make the MWE below work. How do I get know that \widowpenalty has been set to -infinite ? Also, I would like to ask what is the orphan penalty starting with \g ...
0
votes
0answers
63 views

Is there a way to automatically enlarge pages up to one line if there would be a widow otherwise?

I use the nowidow package but it steals me so much space, therefore I would like to have something like a automized command \enlargethispage{\baselineskip} if there would be a single widow line on the ...
4
votes
1answer
59 views

Advantages of using package “nowidow” over \clubpenalty or \widowpenalty

Consider the following Minimum Working Example (MWE): \documentclass{book} \usepackage{blindtext} \usepackage[all]{nowidow} \begin{document} \blindtext \blindtext \blindtext \...
2
votes
0answers
48 views

LaTeX floats do not increase vertical stretchability nor the page total (t), but reduces the goal height (h). Why? And how to change?

Foreword This question is a follow up question of this question. More precisely, I was able to trace the problem down to its root, especially I was able to produce three MWE that illustrate the ...
1
vote
1answer
66 views

Bug tracing LaTeX page breaking penalties, adjusting rubber-length skips in KOMAscript

I use KOMAscript's scrbook class. I am very nitpicking about clubs/widows. Interestingly, most clubs and widows predominantly occur on pages that have multiple flows, displayed math environments and ...
2
votes
2answers
36 views

Avoid pagebreak with custom sectioning style command

I have in my document a custom sectioning command defined like this: \newcommand{\newtitle}[4]{% \newtitle{<Title>}{<Author>}{<Date>}{<miscellaneous indications>} \vspace{...
2
votes
4answers
327 views

TOC continues to next page with one line

Consider this example: \documentclass{report} %% \clubpenalty=10000 ...
0
votes
0answers
29 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
54 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 ...
1
vote
1answer
178 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
36 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
69 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
70 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
68 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
133 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
275 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
63 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
157 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
157 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
82 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
375 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
102 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
76 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
267 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
205 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
240 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
909 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
294 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 ...
5
votes
2answers
374 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
285 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
212 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
120 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
163 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
69 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
75 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
3k 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
206 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
164 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
42 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
620 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
160 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
151 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
66 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
192 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
717 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
613 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{...
24
votes
1answer
1k 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
50 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 ...