{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
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} ...
9
votes
1answer
5k views

single-column revtex4-1 adds a page break after the title section

Using revtex4-1 in single-column mode produces a page break after the abstract. This is not the behavior with revtex4. The minimal example is really simple: \documentclass{revtex4-1} ...
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 ...
9
votes
1answer
366 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 ...
9
votes
1answer
141 views

prevent break after \poemtitle

This MWE shows that LaTeX can put a break after the title of a poem (written with the \poemtitle command of the verse package). Can someone advice me a way to prevent this behaviour? ...
9
votes
2answers
669 views

Section should automatically start new page if the whole section does not fit on current page

I would like my sections to start on a new page if they do not fit on the current page. In other words: if a section fits on the current page print it, if it does not fit start printing it on the ...
9
votes
1answer
299 views

When is \if@nobreak set to \iftrue or \iffalse?

In my answer to a question on page breaking, I used a private switch that the user had to set by hand to prevent tables which start just after a section from breaking (at the first line). It seems ...
9
votes
1answer
228 views

How can I create a chapter with graphics only divided into different sections?

I'm trying to create a chapter with pictures only, but keep running into troubles. The chapter is an appendix, where only some graphics should be displayed, placed in different sections. I don't need ...
9
votes
1answer
181 views

Bad page break with \newenvironment, \refstepcounter and hyperref

I tried to define some environment but came across bad page breaks sometimes. The minimal working example is as follows: \documentclass[b5paper]{article} \usepackage{hyperref} % page break is correct ...
9
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 ...
9
votes
1answer
362 views

How to put footnotes in the page where they belong in a mdframed environment

I have a large bunch of text in a mdframed environment, that span more than one page. As it seems reading the documentation, the mdframed environment put every footnotes at the end of the frame, by ...
9
votes
2answers
4k views

Big tables with big items: pagebreaks within items?

I am using LaTeX for creating PDF files automatically from within Python scripts. The documents I create basically consist of just one big table, which can span several pages. It consists of three ...
9
votes
1answer
204 views

Problems at page boundaries trying to highlight `\lstinline`

I was trying the code given in Colored background in inline listings, which is actually the same than in How to redefine \lstinline to automatically highlight or draw frames around all inline code ...
8
votes
2answers
1k 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. ...
8
votes
3answers
2k views

How to split a page in six equally sized sectors?

I'd like to split an A4 page into six equally sized sectors. I want that page to be in landscape. Each sector has a body of text and a caption. I don't really have an idea where to start. I know I ...
8
votes
2answers
1k views

Multicol - don't wrap

I have two-columned page by multicol: \begin{multicols}{2} Lorem ipsum dolor sit amet... \end{multicols} It there any way to ban wrapping to the second column. What I mean is, that I ...
8
votes
2answers
4k views

Minipage that allows page breaks?

Is there a minipage-like environment that allows pagebreaks? Everything I can find is about avoiding page breaks (which minipage does well) but I want to indent a whole section, which is convenient to ...
8
votes
2answers
4k 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 ...
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
7k views

Algorithm over 2 pages

I am writing a few rather large pseudocode functions using algorithm and algorithmic, i.e. my code looks something like: \begin{algorithm} \caption{Coolest Algorithm ever} ...
8
votes
1answer
263 views

How to prevent page break between section title and table

I have several consecutive subsections which only contain one longtable each, right after the subsection title. So it happens that some of the subsection titles are at the bottom of the page and the ...
8
votes
1answer
3k 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 ...
8
votes
2answers
156 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 ...
8
votes
2answers
261 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 ...
8
votes
1answer
145 views

Remove/hide content if it would appear as an orphan [duplicate]

Possible Duplicate: prevent “action” if top of page I have some blocks of text, separated by a \hline. Because the LaTeX code is generated automatically from user-entered data, ...
8
votes
2answers
583 views

Memoir: Subbottom over several pages?

In the Memoir class, I use the subbottom command to create subfigures, labeled, e.g., 1(a), 1(b), 1(c) etc. And this works very nicely. However, if I include more figures in subbottoms than what can ...
8
votes
1answer
642 views

