{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
843 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
193 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
131 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

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
110 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
0answers
79 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
414 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
356 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
679 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
1answer
5k 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: ...
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
2answers
1k 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} ...
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
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 ...
7
votes
2answers
279 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
110 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
170 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
650 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
189 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
493 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
18k 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 ...
7
votes
2answers
267 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
1answer
3k 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
2answers
930 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; ...
7
votes
1answer
3k 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 ...
7
votes
1answer
942 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
2answers
13k 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 ...
7
votes
1answer
68 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
234 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
391 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
227 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
158 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
246 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
674 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
368 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
3k 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
400 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
327 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
100 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
167 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
491 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
986 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 ...