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
0 answers
24 views

How to automatically prevent or remove single words in paragraphs? [duplicate]

Is a similar way to automatically remove single words on the last line of a paragraph by either pulling the word to the previous line or bringing down other words along with the single word without ...
user avatar
0 votes
1 answer
42 views

Locally prevent page break after a displayed equation

In my document, sometimes there is a sentence like The diagram <tikz-cd diagram here> commute., in which case there is only one word after the displayed equation. I would like to make sure that ...
user avatar
  • 6,080
1 vote
0 answers
24 views

Making punctuation groups almost unbreakable, avoiding orphans and widows

I have a script that generates PDF from the rich text. I want to make sure there are no orphans and widows that contains only punctuations or line break before punctuation if there is a word attached ...
user avatar
0 votes
1 answer
29 views

Avoid widows/orphans in a multicols environment

In the following example, I have the feeling the list would be more readable if the five items are kept in the same column because we have room for it. \documentclass{article} \usepackage{multicol} \...
user avatar
  • 1,087
0 votes
1 answer
63 views

How to tell LaTex to avoid orphans?

I tried to play with \clubpenalty and \windowpenalty to avoid orphans like this: Unfortunately, I cannot make the Payments section jump to the next page. \section{Payments} \begin{itemize} \item ...
user avatar
  • 1,087
5 votes
2 answers
375 views

Force orphan to bleed into margin

In the following example, is there a way to force the word "environment" to join the previous paragraph, allowing it to bleed into the page margin if necessary? In other words, I am looking ...
user avatar
  • 273
0 votes
1 answer
32 views

Setting \parfillskip for every theorem-like environments

To prevent the last line from being too short, I added \setlength{\parfillskip}{0pt plus\dimexpr\linewidth-2\parindent} to the preamble, and it works fine with normal paragraphs. However, this setting ...
user avatar
  • 6,080
3 votes
1 answer
93 views

Set \widowpenalty only in main text, not for footnotes

I have made sort of the opposite experience than described in an older question and the same as this question without replies. I would like to prevent widows in the main text, but I don't mind them in ...
user avatar
  • 101
0 votes
0 answers
26 views

How to avoid runts? [duplicate]

Sometimes, a paragraph will end in a short word that appears all by itself on the last line. I believe that such words are called runts in typography. Other times, a longer word is broken and only one ...
user avatar
  • 271
2 votes
0 answers
91 views

How to Get a Widowed Line to Appear on the Previous Page

I am currently working on a document with a large font and many short sections. Subsequently, I encounter many "widow lines" --- a single line of text occupying an entire page. Getting a bit ...
user avatar
1 vote
0 answers
64 views

How do i correctly prevent orphans and widows with nowidow?

With the nowidow packet, orphans and widows are apparently prevented. Is it enough to add \usepackage[all]{nowidow} in the preamble, or does the command defaultlines also have to be inserted in square ...
user avatar
0 votes
0 answers
23 views

automatic \includegraphic size to best manage vertical space, orphans, and widows

Can I define a size range to \includegraphic when I include and image and let LaTeX choose the best height (and preserve ratio) to best adjust vertical blank space? LaTeX can also use this variable to ...
user avatar
  • 2,080
1 vote
0 answers
25 views

How can I specify three conditions for number of lines on a page with figures and tables as well as widow/orphan requirements?

I have to adhere to the three following strict guidelines and I want to do the best I can when I create my Dissertation. There should be at least 6 lines of text on a page with figures or tables. Do ...
user avatar
2 votes
1 answer
256 views

What are exactly those \widowpenalties and what are they doing precisely? [duplicate]

In this answer, the author is using the command \widowpenalties=3 10000 10000 150. While I can understand what \widowpenalty is doing, I found no documentation for \widowpenalties3 nor for \...
user avatar
  • 747
0 votes
0 answers
33 views

Widows-and-orphans with customized section

With the help of the community here I found a solution for customized sections with a subtitle. TeX seems to apply some extensive processing on the section-title about how to handle page breaks. \...
user avatar
  • 1,215
0 votes
1 answer
66 views

How to prevent biburlnumpenalty to create orphans in DOI

I'm writing my thesis and use the ext-authoryear stile with biblatex. (Unfortunately I have to make a lot of manual adjustments to fulfill the committee's "style" requirements.) In my ...
user avatar
0 votes
1 answer
583 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 ...
user avatar
  • 105
3 votes
1 answer
374 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 ...
user avatar
  • 1,858
2 votes
1 answer
88 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 ...
user avatar
  • 1,858
0 votes
0 answers
211 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 ...
user avatar
6 votes
1 answer
878 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 \...
user avatar
  • 3,458
2 votes
0 answers
57 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 ...
user avatar
  • 1,025
1 vote
1 answer
114 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 ...
user avatar
  • 1,025
2 votes
2 answers
54 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{...
user avatar
  • 2,080
3 votes
4 answers
1k views

TOC continues to next page with one line

Consider this example: \documentclass{report} %% \clubpenalty=10000 ...
user avatar
  • 6,873
1 vote
0 answers
56 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 ...
user avatar
  • 33
2 votes
1 answer
521 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. ...
user avatar
2 votes
1 answer
73 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. \...
user avatar
  • 127
4 votes
1 answer
228 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) ...
user avatar
  • 111
1 vote
0 answers
70 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 ...
user avatar
1 vote
1 answer
205 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 ...
user avatar
  • 2,079
1 vote
2 answers
792 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 ...
user avatar
  • 1,965
0 votes
1 answer
155 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, ...
user avatar
1 vote
1 answer
229 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 ...
user avatar
5 votes
2 answers
193 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 ...
user avatar
3 votes
1 answer
102 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 ...
user avatar
  • 1,164
3 votes
0 answers
609 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 ...
user avatar
  • 1,309
1 vote
1 answer
120 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 ...
user avatar
1 vote
1 answer
85 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 ...
user avatar
  • 85
12 votes
1 answer
428 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 ...
user avatar
  • 724
4 votes
2 answers
308 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 ...
user avatar
  • 2,080
2 votes
1 answer
433 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 ...
user avatar
  • 2,124
9 votes
3 answers
2k 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 ...
user avatar
1 vote
0 answers
316 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 ...
user avatar
5 votes
2 answers
616 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} ...
user avatar
  • 1,810
0 votes
1 answer
414 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 ...
user avatar
  • 193
3 votes
1 answer
292 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 ...
user avatar
  • 2,136
3 votes
2 answers
182 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 ...
user avatar
  • 255
6 votes
1 answer
329 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 ...
user avatar
  • 81
0 votes
0 answers
81 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=...
user avatar
  • 1,436