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

1
vote
1answer
520 views

Unequivocally force first reference to same page as the referred item?

Background Writing a manual using LyX. All tables, figures, and source listings are always referenced in the paragraph (or enumerated step) that immediately precedes them. The preamble to the manual ...
14
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 ...
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 ...
31
votes
3answers
27k 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 ...
22
votes
1answer
734 views

Suppressing hyphenation across pages

Is there a way of preventing the last word of a page from being hyphenated?
2
votes
2answers
523 views

How to avoid orphan line of multipage tabular?

There is an orphan line on page 2. How to get rid of it? Minimal Code \documentclass{article} \usepackage[a4paper,margin=5cm,landscape]{geometry} \usepackage{longtable,array} ...
5
votes
2answers
2k views

Listing over two columns - how to page break?

I have a two column article: \documentclass[a4paper, twocolumn]{article} Inside this is a bigger lstlisting which has a float=* to merge the two columns. However this listing needs a page break. ...
7
votes
2answers
1k views

LaTeX produces bad, widowed line

I just found a widowed line in my PDF document, created by LaTeX. It looks something like this, see "sion" on the second page: | blah blah expres- | | 8 | --------------------- ...
4
votes
1answer
1k views

Avoiding blank page in Latex

I get a bank page after the content page. The content page is numbered in roman numerals. The chapters have Arabic page numbers. The blank page that I get after the content page has Arabic number 1. I ...
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 ...
20
votes
5answers
13k 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. ...
3
votes
2answers
477 views

How can I force an image and its caption to be on the same page?

I am using the caption package, now I have one problem: In one case an image is placed at the bottom of one page, while its caption is placed on the top of the following page. In this case I would ...
10
votes
1answer
5k 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 ...
15
votes
1answer
349 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 ...
5
votes
2answers
926 views

How to disable pagebreak on \hline in longtable?

How to disable pagebreak on \hline in longtable? This is an example illustrating my problem: \documentclass[12pt,a4paper,oneside]{letter} \usepackage{longtable} \begin{document} ...
6
votes
2answers
622 views

Proper way to do a “page break”

Lets assume that in my latex code I have the following paragraph as an example. The leaked cabled from the US embassy to Washington indicate that in the run up to the May General Election Mr King ...
14
votes
1answer
5k 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?
16
votes
1answer
662 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!
4
votes
2answers
2k views

\mainmatter adds page breaks that I don't want

I'm using the documentclass "book". I put a set of \frontmatter and \mainmatter instructions around everything that's before chapter 1. But now, LaTeX skips two pages at the beginning of the main ...
5
votes
1answer
980 views

Dirtree pagebreak issue

I have a (rather long-ish) hierarchical structure, typeset with the dirtree package. However, I have some issues when breaking the tree over to a new page -- the line may protrude up to the very top ...
14
votes
3answers
1k 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 ...
10
votes
2answers
2k views

Splitting a float with code listings

Using the floats and listings packages, I have defined a float for code listings and a shortcut for using it as follows: \usepackage{floats} \usepackage{listings} ...
4
votes
2answers
1k views

Remove unnecessary page before bibliography

I'm writing a thesis which is an aggregate of articles. In one article, there's a blank unnecessary page that appears between the final lines of my document and the bibliography when I put it in the ...
9
votes
1answer
1k 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} ...
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 ...
10
votes
3answers
4k views

How can I create a two-column layout with different widths (and texts) for the two columns?

I want to create a document in which there are two separate columns of content. The column on the left is normal text, with sections, environments, etc. The column on the right is figures, all roughly ...
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?
11
votes
1answer
202 views

How can I do something after the next pagebreak?

I'm writing a document where I say something like "if you look at Figure 1 on the next page, then you will see that blah blah blah". So what I want to do is have latex skip a number when numbering ...
24
votes
3answers
897 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 ...
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
3answers
8k 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 ...
39
votes
1answer
46k 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 ...
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 ...
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 ...
17
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?)
8
votes
1answer
1k views

Full-page figure without extraneous whitespace in text?

My question is along the lines of How do I ensure that figures appear in the section they're associated with?, but slightly different. I have a figure that occupies a full page. By default, LaTeX ...
95
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?
66
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 ...
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 ...
11
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 ...
48
votes
3answers
43k 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.
5
votes
1answer
181 views

How to keep material on one double page?

I have two side document(so I use twoside option) in LaTeX. I need to keep some material (text, pictures...) on one double page. In another words I want to allow page break from odd to even page but I ...
16
votes
7answers
4k 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 ...