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

11
votes
3answers
338 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 ...
11
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?
11
votes
1answer
204 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 ...
11
votes
3answers
4k 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 ...
11
votes
2answers
273 views

Include adjacent PDF slides from two different sources through \includepdf

I would like to include pages from two different PDF files on a single page, side by side (possibly using nup=2x2). Presently, there is a page ejected before each \includepdf.
11
votes
2answers
2k views

Copyright page on back of title page

I am trying to get the copyright page to print (or display) on the back of the title page. What is happening is that I get a blank page after the title page and then the copyright page opens on the ...
11
votes
1answer
5k views

Pseudo code to be spread over multiple pages?

I am writing pseudo code in the algorithmic environment. It is quite long and doesn't fit on one single page. Instead of it continuing on the next page, it is cut off. I tried inserting it into a ...
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 ...
11
votes
1answer
624 views

How can I typeset parallel lists of paragraphs on facing pages?

(Not a duplicate of this question.) I'm trying to typeset a document for my father, which contains a list of paragraphs that must be printed aligned on facing pages. Page breaks must ideally not ...
10
votes
2answers
3k views

How to remove page break after \part in report/book

I have tried to look through, but I couldn't find a clear solution on this. I have a document that uses report with multiple \chapters in multiple \parts as: \part{foo} \chapter{uno} \chapter{dos} ...
10
votes
3answers
293 views

Whitespace that breaks across pages (e.g. for handwritten answers)

I'm creating a document where I want to leave white space of varying heights, e.g. for handwritten answers to questions. It doesn't matter whether this empty space is bordered or not. The key thing ...
10
votes
2answers
12k views

Insert a blank page after current page

I want to insert a blank page in a document so that the text would be added to the content of the current page till it reaches end of the page, the next page would be empty, and the text continue from ...
10
votes
4answers
8k views

How do I force \section's to start on a new page if they don't fit on current page?

So I am writing a programming book, and I use \section for each topic. For example, I'd write, \section{Another way to double-space a file} \begin{lstlisting} awk 'BEGIN { ORS="\n\n" }; 1' ...
10
votes
2answers
279 views

\pagebreak[number] only breaks with number = 4

I wanted to try out encouraging of pagebreak using \pagebreak[number]. As far for now it only breaks the page when I define \pagebreak[4] and only then (it won't work on any other circumstances). ...
10
votes
4answers
326 views

Two-colum task list with status information

I'm trying to generate a two-column task list with status information in the second column. It has to allow page breaks and should look more a less like this: I managed to hack something together ...
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 ...
10
votes
2answers
2k views

Index shouldn't start new page

I am writing an article in LaTeX 2e with \documentclass[twocolumn]{article}, including an index. The document prelude includes \usepackage{makeidx} and the \makeindex command. At the point where I ...
10
votes
1answer
446 views

How to make \section start automatically in new page, except first in a chapter

I am working in report class. I would like to redefine \section so that it starts on a new page, except for the first section in every chapter. It seems I should just put code from this answer Start ...
10
votes
2answers
666 views

Custom alignment of columns in align environment

I need to typeset two columns of equations, each row typeset with an equation number to the right as with an ordinary equation. The first column must be centered, and the second column must be ...
10
votes
2answers
200 views

Custom pagebreak in align equation

I got the following problem: Right now I am checking my equations, which are usually written in align. This looks great in most of the cases, but sometimes the pagebreaks are weird, ie there is a lot ...
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. ...
10
votes
3answers
270 views

Avoid page break between line and quote environment

I encountered a little problem while writing my homework in LaTeX. I wrote the following code: \documentclass{article} \begin{document} \center{Title} \vspace{18cm}\\ This line should be on the same ...
10
votes
1answer
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} ...
10
votes
2answers
270 views

Can I make some vertical material disappear if it occurs next to a page break?

I'd like to place a horizontal rule above each section title, to separate the new section from the text before it. But I don't want the rule to appear if the section begins on a new page, since that ...
10
votes
2answers
1k views

Automatic way to break narrow tables into two columns?

Is there an easy way to break long narrow tables into two (or possibly more) columns (i.e. without manually rearranging the columns)? In the following example you can see that there is a lot of ...
10
votes
1answer
151 views

mdframed: how to prevent a box from splitting if the remaining content (or the initial content) is too small?

Question I would like to prevent mdframed to split a box too early or too late. By this, I mean that I would like the remaining part of the box to always be greater than a fixed length, given before. ...
10
votes
1answer
93 views

Insert empty pages until certain page number

I have sections which have to start exactly at the predefined page numbers and the potentially unfilled pages between these sections should be filled with empty pages. Is there a for-loop available ...
10
votes
2answers
2k views

