{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
3answers
673 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
833 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
326 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
388 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 ...
9
votes
1answer
4k 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 ...
9
votes
2answers
494 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
2answers
515 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
9k 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} ...
9
votes
1answer
359 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 ...
9
votes
2answers
4k 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
2answers
183 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 ...
9
votes
1answer
442 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
149 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
1answer
684 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 ...
9
votes
2answers
732 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
308 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
199 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
231 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
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 ...
9
votes
2answers
322 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 ...
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
384 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
4answers
179 views

Widow Orphan lstlisting

I have a listing of 6 lines. The listing box does not seem to fit on one page (it is on the bottom of the page) so the rest of the box is printed on the next page. There is nothing actually in the box ...
9
votes
1answer
221 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
2k views

How can I force bibliography items not to be split across pages? [duplicate]

Possible Duplicate: How can I prevent page break between lines of a paragraph or bibliography entry? \documentclass{mwrep} \usepackage[nodisplayskipstretch]{setspace} \setstretch{1.9} ...
8
votes
1answer
6k 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: ...
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
3answers
1k views

How can I make \titlespacing not omit the top spacing?

In a multicols*{2} environment for 12pt linehight text, I use \titlespacing*{\subsection}{0pt}{12pt}{12pt} To create exactly 12pt of space before and after subsections. Together with a line height ...
8
votes
2answers
5k 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
329 views

Line down the side of the page

At the moment I'm using the {tabular} environment to distinguish examples in a document I'm writing: \begin{tabular}{r|p{11cm}} \emph{Example} & [Lots of text and equations] \end{tabular} It ...
8
votes
1answer
20k 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 ...
8
votes
1answer
4k views

Using `\allowdisplaybreaks` locally for a single chapter / single equation

I do have a longer paper. In one chapter I got several multiline equations, which I wrote using the align environment from amsmath-package. Actually those are quite long computations which should ...
8
votes
2answers
15k views

How make sure two elements stay on the same page? [duplicate]

Possible Duplicate: Unbreakable block I am writing a very simple how-to document with several screenshots. The document flow goes something like this: A few sentences explaining action 1 ...
8
votes
2answers
1k 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; ...
8
votes
2answers
303 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
3answers
2k views

Page breaks within moderncv

I'm typesetting a document with lengthy itemize lists and in most cases LaTeX leaves lots of empty space before the environment in order to get it entirely on one page. How can I encourage LaTeX to ...
8
votes
1answer
151 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
649 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
902 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
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
385 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
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
4k 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
317 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 ...