Excursus environment using mdframed: Issue with page breaks

This question is a follow-up question to: Access mdframed node coordinates with TikZ? @MarcoDaniel: Awesome package (mdframed)! Nice clean code, too. @Tobi: I really like your new excursus ...
8
votes
1answer
2k views

Long equation does not page break

I have a series of equations steps, about 20 lines or so. I would like to have it automatically decide page break when necessary, but it resists and always tries to stay in a whole page, rendering the ...
8
votes
1answer
335 views

Avoid widowed signature lines

I have documents created in XeLaTeX with signature lines appearing at the end of the document. Sometimes these signatures appear on pages by themselves i.e. without preceding content. I would like to ...
8
votes
1answer
3k 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 ...
8
votes
3answers
2k views

Chapter title and abstract in the same page

I'm writing a report and I need to write an abstract for the chapter after the chapter title in the same page. How can I do this?
8
votes
1answer
2k views

longtable multirow problem with cline and nopagebreak

I have a problem using with the package lontable and multirow together. It seems that the \* is not avoiding the page breack, if I'm using \cline{i-j} just afterwards. Here the original code for ...
8
votes
1answer
308 views

Chapter on any page, but recto after part

Using the book style, I need chapters to start on anypage (as in openany) BUT to be recto after a part (which is also recto). fussy eh!
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 ...
8
votes
1answer
206 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 ...
8
votes
2answers
692 views

Syncing text on bilingual pages

This is quite a technically involved question. Of which the essence is how XeLaTeX handles page-breaking. I need to produce a bilingual book. With one language on the left hand side page and another ...
8
votes
2answers
3k views

placing in the same page two abstract in different language

I'd place in the same page two abstract section.One created using my own language and one in english language. If I tried this: \selectlanguage{italian} \begin{abstract} \lipsum[1] \end{abstract} ...
8
votes
1answer
857 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 : ...
8
votes
1answer
285 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 ...
8
votes
2answers
1k 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 ...
8
votes
1answer
333 views

How can I tie two pieces of text together so LaTeX tries not to break exactly between them?

I'd like to typeset two chunks of text (a problem statement and solution) next to each other, but I don't want the problem to be the last thing on a page and the solution to be the first thing on the ...
8
votes
2answers
291 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 ...
8
votes
1answer
61 views

When does \nopagebreak work?

There are many examples where \nopagebreak doesn't work as expected: Nopagebreak nopagebreak nopagebreak - why won't LaTeX listen to me? How to make longtable respect \nopagebreak in the ...
8
votes
1answer
179 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 ...
8
votes
1answer
178 views

Why is mdframed inserting a blank page?

I'm using the awesome mdframed by Marco Daniel and I'm having some problems with pagination. Sometimes it will insert a blank page, depending on the exact height of the content. Here's the smallest ...
8
votes
1answer
3k views

Include thebibliography on the same page

My paper has a page limit and the spec says to include the bibliography on the same page right after the text. I'm using the thebibliography environment (its a very simple bibliography). How can I ...
8
votes
2answers
676 views

Page-breaking over titles of theorems that have lists

When I have multiple part theorems, I use an enumerate environment inside my theorem environment. However, I don't like the list to start at the same level as the theorem title, since this produces ...
8
votes
1answer
99 views

show “continued” for nested description list item on page break

I'm using enumitem to create a description list. These lists can sometimes be nested and can get very long. When a list item with a lot of description text breaks over a page it is difficult to ...
8
votes
1answer
835 views

Theorem decorations that stay with theorem environment

I am typesetting a document using the memoir documentclass. Currently, my theorems have the following definition (using macros provided by the ntheorem package): % THEOREMS ...
8
votes
1answer
184 views

How to generate a “<section> continued” heading after page-break?

This is a follow-up question of the answer to Re-displaying section headings after page-breaks As in the follow-up question, I would like to repeat the section heading after a page break, but ...