Page breaks within enumerated list

I'm writing a document with lots of numbered items, and I would like each of those items to be contained on a single page (rather than split across two pages). Is there a way to do this? samepage ...
10
votes
1answer
178 views

How to have the mdframed material flow in the top part of consecutive pages

Suppose you have the following layout: The gray area represents normal text. The orange area consists of one or more text boxes (inserts) of given height. Some textbook layouts present advanced or ...
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} ...
10
votes
1answer
6k views

Switching from two columns to one column without adding a page break

I am trying to adapt this solution of multiple authors and multiple affiliations, i.e.:                     to a format where, title and authors go ...
10
votes
1answer
1k views

Beamer: allowframebreaks collides with columns?

I'm doing a scientific presentation with the beamer package and have two columns (the left one with text, the right one with several images) that are too long for one frame. I want to use ...
10
votes
1answer
520 views

Using mdframed after a section heading

The following is a very contrived example, but it illustrates a problem I am unable to solve with the mdframed package. When the mdframed environment follows a section heading but there is ...
10
votes
1answer
183 views

Putting marks for split footnotes

Say, that you have a footnote which is printed in page 1 and 2. How can you put a mark, say $\rightarrow$ at the end of the footnote text in page 1 and at the start of the footnote text on page 2, ...
10
votes
2answers
177 views

\paragraphfootnotes with text colour

I am having some trouble with my footnotes becoming coloured in certain situations. In particular, I am wanting to use memoir's \paragraphfootnotes, but all the footnotes for a page become coloured if ...
10
votes
1answer
996 views

Where to place a two-page table of contents / list of figures?

In my Master's thesis, I use scrbook and start every chapter on odd pages. Now both my table of contents and list of figures span exactly two pages. My question is therefore more related to style and ...
10
votes
2answers
310 views

How to check if a section title (or any heading) is the first line of a new page?

I would like to be able to use an \if command to check if a \section appears on the first line of a new page. If a section heading is the first line of a new page, I would like to then adjust some of ...
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 ...
10
votes
1answer
192 views

Index: Repeat first-level item on new column/page?

In my family history book, I'm using a two-level index. First level is surname, and second level is given name. Index items are defined such as the following: \index{Doe!John} Often a first-level ...
9
votes
3answers
5k views

How to box verbatim to prevent page break?

If I try \mbox{ \begin{verbatim} Some looooong text... \end{verbatim} } Then some compilation errors occur.
9
votes
2answers
676 views

Overfull box and broken pagination

I'm working on a large document in Emacs (23.2.1) org-mode (7.8.06) which I export to LaTeX. At present, the outline/structure of the document has been created, but not any of the content. The LaTeX ...
9
votes
3answers
558 views

Forcing even number of pages in output (LaTeX — pdflatex) [duplicate]

Possible Duplicate: How to keep the last page number even? Is there a way of forcing an even number of pages in output ? What I mean is to make pdflatex document "intelligent" it will add ...
9
votes
2answers
766 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? ...
9
votes
2answers
306 views

Lettrine and section at bottom of page causes bad pagebreak

My custom lettrine and section causes some of my pagebreaks to ruin my layout. Please see the example of the output for the attached code run through XeLaTeX. Verse 2 on the next page should ...
9
votes
1answer
3k views

Two-column beamer ToC with control over the breaking point

From Splitting TOC into two columns on single frame in beamer, I'd like to know whether it is possible to control the position of the breaking point between column 1 and column 2?
9
votes
2answers
419 views

Adding a chapter title for indices (multind) on the same page as the first index is printed

I am trying to add a chapter title 'Indices' before the first multind index is printed. However, printindex flushes the page so if I do it, I will get the title, rest of the page empty, and the first ...
9
votes
3answers
4k views

\newpage,\clearpage and \cleardoublepage not working

I'm trying to compile the following: \documentclass[twoside,11pt,titlepage]{article} \usepackage[paperwidth=5in,paperheight=7in]{geometry} \usepackage{graphicx} \usepackage[absolute]{textpos} ...
9
votes
2answers
2k views

biblatex: No pagebreak in bibliography entry

Is it possible to tell biblatex to never split a bibliography entry across two pages? Ideally this should work for both \cite and \fullcite.
9
votes
2answers
498 views

Automatically reorder floats to fill page

I have a document consisting only of floats, and I would like to order them so as to use the least number of pages. In my case, each float contains song lyrics, but they could easily be poems or code ...
9
votes
1answer
309 views

How to spread floats automatically over a whole chapter?

In a chapter with many figures, I'm having trouble to get the floats to be interlaced with the text. To quote http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions: Authors sometimes ...