Skip to main content

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
3 votes
2 answers
159 views

lua-widow-control and titles

Consider the following MWE \documentclass[a4paper]{report} \usepackage{lipsum} \usepackage{lua-widow-control} \begin{document} \chapter{Hola} \lipsum[1] \lipsum[1-2] \lipsum[3][1-13] \end{document} ...
Mane32's user avatar
  • 2,319
1 vote
2 answers
71 views

How to force a line never to appear at the top of the page

I have a line of text that should not be separated from what came before it by a page break. (If it matters, what came before it is a text environment). I.E. How do I force a line of text to never ...
ltcomdata's user avatar
  • 935
4 votes
1 answer
144 views

How do I penalize an orphan brace in a code listing?

I want to prevent my code listing and my tcolorbox from page breaking and placing only a single brace on the next page. See the image for an example of this. The page break in and of itself is fine ...
TheProgrammer's user avatar
5 votes
1 answer
71 views

is there a lineno.sty interactions with \widowpenalty and \clubpenalty?

I stumbled upon an interaction effect between lineno.sty and \widowpenalty and \clubpenalty. It's good to put this into a record that is searchable here: \documentclass[12pt]{article} \widowpenalty=...
ivo Welch's user avatar
  • 3,818
1 vote
0 answers
64 views

How to avoid widows and orphans in \sections?

In the following example, the section 11.1 should be placed on the page 6 for better readability. This could be done manually by adding \clearpage before the \subsection. I tried from this question ...
nowox's user avatar
  • 1,417
0 votes
2 answers
57 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
  • 167
0 votes
1 answer
27 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,531
1 vote
0 answers
47 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
  • 515
0 votes
2 answers
87 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
  • 515
0 votes
0 answers
49 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
  • 101
5 votes
1 answer
96 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
  • 101
1 vote
1 answer
139 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
85 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
73 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
76 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
155 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
  • 8,618
1 vote
0 answers
44 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
102 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,417
0 votes
1 answer
213 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,417
5 votes
2 answers
434 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
265 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
  • 8,618
3 votes
1 answer
114 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
  • 121
0 votes
0 answers
32 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 ...
csha's user avatar
  • 281
1 vote
0 answers
128 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 ...
DDS's user avatar
  • 9,768
2 votes
0 answers
234 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
26 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
1k 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
  • 984
0 votes
0 answers
77 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,491
0 votes
1 answer
125 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
1 vote
1 answer
1k 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
  • 115
3 votes
1 answer
741 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,960
2 votes
1 answer
153 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,960
0 votes
0 answers
244 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,778
2 votes
0 answers
69 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,125
1 vote
1 answer
155 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,125
2 votes
2 answers
59 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,531
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
  • 8,095
1 vote
0 answers
59 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
1k 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
107 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
337 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
71 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
287 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,209
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,127
0 votes
1 answer
264 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
274 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
250 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
123 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,510
4 votes
0 answers
773 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,349