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

7
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?
7
votes
2answers
78 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 ...
7
votes
1answer
61 views

I need an hrule, but not when at the top of the page

I have a multi-page document that has many small sections split with \hrule lines. Occasionally a section will end immediately before a page break, and so the next section will begin right at the top ...
7
votes
3answers
192 views

Turn advise on page in exam [duplicate]

I like to have a "turn page around" advise on an exam sheet because it continues. Right now, I do it manually. I need to search where the page ends and put a \vspace*{0.5cm} \hfill \textit{Please ...
7
votes
3answers
3k 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} ...
7
votes
2answers
344 views

Different width of frame across page bounadries with mdframed

When a mdframed frame begins with a display math, and the break occurs just at the end of the display math environment, the widths of the frame are different across the page break boundary: Also ...
7
votes
1answer
189 views

How can I keep my TikZ overlay picture on the same page?

I needed to draw squares to highlight submatrices and I found on the internet (perhaps here) a snippet that uses TikZ. By the way I found that if the math expression is at the end of the page, the ...
7
votes
1answer
141 views

Supress `\cleardoublepage` for _some_ chapters

I am using book environment. Between \listoffigures, \listoftables, \printglossary[glossaryname]s and appendices, I need a normal \clearpage between them (not a \cleardoublepage). I still need to ...
7
votes
1answer
221 views

wrapfigures and quote environment not working together

I want to have a figure floating next to a block quote. So I used the wrapfig package and the quote environment. If you typeset the following example, you will see that the figure is printed on the ...
7
votes
1answer
1k views

Strange blank page between abstract and ToC

I am puzzled by a blank page appearing between my abstract and ToC. Since I'm using the report document class, I am not expecting LaTeX to insert any blank pages. Here is a MWE showing the problem: % ...
7
votes
1answer
612 views

How to prevent a page break between section title and colored rule?

I use \usepackage[explicit]{titlesec} to customize the design of my sections, subsections... In particular, i have : \titleformat{\section}% {\large\sffamily\bfseries}% {My Section \arabic{section} ...
7
votes
1answer
4k views

How to move the last line to the next page?

I have a trivial (I hope) problem. I want to move the last line from the even page to the odd one and not to break the paragraph. I tried \newpage and it moved the line to the odd page but it broke ...
7
votes
1answer
361 views

defining a new breakable colored environment for examples

I want to define a new colored environment for my examples. There is two title bars at top of this environment, side by side. One is filled by green color and there is a word "Example" in it. Another ...
7
votes
1answer
2k views

Proofs in Beamer

I'm writing a presentation in Beamer, where I present proofs which are longer than one frame. How to make Beamer to break it automatically to another frame? If it is not possible how am I supposed to ...
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 ...
7
votes
1answer
298 views

How to avoid bad page breaks with lettrine?

I use the lettrine package to lower the first letter at the beginning of some paragraphs. But sometimes it happens to be the last line of the page and the result is awful. Is there any way to move it ...
7
votes
1answer
171 views

How to create a group of minipages that can be spanned across columns but can't be broken in two pages?

I'm trying to diagram an exam for an educational purpose. I'm using the package multicols to display questions in two columns. Each question of this exam is divided in three blocks: base text ...
7
votes
2answers
253 views

How can I tell LaTeX to only make pagebreaks on new sections?

I'm working on a document where it's important that sections are in the same page. How can I tell LaTeX to only make a page break (if necessary) when I write a new \section without having to manually ...
7
votes
2answers
459 views

Large table (ca. 30 columns) covering one or several double pages?

For the appendix of my Ph. D. thesis I need to typeset some very big tables containing raw data. They have about 30 columns and might have enough lines to not fit vertically on one (double)page. Is ...
7
votes
1answer
910 views

How to make memoir not put bibliography on next recto page

I am using two columns in a memoir document and when I place a bibliography using bibtex for some reason it ends up on the next recto page. I am writing a book with multiple chapters and I want each ...
7
votes
1answer
153 views

Break line only if it's too long, but breaking won't create a new page

I'm the author of the contracard package/class for typesetting calling cards for traditional dances. Currently, if you typeset a particularly long figure on a calling card it wraps like this (look at ...
7
votes
1answer
147 views

mdframed being cut across pages

Is there a way to prevent this (see image) from happening when you are going onto another page?
7
votes
2answers
795 views

Preventing page breaks from occurring in bibliography items

Using Bibtex and Natbib, does anyone know how to prevent a pagebreak from occurring mid-item? I would like the bibliography to either: Put an entire record on a given page, or Carry the record ...
7
votes
1answer
386 views

In-row table page break

I'm stuck on a problem for hours. I'm using the tabularx environment to create a double-column table where the second column takes up several lines. An example of that table is shown here. Since such ...
7
votes
1answer
1k views

Get List of Listings in an Appendix [closed]

I am using LyX with the listings package. I want to have Appendix A be titled "Code Listings" and then have the List of Listings. Right now I have \lstlistoflistings in an ERT. By using ...
7
votes
1answer
380 views

Page breaking problem with exam.cls

For some time, version 2.01 of the exam document class has been used in my department. In the future we are going to use the latest version (currently 2.4), and this has to be customised so that ...
7
votes
1answer
268 views

How to insert a blank page or other annotation space next to each page

For a questionaire-alike document, I want to add a blank page next to every other page. These pages must get the default headers, footers etceteras and should be included in the page numbering. This ...
7
votes
1answer
327 views

How can I prevent lstlisting with shadowbox-style to be split?

I have my listings styled with frame=shadowbox. In some cases the lower or upper border of a listing appears on the previous or next page (see screenshot). I do not wrap the listing in a minipage ...
7
votes
1answer
109 views

No pagebreaks between questions and answers

I'm working on a homework set, and one of my answers to a multi-part question has become very long. I've been keen on keeping problems and solutions as much on the same page as possible, and my ...
7
votes
1answer
216 views

Allow line breaks but not page breaks in inline formulas

It often happens that LaTeX breaks up an inline formula over two lines. However, I find it quite distracting when it breaks an inline formula over multiple pages. For example: ...
7
votes
1answer
505 views

How can I make selected sections always start on an even page when using document class article or book?

The reason I want this is as follows: I want my printed paper reports to have a results section where the result description is on the left side of a facing double page, and the results table is on ...
7
votes
1answer
336 views

Forcing footnotes to appear on the next page

I need a way to make some footnotes appear on page 2n+1 when the text that they're "attached" to occurs on page 2n. Is there something like a \newpage command that I could use in the middle of ...
7
votes
1answer
1k views

How to split algorithm2e over two pages

I'm using algorithm2e package but my algorithm does not fit in only one page. Is there any way to split it over two pages, even if manually? If doing it manually, we can use two algorithm ...
7
votes
2answers
1k views

How do I make figure captions span multiple pages?

How do I make figure captions span multiple pages? I have a very long caption for a figure and would like it to carry on to the next page. EDIT: I would like this to work in both one sided and two ...
7
votes
1answer
171 views

Conditional page breaking

I have used LaTeX on and off for a number of years now for several large documents with evolving versions over long lifetimes. But every time it seems like, powerful and wonderful as LaTeX is, there ...
7
votes
1answer
626 views

Rounded corners not working in \mdf@singleextra using mdframed with TikZ

I am creating new framed environments using the mdframed package (along with TikZ) based on the digression example given in mdframed-example-texsx.tex. My code is the following: ...
7
votes
0answers
135 views

How to put one big image on each page [duplicate]

Possible Duplicate: How to include a picture over two pages, left part on left side, right on right (for books)? The problem is the following: I am formatting a twopage book on latex and I ...
6
votes
2answers
904 views

QED symbol on the same page as proof

I'm using the proof environment from the amsthm package. In some cases, the last line of a proof falls at the end of a page, but the QED symbol (the little white box) ends up on the following page. ...
6
votes
2answers
2k views

Add white page after table of contents before abstract

How can I add a white pages after the table of contents in order to have the abstract on a right page? If I add \clearpage \newpage I cannot get the white page added. Ideas?
6
votes
3answers
636 views

An unexpected value of \clubpenalty

In the following MWE, \clubpenalty has the expected default value of 150 at the begin of the document. However, a combination of a) a \section b) a paragraph c) a quote environment – in this ...
6
votes
2answers
3k views

