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

8
votes
1answer
322 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
348 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
314 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
187 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
193 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
701 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
116 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
866 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
142 views

Stop Hyphenating Across Page Breaks

How to prevent hyphenation across page breaks? Here is my minexample: \starttext \dorecurse{200}{Aprikosengeschmacksrichtung } \stoptext What I mean is a feature, which many other typographic ...
8
votes
1answer
225 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
139 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
224 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 ...
8
votes
0answers
100 views

Variable page break penalty for odd/even pages?

I am working on a document that has a large number of external Lilypond files included. These render quite well and (while a bit of a pain to use) lilypond-book is smart enough to render the music ...
7
votes
4answers
440 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
365 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
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 | --------------------- ...
7
votes
2answers
786 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
2k 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
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 ...
7
votes
2answers
285 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
1answer
114 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
179 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
2answers
4k 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 ...
7
votes
3answers
748 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
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 ...
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 ...
7
votes
2answers
205 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
1answer
510 views

marginpar and orphans

How can I avoid orphan lines if I use \marginpar? For example, here is a two-page document that does not have any orphans: \documentclass[letterpaper]{article} \usepackage{lipsum} \clubpenalty=10000 ...
7
votes
1answer
1k views

How to wrap text around a landscape table over multiple pages? \sidewaystable or \landscape + \longtable

I am trying to create a landscape table that breaks over multiple pages. I have successfully done this with the following: \begin{landscape} \begin{longtabu} to \textwidth{some columns} \caption[my ...
7
votes
1answer
71 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
288 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
2answers
3k views

\pause and \framebreak in the same frame

I'm trying to use \pause and \framebreak in the same frame and it does not work. The reason why I need that is that I'm writing a proof over several slides but don't want the stuff showing up all at ...
7
votes
2answers
403 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
251 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
172 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
256 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
703 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
5k 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
427 views

Keeping two rows on one page using longtable

I am creating a longtable which spreads over multiple pages. The problem is that the coefficients and standard errors which are in two consequential rows sometimes get separated. How to I hold those ...
7
votes
1answer
4k views

How to put a full-width table at the top or bottom of the same two-column page as the reference text?

I'm posting today because I would like to reduce white space in a document I'm writing. The content is two-columns but I have floating tables that span across both columns (table*). At some point, ...
7
votes
1answer
420 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
3k 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
333 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
2answers
122 views

algorithm with partial borders/frames

I use the algorithm float environment for pseudocode and want some algorithms to span two pages. That works fine with \algstore and \algrestore. However, I would like to omit these borders at the end ...
7
votes
1answer
172 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
1answer
3k views

Remove newpage after \tableofcontents, \listoffigures, etc. in book class

When using a documentclass of book, it seems there is a \newpage inserted after the \tableofcontents and \listoffigures. How can I suppress this? In articles, the following works. How can I get this ...
7
votes
2answers
509 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 ...