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

9
votes
2answers
658 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 ...
7
votes
2answers
2k views

Longtable does not break correctly when used with \specialrule instead of \hline

I'm writing an application that generate latex code, therefore the solution must be the most generic possible to ensure that it will generate clean pdf all the time. I would like to let my users ...
6
votes
1answer
4k views

Breaking table of contents between frames in beamer

I've got a rather long table of contents for my presentation in beamer, and it doesn't fit on one frame. I know I can provide a table of contents per section, or to manually break it between sections ...
43
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 ...
30
votes
4answers
17k 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 ...
21
votes
2answers
901 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, ...
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. ...
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 ...
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 ...
8
votes
1answer
2k views

\maketitle text before title

I want my page to look something like this (using \documentclass{article}): text title text but I can't get it right, it puts my title on the next page leaving my first text ...
19
votes
2answers
4k 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 ...
13
votes
2answers
8k 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 ...
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} ...
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} ...
8
votes
2answers
245 views

How to show a hint when lstlisting is breaking page?

I use inline lstlisting-blocks with caption. I have several listings that are running over more than one page or starting at the end of a page. Now I want to place a hint for the readers, that the ...
6
votes
1answer
207 views

Output two sided, but only on recto page — occasional images on verso

I am preparing a thesis. In order to reduce the number of physical sheets of paper, I need to print certain figures/tables on the verso side. However the university regs state that, while figs/tables ...
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 ...
8
votes
1answer
2k views

Change page layout after first page

currently I'm trying to prepare a letter head with XeLaTeX. The first page of the letter should have a sidebar on the right. For this sidebar, the text width should be shrinked to approx. 80% of its ...
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 | --------------------- ...
6
votes
1answer
188 views

How to circumvent a late \pagetotal reset to 0pt?

Below example demonstrates at the beginning of each paragraph how \pagetotal is not always reset to 0pt at the beginning of the page. This appears to interfere with my attempt to automatically clear a ...
6
votes
2answers
873 views

minted truncates the code if it doesn't fit into one page

minted works well when the code snippet is short, or fit into one page. The problem occurs when I pasted a code snippet with several hundred lines. Sometimes it processed but the output was truncated; ...
4
votes
1answer
290 views

ConTeXt: Wrapped text misbehaves at page breaks

On this site, a solution for text wrapping based on descriptions in Pandoc-generated ConTeXt documents was previously formulated. Although satisfactory for a one-page minimum working example, the then ...
12
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?
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 ...
10
votes
2answers
651 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 ...
8
votes
2answers
141 views

Bottom frame of listing appears on top of the next page

As the title says. I use, among other things, the following in my lstset: framerule=1pt, frame=tblr Some places a page break happens in the middle of my \lstlisting. Fine. But sometimes the whole ...
5
votes
1answer
597 views

Page breaks in table rows

I want to make a document that contains a synopsis of events, like YEAR HISTORY CULTURE SCIENCE 1770 History para- culture para- science para- ...
5
votes
1answer
1k views

How to prevent pagebreak in description environment

I have a simple List in the description Environment. \begin{description} \item [item] number one \item [item] number two \end{description} there is a new new page between the first item and the ...
9
votes
2answers
3k views

How to continue the framed text box on multiple pages?

I am using framed package to create text boxes using begin{framed} and end{framed}. My problem is that my framed box goes on for two pages, and I don't want the text box to complete itself at the end ...
8
votes
2answers
1k views

Marginpar appearing on the wrong side (using memoir)

The subject line pretty much says it all: some marginal notes (beginning of the second page) do not appear on the correct side. (The question is: how can I fix this automatically?) Below is a MWE that ...
8
votes
1answer
822 views

mdframed : Bug with page break?

I'm trying to use the package mdframed to handle framed boxes, that allow page breaking when the content of the box is too large. Nevertheless, i encounter the following difficulty : ...
7
votes
2answers
3k views

How can I ensure that a listing is not going to be split?

How can I ensure that a listing is not going to be split? If it is going to be split I want that the entire listing to move to the following page, effectively moving everything at pass. I mean any ...
4
votes
1answer
639 views

Conserve the frame in a mdframed box that spans more than one page

I am using mdframed to create big boxes that span more than one page, but they just leave an unframed side at the top and down of the page. Is there a way to solve this? \documentclass{article} ...
4
votes
2answers
397 views

Problem with the numeration appearing in the table of contents

I have some trouble with the page numbers printed in the table of contents. I am writing a text in book class. In my text, I first print a table of contents with the commands \frontmatter ...
2
votes
1answer
139 views

How to avoid widows and orphans in ToC?

I want the chapter's author name being shown in the ToC. So I have modified the chapter to add the author there and use it in the page header as follows: \documentclass[10pt,twoside]{memoir} ...
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 ...
14
votes
1answer
585 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 ...
16
votes
2answers
9k 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 ...
22
votes
2answers
6k 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 ...
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?)
19
votes
1answer
664 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 ...
6
votes
1answer
17k views

Explicit frame break with beamer class

I am looking for a way to insert explicit frame breaks. I'd like to use the built-in frame title continuation feature. The only way I have found is to play with different values of the ...
17
votes
2answers
350 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 ...
13
votes
4answers
919 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 ...
9
votes
1answer
346 views

Inserting 'PTO' (please turn over)

Is there a way to create a command which is like a \pagebreak (in that it suggests that it might be a good place to break a page, but certainly doesn't enforce it) but which inserts 'PTO' ("please ...
8
votes
2answers
6k views

Allow theorem split in many frames in beamer

How can a theorem-like environment be (automatically) split into multiple frames if the vertical space it needs is not enough in a frame? In my document preamble I have \theoremstyle{definition} ...
17
votes
2answers
875 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 ...
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
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 ...
7
votes
1answer
2k views

\includegraphics forces new page

When I include a PDF diagram, it forces a new page, so I have one blank page and then this diagram, can somebody help me please? I need to remove that blank page. My document looks like this ...