{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)

67
votes
2answers
10k views

How do I ensure that figures appear in the section they're associated with?

Often floats may land quite a bit later in the document than the point they are created, sometimes after a section break. Is there a way to force a new section to start on a new page, after any ...
38
votes
3answers
4k views

Unbreakable block

I want to do something like the following in TeX: \begin{nobreak} Text here will not split over pages, it will remain as one continuous chunk. If there isn't enough room for it on the current page ...
96
votes
3answers
16k views

\pagebreak vs \newpage

What's the difference? I know that \pagebreak can take an optional argument that specifies how much a page break is desired, but is there any difference if the optional argument is not used?
28
votes
3answers
4k views

How can I make a table that takes up more than a single page?

I've got data that I need to include in a table, but there's a lot if it. I've played with the font size and table formatting as much as I can, but the table still won't fit on the page. Is there ...
30
votes
2answers
4k views

multicolumn long table or enumeration

I would like to generate a multi-column table that wraps within columns of the document, and splits across pages. There are a couple of similar questions here How do I create a really long table in ...
10
votes
2answers
1k views

Test if a paragraph has a page break in it?

I'm trying to use TikZ to make fancier frames. I'm using the clever \tikzmark thing that Andrew Stacey wrote to put nodes at the top left and bottom right of the body of an environment. Then I use ...
15
votes
2answers
18k views

Start new chapter on same page

I am using report document class. When I create a new chapter, it starts it on a new blank page in which only the chapter name appears. I want to be able to start new chapters on the same page as the ...
40
votes
3answers
21k views

Adding vertical space at the start of a page

I'd like to, first thing before writing anything on a page, add some vertical space. Minimal (non)working example: \documentclass{article} \begin{document} \vspace{250px} I want to be further down ...
27
votes
2answers
2k views

Widow word on a page? I thought LaTeX wouldn't do that

Just had a surprise. I have a section in an article followed by a figure. The text flows over a page and ... one more word on the next page (which also includes the figure). Yes, I added a ~ before ...
21
votes
6answers
5k views

Avoiding page breaks shortly after section/subsection headings

By default, LaTeX allows a page break after the first two lines of paragraphs following section/subsection headings. How can I enlarge this minimum to, say, three lines or 10 percent of the value of ...
32
votes
3answers
28k views

How do I force a column-break in a multi-column page?

I want to display my article's abstract and table of contents side-by-side, to save space. I'm using the multicols package, but it tries to keep each column the same height, and I can't figure out how ...
20
votes
2answers
965 views

Column-wise break of extra wide tables

I have to plot geochemical data tables that are like this table , i.e. with a header column, but that have much more sample columns. When having too many columns, the table has to be broken at a ...
18
votes
3answers
2k views

Table and multi-page

I'm writing some sort of book and i've got a very large table. I was wondering if there was a way to span a table not in the length but in the width. In the end, i would like to be able to divide ...
28
votes
7answers
1k views

How to replace a large block of text by an empty block of the same size?

I know there exists the \phantom command, but does it work on large blocks of text (containing several paragraphs or even several pages)? What I want is to have some commands, call them \hide and ...
15
votes
2answers
8k 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 ...
27
votes
4answers
9k views

How do I prevent widow/orphan lines?

How do I prevent a line from appearing by itself: Orphan: at the bottom of the page, or Widow: at the top of the page?
20
votes
2answers
4k views

Squeeze some more lines on the current page

During the last phase of layout I frequently get a single line or two on a separate page. Rather then pulling the whole paragraph on that last page I would like to "squeeze" the lines on the previous ...
32
votes
3answers
18k views

align* but show one equation number at the end

I am using align*, but I still need an equation number. I know one solution is to use align and add \nonumber to all lines but the last. Is there a 'lazy' way to do it? I searched a little and found ...
72
votes
2answers
25k views

Is it wrong to use \clearpage instead of \newpage?

The commands \newpage and \clearpage both force a page break. In addtion, the latter command also "flushes" all pending floats from the stack, i.e., forces them to be typeset starting on the page that ...
37
votes
3answers
8k views

How to avoid page-breaks inside paragraphs?

I would like to know if there is any global command that would prevent any page-breaks inside paragraphs. I'd rather have the whole paragraph on the next page instead of having it cut in the middle. I ...
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, ...
17
votes
3answers
1k views

How can I force ToC not to end with a chapter?

So I am writing a programming book and I decided to include \sections in the ToC as well (see picture below). The problem I am having is that I have ugliness where \chapter is the last item on the ...
8
votes
1answer
7k views

Algorithm over 2 pages

I am writing a few rather large pseudocode functions using algorithm and algorithmic, i.e. my code looks something like: \begin{algorithm} \caption{Coolest Algorithm ever} ...
9
votes
2answers
749 views

Image on top specified page

