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
2 answers
36 views

Prevent unnecessary longtable widows

When the remaining rows of a longtable fit exactly onto the current page, longtable will instead create a widow by printing a footer on the current page and moving the last row onto the next page (...
oulenz's user avatar
  • 135
0 votes
1 answer
19 views

Paracol break corresponding columns at pagebreak

In general paracol respect synchronization between two corresponding columns also when it reach bottom page. But sometimes, it occur an absolute ugly orphan (and also widow) when a left side stay in ...
fauve's user avatar
  • 2,437
1 vote
0 answers
44 views

How to automatically identify the location of the last line of the body-of-text output on a given page, after nowidow has taken effect?

I have a document that has \usepackage[all]{nowidow} in order to eliminate all widows and orphans. This sometimes causes lots of white space between the bottom of the body of text and the footer. I ...
Noah J's user avatar
  • 443
0 votes
2 answers
65 views

How to make footer move to just below the body of text

If you will please examine pages 20, 25, 26, 31, 32, 37, and 41 of the MWE below, then you will find that considerable space intervenes between the body of text and the page number (in the footer). In ...
Noah J's user avatar
  • 443
0 votes
0 answers
43 views

why \widowpenalties work not fine?

I set \widowpenalties 2 10000 0, but it work not fine: I hope page can break at red place, but it doesn't. If I change \widowpenalties 2 10000 0 to \widowpenalties 3 10000 -1 0, it can work fine. MWE:...
redmoon's user avatar
  • 91
5 votes
1 answer
85 views

Why can't \widowpenalties be put in the preamble?

Package file zztj.sty: \NeedsTeXFormat{LaTeX2e} \RequirePackage{expl3} \ProvidesExplPackage{zztj}{}{}{} \RequirePackage{l3keys2e} % -------------------------------- \widowpenalties 3 10000 -1 0 % ---...
redmoon's user avatar
  • 91
1 vote
1 answer
93 views

How to prevent page breaks between bibliography sections

In my syllabus I have an extended bibliography subdivided into different thematic sections. There are a number of places where I'm left with extra blank space at the bottom of one section/page, and ...
Erika's user avatar
  • 483
1 vote
2 answers
70 views

How to adjust the line spacing of the previous page?

I'm working on an automatic mechanism for handling orphans and widows in my own defined documentclass. Tex version: xelatex-2022 Current progress is to reference the widows-and-orphans package and ...
Мақсат's user avatar
3 votes
0 answers
52 views

Avoid orphaned mdframed box after section heading at end of page

In LaTeX, when I use thmtools (which uses mdframed internally) to create theorem boxes and I use them after a section heading at the end of the page, they often times are placed on the next page ...
Hebol's user avatar
  • 97
0 votes
2 answers
70 views

Orphaned headings in a long, verse-heavy document

I'm typesetting an anthology of English poetry which I've put together. It's a long document, more than 500 pages, and the nature of the project means that the vast majority of the text is wrapped up ...
Tom Hosker's user avatar
0 votes
1 answer
127 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 ...
Jinwen's user avatar
  • 7,808
1 vote
0 answers
37 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 ...
user271571's user avatar
0 votes
1 answer
72 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} \...
nowox's user avatar
  • 1,335
0 votes
1 answer
113 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 ...
nowox's user avatar
  • 1,335
5 votes
2 answers
420 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 ...
Max's user avatar
  • 325
1 vote
1 answer
111 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 ...
Jinwen's user avatar
  • 7,808
3 votes
1 answer
110 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 ...
johnny7's user avatar
  • 111
0 votes
0 answers
31 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 ...
m93a's user avatar
  • 271
3 votes
0 answers
114 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 ...
Ιδιώτης's user avatar
1 vote
0 answers
142 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 ...
Schubladenzieher's user avatar
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 ...
Christopher Creveling's user avatar
2 votes
1 answer
772 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 \...
Watson's user avatar
  • 870
0 votes
0 answers
62 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. \...
LeO's user avatar
  • 1,351
0 votes
1 answer
99 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 ...
Christian König's user avatar
0 votes
1 answer
955 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 ...
Tobl's user avatar
  • 105
3 votes
1 answer
646 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 ...
user2925716's user avatar
  • 1,928
2 votes
1 answer
127 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 ...
user2925716's user avatar
  • 1,928
0 votes
0 answers
231 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 ...
Horstfuchs's user avatar
7 votes
1 answer
2k 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 \...
Dave's user avatar
  • 3,668
2 votes
0 answers
66 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 ...
nagmat84's user avatar
  • 1,075
1 vote
1 answer
134 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 ...
nagmat84's user avatar
  • 1,075
2 votes
2 answers
58 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{...
fauve's user avatar
  • 2,437
4 votes
4 answers
2k views

TOC continues to next page with one line

Consider this example: \documentclass{report} %% \clubpenalty=10000 ...
Viesturs's user avatar
  • 7,615
1 vote
0 answers
57 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 ...
Esther's user avatar
  • 33
2 votes
1 answer
801 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. ...
Wouter Florijn's user avatar
2 votes
1 answer
99 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. \...
KJC's user avatar
  • 127
5 votes
1 answer
303 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) ...
Nicolas's user avatar
  • 131
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 ...
AntoineMazuyer's user avatar
1 vote
1 answer
263 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 ...
Leo Simon's user avatar
  • 2,169
1 vote
2 answers
1k 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 ...
schremmer's user avatar
  • 2,107
0 votes
1 answer
216 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, ...
netjiro's user avatar
1 vote
1 answer
262 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
233 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 ...
Martin Mueller's user avatar
3 votes
1 answer
106 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 ...
Ooker's user avatar
  • 1,382
4 votes
0 answers
713 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 ...
LaTechneuse's user avatar
  • 1,339
1 vote
1 answer
130 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 ...
scienceponder's user avatar
1 vote
1 answer
87 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 ...
sschron's user avatar
  • 85
12 votes
1 answer
477 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 ...
jeremie's user avatar
  • 734
4 votes
2 answers
393 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 ...
fauve's user avatar
  • 2,437
3 votes
1 answer
544 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 ...
John's user avatar
  • 2,401