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

101
votes
3answers
20k 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?
79
votes
2answers
30k 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 ...
72
votes
2answers
14k 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 ...
51
votes
3answers
47k views

What is the difference between “Page Break” and “New Page”? [duplicate]

Possible Duplicate: \pagebreak vs \newpage In LyX/LaTeX, What is the difference between "Page Break" and "New Page"? They both seem to do the same to me.
45
votes
5answers
2k views

Typesetting limitations of LaTeX

What are the typesetting limitations of LaTeX? In other words what are the things that desktop publishing and word processing programs do better than LaTeX? I am not really interested in things that ...
45
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 ...
44
votes
3answers
25k 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 ...
43
votes
1answer
53k views

Why is \newpage ignored sometimes ?

I have the following towards the end of an article. The bibliography is short (4 entries). What's happening is that on the very last page of document I get the chart and immediately afterwards the ...
42
votes
3answers
5k 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 ...
42
votes
5answers
2k views

Automated Newspaper Layout (with TeX and abroad)

Update: I'd like to revive (and revise) this question a bit because there have been some recent developments, and furthermore I would be happy to encourage some up-to-date discussion. I'm thinking ...
39
votes
3answers
9k 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 ...
38
votes
1answer
694 views

Catchwords: Print first word from next page at bottom of current page

I would like to typeset catchwords. That is, I would like to put a “preview” of the next page’s first word at the bottom of every page. An example taken from the Wikipedia page linked above: The ...
34
votes
4answers
19k views

How to prevent lstlisting from splitting code between pages?

Is it possible to prevent lstlisting from splitting a code between pages if it does not fit on one page? Instead splitting I would like to have the code on the next page. I tried to put all ...
34
votes
3answers
32k 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 ...
34
votes
3answers
25k 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 ...
32
votes
5answers
11k 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?
31
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 ...
30
votes
2answers
9k views

Clearpage without pagebreak?

Is there a command which does the same like \clearpage (typesetting all floats which have not been typeset yet) but then does not insert a pagebreak but continues with the following text/graphics on ...
30
votes
2answers
10k 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 ...
29
votes
3answers
5k 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 ...
28
votes
7answers
2k 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 ...
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 ...
26
votes
1answer
12k views

Is it possible to pagebreak aligned equations?

The report I'm writting features a lot of long, multiple lines equations. To reduce visual polution I've been using an aligned environment nested inside equation. This way (unlike just using an align ...
25
votes
3answers
967 views

How to avoid widow lines after displayed equations

If a displayed equation is close to the bottom of the page, TeX likes to insert a page break even if the current paragraph contains only one more line after the equation, as e.g. in ... it follows ...
24
votes
2answers
991 views

Is LaTeX intended for unattended typesetting?

With markup converters like Pandoc, it is now possible to generate LaTeX documents without ever touching any LaTeX code. However, obtaining aesthetic page breaks for slightly complex documents, ...
23
votes
5answers
14k views

Nopagebreak nopagebreak nopagebreak - why won't LaTeX listen to me?

Fun times, I'm making a (manual) index of the lecture slides for class (which are nowhere near latex, ppt files yay) and of course Latex insists on placing pagebreaks willie nillie through my items. ...
23
votes
2answers
6k views

Absolutely, definitely, preventing page break

This is a question that has been asked before in various ways, but I have yet to find a general answer to it. Perhaps I'm misunderstanding something and the solution is actually very simple. I have a ...
23
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 ...
22
votes
5answers
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 ...
22
votes
3answers
10k views

Keep all footnotes on the according page

Is there a way to keep all footnotes on the page where they belong to? I have several (20-30) footnotes per page (some short, some stretch over multiple lines). Sometimes latex places the last one or ...
22
votes
1answer
815 views

Suppressing hyphenation across pages

Is there a way of preventing the last word of a page from being hyphenated?
22
votes
2answers
1k 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 ...
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 ...
21
votes
6answers
6k 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 ...
21
votes
2answers
408 views

Show footnotes on odd pages only

I'm writing my thesis using the scrbook-class. Is it possible to display footnotes only on the odd (right) pages? This should mean that \footnote{something} should be collected on even pages and ...
21
votes
3answers
20k views

how to suppress “Underfull \vbox (badness 10000) … while \output is active”?

when using an inflexible document class, one is often faced with the warning Underfull \vbox (badness 10000) has occurred while \output is active [] on pages that contain no display math. in ...
21
votes
2answers
20k 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 ...
20
votes
3answers
2k 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 ...
20
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} ...
19
votes
3answers
15k 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} ...
19
votes
3answers
16k 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}
19
votes
4answers
958 views

Avoiding a page break after the first word of a sentence

Is there a way to tell TeX to avoid breaking the page after the first word of a sentence? ... ... He was quite dead. Apparently his neck had been broken. The lightning flashed for a third ...
19
votes
1answer
264 views

Is something the first item on a page?

How can i identify logically, whether something is the first item on a page, i.e. there is nothing above it (apart from header)? Consider the following, is is basically a feature environment, which ...
19
votes
1answer
25k views

Make a table span multiple pages

I have a table that takes up a full page, but I want it to start on a page that already has some text and then continue onto the next page (i.e. it's ok if the table gets broken up and spans two ...
19
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 ...
19
votes
1answer
739 views

Tikz - How to overlay Decorations over longtable

I asked similar question here Colored Curly Brackets spanning across multiple pages but may be I did not provide enough detail. On its own the solution works great. I have about 32 longtables in my ...
19
votes
1answer
475 views

Finding all widows and orphans

There have been several questions about how to avoid widows and orphans, so let me first state that that is not the question here. I know I can try and tweak the settings but that it's still possible ...
18
votes
2answers
11k views

Multi-page equations — problem

I have a very long derivation, that needs to look like: A = B \\ = C \\ = D \\ etc. The derivation spans across many lines. I'm looking for a way to typeset it so that when it reaches the end of ...
18
votes
2answers
20k 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 ...
18
votes
4answers
12k 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 ...