How can i place an image on the top of the specified page. For example odd pages will be filled by image, even with text. Or, i just want to make sure that (lua)latex will place images on page 2,3,6? ...
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.
6
votes
1answer
3k views

How to put a full-width table at the top or bottom of the same two-column page as the reference text?

I'm posting today because I would like to reduce white space in a document I'm writing. The content is two-columns but I have floating tables that span across both columns (table*). At some point, ...
6
votes
1answer
3k views

Remove newpage after \tableofcontents, \listoffigures, etc. in book class

When using a documentclass of book, it seems there is a \newpage inserted after the \tableofcontents and \listoffigures. How can I suppress this? In articles, the following works. How can I get this ...
3
votes
1answer
1k views

longtabu and floats: wrong table breaks on pages with floats

I noticed that the tabu package seems to have problems with its longtabu environment, if it is placed on a page, where a float already is placed. Consider the following MWE: ...
16
votes
3answers
11k views

Add a new empty page

I have a .tex file which is like my main, \documentclass[spanish]{article} \usepackage{times} \usepackage{amsmath} \usepackage{graphicx} ...
16
votes
4answers
835 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 ...
27
votes
2answers
8k views

How can I split a beamer bibliography across two slides?

I have several citations in a beamer-based presentation. Is it possible to split the bibliography across two slides? I'm using natbib / bibtex. And I currently just have: \begin{frame} \tiny ...
16
votes
2answers
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 ...
22
votes
6answers
2k views

Paragraph breaks with asterisks

In many books—mostly novels—often some paragraphs will have a blank line between them to indicate a sort of 'pause' in the narration. If one of these blank lines appears at the top or bottom of the ...
22
votes
1answer
742 views

Suppressing hyphenation across pages

Is there a way of preventing the last word of a page from being hyphenated?
10
votes
1answer
1k views

How to keep Heading together with text?

I use a very custom style (not mine) and very frequently I get a heading on the bottom of a page and the next paragraph on the top of the next page. Sometimes this paragraph may be a list or similar. ...
6
votes
1answer
1k views

Page break with \include

I like to print my drafts with big fonts and small margins (i do this in memoir style in a single chapter), but the \include comand creates a page break. Is there a way to avoid this and have section ...
19
votes
3answers
1k views

How to make continuous (but breakable) vertical rule along left side of paragraph?

I'm looking for a way in Plain TeX to make a continuous vertical rule along the left side of a paragraph (or arbitrary block of text), such that it observes normal page-break rules. I started with the ...
5
votes
2answers
472 views

Re-displaying section headings after page-breaks

I'd like to automatically repeat section headings after a page break. My naive attempt at doing this is to check the page counter and print the extra text whenever the counter increments: ...
44
votes
3answers
1k views

Why no vertical-mode Knuth-Plass?

I have only basic knowledge of the TeX internals, so I hope what I am saying here is not complete nonsense. If I understand correctly, in TeX, horizontal positioning / line breaking is done using a ...
20
votes
2answers
18k views

Splitting subfigures across multiple pages — but programmatically!

I am using the subfig package to make many subfloats in a figure environment. It works well, as long as you realize that it tracks the whitespaces within the float environment. It also has an option ...
19
votes
2answers
3k views

Code spanning over two pages with minted, inside listing with caption

I am trying using minted to display some code in my document, but the code is long and spans over two pages, this works fine, however when I place my code inside \begin{listing} ...
13
votes
2answers
13k views

Start new page with each section

I would like to start each section on a new page. Is adding the following to my preamble this the preferred method, or a hack? \let\stdsection\section \renewcommand\section{\newpage\stdsection}
15
votes
4answers
11k views

How to show \listoffigures and \listoftables on one page and in the ToC?

Is it possible to put the list of figures and tables onto one page? I only have two tables in my thesis, so having it on an extra page looks quite bad. I've read about the tocloft package and tried ...
15
votes
3answers
7k 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 ...
13
votes
1answer
480 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 ...
8
votes
2answers
668 views

Syncing text on bilingual pages

This is quite a technically involved question. Of which the essence is how XeLaTeX handles page-breaking. I need to produce a bilingual book. With one language on the left hand side page and another ...
8
votes
1answer
816 views

Theorem decorations that stay with theorem environment

I am typesetting a document using the memoir documentclass. Currently, my theorems have the following definition (using macros provided by the ntheorem package): % THEOREMS ...
5
votes
2answers
378 views

Boxed text between pages

I've made boxed text into a manuscript using tikz by following the example in texamples, it works like a charm as long as the box is short enough to fit into a page. \documentclass{article} ...
4
votes
1answer
504 views

Left-hand vertical rule applied to flalign environment with automatic pagebreak

I am referring to the coderule environment (see Override \centering to left justify an image) presented earlier by @TH as answer to the following question: Override \centering to left justify an image ...
16
votes
1answer
6k 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?