Forcing a figure to appear on the next page

I have a figure which takes up an entire page of space. When I use \includegraphics to put it in my document, instead of appearing on the next page, it appears at the end of the section. However, I ...
6
votes
2answers
600 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 ...
6
votes
2answers
505 views

Page break after \maketitle

Hi I have some problem again with my first page, this is my code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} \title{balalla} \author{someone} \begin{document} ...
6
votes
1answer
4k views

Remove blank page between list of figures and list of tables

Please how can I delete the blank page between List of Figures and List of Tables? I tried this: \listoffigures \nopagebreak[0] \listoftables but nothing changed. Here is my code: ...
6
votes
1answer
180 views

Add text at an optional page-break only when breaking occurs

I have two tables (created with tabularx in the memoir class): [ Table 1 ] [ Table 2 ] They may be adjacent on the same page, or split across two pages like this: [ Table 1 ] ---- page break ---- ...
6
votes
1answer
789 views

Proof Split Over Two Pages

I have a proof that should take up only just over half a page; however, when I compile it, only the first few sentences appear in the bottom half of the page where my proof starts, and the rest is ...
6
votes
1answer
2k views

To have no pagebreak before Bibliography

The position of Bibliography section is defined by document class, report class is a new page, some articles class no has page break. How change this witout change the class of the document? So i ...
6
votes
3answers
408 views

Break PDF booklet into pages

I have a PDF with booklet-odered pages (like the one below). I would like to break these PDF A4 pages back into the original twice as many PDF A5 pages. |-------| PDF page 1 | 8 1 | |-------| ...
6
votes
2answers
645 views

\AddEverypageHook just checks the first page

I am totally new to LaTeX and right now I'm trying to find out how everything works. For the following code I get a background picture only on the first page although I want to have it on all odd ...
6
votes
1answer
809 views

Shaded theorems (thmtools) spanning pages

When the thmtools package is used to create theorem environments with a shaded background, it does not allow separate theorems to span more than one page. This is a rather severe problem if the ...