{page-breaking} is about how (La)TeX breaks pages (and, in multi-column documents, columns) and how page/column breaking can be influenced.

learn more… | top users | synonyms (1)

18
votes
3answers
3k views

How to prevent a page break before an itemize list?

It is not nice to have a page break right after the colon and have the list start on a new page: And here, finally, is the list of mission-critical items: \begin{itemize} ... \end{itemize} How can ...
18
votes
4answers
2k views

Include without pagebreak

I really like the \input command, but what I really like more is the \includeonly command. Is there a way to have the best of these worlds? (i.e. an \inputonly or an \include without page-breaks?)
18
votes
2answers
1k views

Vertical spacing, pagination and ideal results

I found that the best way to avoid widows and orphans is setting penalties and using rubber lengths between paragraphs, for instance, \setlength{\parskip}{1pt plus 1pt minus 1pt}. When I shared this ...
18
votes
2answers
402 views

prevent “action” if top of page

I have a manual list of stuff that are sometimes separated by an hrule(or my own custom ruler) for visual purposes. Sometimes the hrule ends at the top or bottom of a page which makes it useless. Is ...
17
votes
2answers
15k views

How do I force a column-break in a two-column document?

Similar to How do I force a column-break in a multi-column page? I want to force a column-break in a two-column document. \columnbreak seems to be undefined without the multicol package.
17
votes
1answer
714 views

Conditional pagebreak?

Is there a way I can have LaTeX insert a pagebreak, if the last line of the page is a certain string? e.g. \noindent \textsl{Solution}: thanks very much!
17
votes
2answers
2k views

How to make longtable respect \nopagebreak in the beginning?

For the book I am typesetting now I need a table environment with the following abilities: Span over multiple pages; Allow \nopagebreak between two lines Do not ignore \nopagebreak before the ...
17
votes
1answer
7k views

How to start new chapters on the right hand side

I use the report document class, and I would like that chapters always start on the right hand side, anyone an idea how this could be easily done?
17
votes
2answers
1k views

Hyperref Link Spans a Pagebreak, Looks Ugly

I'm using hyperref for links in pdflatex and I have the following problem: when a bibliography citation spans across a page-break (which usually occurs with long author names), then an additional ...
16
votes
3answers
8k views

When do I need invoke \clearpage manually?

I am not sure whether invoking \clearpage is necessary or redundant at many places in my input .tex files. Here I will ask you, in what condition is invoking \clearpage necessary? I hope I get a ...
16
votes
2answers
9k views

Incorrect bookmarks and page number in table of contents

I have problem with table of contents and with bookmarks. In pdf file table of contents shows wrong page number of Introduction and Bibliography, Bookmarks: introduction and bibliography don't bring ...
16
votes
7answers
5k views

How can one keep a \section from being at the end of a page?

Given LaTeX likeso: \section{Heading} Here is some text after the heading. How could one prevent the Heading from showing up at the very bottom of the page? In other words, how could one prevent ...
16
votes
2answers
9k views

How to force output to a left (or right) page?

