{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
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
168 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
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
8k 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 ...
8
votes
2answers
954 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
6k 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
164 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
2answers
349 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 ...
8
votes
2answers
5k 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} ...
8
votes
2answers
217 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
128 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
508 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
561 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
4k 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} ...
8
votes
1answer
274 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
3answers
1k 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
290 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
2answers
586 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
2k 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
750 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
295 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
1answer
142 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 ...
8
votes
1answer
143 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
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 ...
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
615 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
768 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
139 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 ...
8
votes
1answer
122 views

Adding some text on a page break

How can one test if certain chunks of text (say, numbered questions in a questionnaire) is split between two pages and add automatically related text ("Continued question NN") on the top of the second ...
8
votes
1answer
198 views

mdframed does not split correctly between pages

I use mdframed to make boxes and split them across pages. However, sometimes mdframed splits! very strangly across the pages. In this example he prefers splitting, while there is enough space to put ...
7
votes
2answers
909 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. ...
7
votes
4answers
373 views

How to keep the last page number even?

I want to make sure the last page always be even, so I defined command as the following: \documentclass{article} \usepackage{lipsum} \usepackage[paperwidth=302pt,paperheight=400pt, offset=0pt, ...
7
votes
4answers
330 views

Rule before one new section

I use rule so as to separate the differents sections. I would like to automate this so as to use the following syntax : \section*{One day} \noindent\lipsum[1] \section*{Another day} ...
7
votes
2answers
969 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 | --------------------- ...
7
votes
2answers
523 views

\nopagebreak and \penalty

What is the difference between \nopagebreak and \penalty? (Other than the obvious fact that their arguments are measured on different scales.) When should one use one, and when the other?
7
votes
3answers
893 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 ...
7
votes
2answers
271 views

Question about zref bundle (changing the behaviour of footnote rule)

In bidi package, we have three footnote commands \footnote (typesetting RTL footnotes in RTL mode and typesetting LTR footnotes in LTR modes), \RTLfootnote (always typeset RTL footnote), and ...
7
votes
3answers
1k views

Proper way to change a font temporarily with fontspec

I have been using fontspec in a lualatex document where as instructed by the manual I set my main/sans/mono font in my preamble with some default features. However at some point I wish to temporarily ...
7
votes
1answer
101 views

Force pagebreak after every sentence/paragraph

Is there a way to force a pagebreak after every sentence or paragraph? This may seem like an odd thing to do, but for catching typos and just general editing I find it much easier to look at a ...
7
votes
1answer
151 views

How do I suppress the whitespace above an equation block at the page top?

How do I suppress the whitespace above the equation block at the page top ? It is added to the top margin, and I don't want that to happen. I know that \abovedisplayshortskip controls this for the ...
7
votes
3answers
446 views

Section open right in scrbook

Using scrbook, I would like sections to open on a new odd page, like chapters do. How can I achieve that?
7
votes
2answers
1k 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 ...
7
votes
2answers
178 views

dblfnote.sty with musuos.cls causes unbalanced footnotes

I’m the author of musuos.cls and while writing a paper with it I noticed that the dblfnote-package leads to unbalanced footnote columns You can see that the left colum has one line less than the ...
7
votes
2answers
2k 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 ...
7
votes
2answers
178 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 ...
7
votes
2answers
4k views

Chapter without pagebreak? (In twocolumn document.)

I've googled, and I read a lot about how not having a pagebreak before a new chapter is bad style. I've read about how one could use sections instead. I've read about how changing whether a chapter ...