I am putting together a document that has several cover pages, both for front and back cover. The bulk of the document is two-sided. Cover pages, however, must be right-side (or left-side, for the ...
16
votes
3answers
3k views

multicols not wrapping to 2nd column properly?

This question led to a new feature in a package: multicol I am having problem with multicol package, I created a sample demo to show it. When I put 3 minipages of certain height in the ...
16
votes
2answers
890 views

A special example environment

How can I define an environment named "example" so that: can be broken over pages has a horizontal line above "Example \chap.\no" (e.g. Example 4.10), and vertical line that is spread to the whole ...
16
votes
4answers
922 views

Is there a way to make “page” size match document length?

Many PDFs are never printed but are read in electronic form, where, for at least some readers and reading styles, it would be advantageous to have a single page through which the reader could ...
16
votes
1answer
782 views

Displaying the range of sections on the page in the header

I would like to have on each page the range of sections covered by it displayed, opposite of the page number and accompanied by the name of the first new section (if there is a new one) starting on ...
15
votes
3answers
218 views

Why do user-defined whatsit nodes affect LuaTeX pagebreaking?

EDIT: A summary of the possible answers is given below. In my current LuaTeX project I am using user-defined whatsit nodes to transfer information between the different stages of a LuaTeX run. On ...
15
votes
3answers
2k views

How can I put a line above a section heading and prevent a page break between?

We have designed a class for some journal. We wanted our section titles to be separated by a horizontal line from the previous line. Here is the code: \def\section{% \vskip 1.2\@bls% \hrule ...
15
votes
3answers
2k views

How to avoid a page break before a two-column TOC in memoir

Although `I wouldn't normally do this', I'm writing a short(ish) document for which I'd like to place a small TOC in two columns as the last thing on the title page. In single column mode it works ...
15
votes
2answers
2k views

Breaking pictures across multiple pages

I am a relative TeX newbie trying to write a new package to generate timelines that can span multiple pages (the existing timeline solutions are not suitable for me, and I would like to write ...
15
votes
1answer
354 views

Conditioning behaviour of a macro on whether on top of a new page

Is there a way to find out, whether the currently typeset material will go to top of a page? I am trying to write a macro which, when invoked, typesets a horizontal divider to separate the subsequent ...
14
votes
3answers
3k views

Footnote runs onto second page

I have a footnote that begins on one page but the text runs over onto the footnote section of the page afterwards. Any way to fix this? I'm using footmisc and the oneside book class.
14
votes
2answers
172 views

Can I get at stuff in “current page” or “recent contributions”?

When I compile the following, \documentclass[a4paper]{article} \usepackage{atbegshi} \AtBeginShipout{\showlists} \showboxdepth\maxdimen \showboxbreadth\maxdimen \usepackage{lipsum} ...
14
votes
1answer
616 views

pagebreak if only 1/4th of the page left?

I have a document with some tabulars one after the other. I want the tabulars begin on a new page if there is very little room left on the actual page, like 1/4th. Otherwise, there should not be a ...
14
votes
1answer
294 views

Is there any opposite of newpage?

Is there any command which is the opposite of \newpage/\pagebreak/\clearpage, i.e. which goes back a page instead of going forward, similarly to the way you can use \vspace to move the current ...
13
votes
1answer
6k views

Split the Table of Contents in two pages

Let's say I'm writing a document with 6 chapters. I want to force the table of contents to be split between two pages. The first page would list the first 4 chapters, the second page would list the ...
13
votes
2answers
512 views

Breaking a theorem between pages

I currently have this custom myexample theorem environment that is working absolutely great. \newtheoremstyle{myexamplestyle}{}{}{}{}{\bfseries}{.}{ }{} ...
13
votes
1answer
2k views

Chapter on the right side - How to turn it off?

As a documentclass I use book. Chapters always start on the right hand side. How can I turn it off? I don't want to have empty pages. I don't care on which side starts new chapter.
13
votes
4answers
1k views

How can I let a footnote continue on the next page?

I have a rather long footnote which breaks a listing in two parts, unnecessarily. Since the listing is more important then the footnote I'd rather lake to have the footnote split. Can I customize ...
13
votes
1answer
1k views

What are 'pagebreak hints'?

The FAQ refers to "pagebreak hints". I can't find any mention of these by searching (for "[page-breaking] hints" and various other things). What are pagebreak hints and how does one use them?
13
votes
1answer
619 views

Column break only if within first column of multicol

Background Creating books automatically using LaTeX-escaped user-generated content. Problem The book layouts make use of the multi-column package, with the book content separated into sections. If ...
13
votes
2answers
2k views

How to make a list of unbreakable items?

In continuation of this question, I tried to make a list of items each consisting of unbreakable text. This can be done manually using minipage: \documentclass[10pt,a4paper]{article} ...
13
votes
1answer
179 views

How can one ensure that footnotes page-wrap only from verso (back, even-numbered) to recto (front, odd-numbered) pages?

How can one ensure that footnotes page-wrap only from verso (back, even-numbered) to recto (front, odd-numbered) pages? With the following code, the line to which the second footnote is attached ...
12
votes
3answers
1k views

What happens when \textheight changes mid-document?

I know it's generally considered to be unwise, but I need to understand what happens when \textheight changes mid-document. From this example, it appears that the change takes effect on the next page, ...
12
votes
2answers
1k views

Breakable vboxes

In Plain TeX how can I make vboxes breakable, and can I handle/measure them separately? What I'm trying to do, is that I have a portion of text, that is treated separately (no indention, narrower, ...
12
votes
2answers
349 views

Splitting verbatim inside figure across pages

I want to include a long section of verbatim text, which is too long for a single page, inside a figure with a caption. Unfortunately, when the verbatim environment is put into a figure, it does not ...
12
votes
3answers
438 views

How to ensure document total page numbers is a multiple of four?

I'm producing a document (book class) that will ultimately be produced using offset lithography. It's therefore useful to ensure the total number of pages is a multiple of four by adding as many blank ...
12
votes
2answers
1k views

Is there a distinct command for \widowpenalty and \clubpenalty in footnotes?

I have found that setting \widowpenalty=10000\clubpenalty=10000 in the main document has not prevented widows and clubs from appearing occasionally in footnotes in a long and complex document I am ...
12
votes
2answers
189 views

Can I detect whether a footnote has been split?

Title sez it all: Can I detect, hopefully by inspecting \box\footins, whether a footnote has been split at page-breaking? I found the package fnbreak but it uses labels, which is much too delayed for ...
12
votes
3answers
360 views

Avoiding orphans at the start of quote/quotation environments

To me, orphans -- page breaks after the first line of a paragraph -- are tolerable in the normal text body, and so I leave TeX's default settings (\clubpenalty=150) alone. On the other hand, I want to ...
12
votes
3answers
5k views

Avoid page breaks in \lstlistings

I'm trying to avoid page breaks in my lstlisting (seen in section 0.0.2) I know I can remedy this by floating my lstlisting, but it adds some unwanted white space (seen in section 0.0.1). Is ...
12
votes
2answers
1k views

varioref: \vref or \vpageref at page boundary (may loop)

Sometimes a have situations, where I'm not able to compile a document, because the varioref package result in a loop. Here is a MWE, which result not in an endless loop, but it demonstrate the issue ...
12
votes
1answer
122 views

Varying Page Lengths

How can I vary the vertical page length per page? I want to have the page breaks at essentially arbitrary locations in the document, specified by a command, like \newpage but not necessarily this ...
12
votes
3answers
5k views

How can I fit my table of contents into a single page?

When I use \tableofcontents I get all my contents in a single page except for a line that goes on the other page, how can I make all in the same page?
12
votes
1answer
106 views

biblatex: extract fields without starting a page

I'm trying to extract some data from bib entries for further processing. Sadly if I use a cite command it starts a page: \documentclass{article} \usepackage{biblatex} ...
12
votes
2answers
1k views

Keep bibliography entry on one page

I'm using BibTeX and natbib. I have a number of entries in the reference section that start at the bottom of a page and continue on the next e.g. at the bottom of a page I have Some Author Name, ...
12
votes
1answer
463 views

How do I check whether the text will fit in one page?

I am trying to typeset a page that varies in length. Sometimes it's just shorter than A4, but sometimes it exceeds the length of A4. My question is, how can I check whether the text will fit in one ...
12
votes
2answers
2k views

Split beamer notes across multiple notes pages

I've only recently discovered the notes mode for beamer, and I'm trying to build a presentation with notes containing my speech. However, my speech is quite large, and is causing note page overflows. ...
12
votes
2answers
1k views

How can I prevent page break between lines of a paragraph or bibliography entry?

My university's thesis guidelines require that each bibliographic entry appear in whole on a single page, rather than being split across two. How can I prevent (La)TeX breaking a paragraph across a ...