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

6
votes
2answers
117 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 ...
5
votes
1answer
73 views

Find point of page break in an external document

I am creating multiple versions of a document from a single LaTeX source. Specifically, I have a series of lessons that have an instructor version (with notes and answers) and a plain student version. ...
2
votes
1answer
63 views

Prevent page from overflowing

Occasionally document overflows into the next page by few words or line. Though this can be adjusted manually by changing a font size or spacing, can it be automatically done? By automatic, I mean if ...
6
votes
0answers
29 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 ...
6
votes
0answers
172 views

bigfoot, paragraph-style footnotes, and premature page breaks

When using the bigfoot package and its paragraph-style footnotes, sometimes page breaks are inserted in the main text although there's room for another line. I've nailed down the problem in the ...
4
votes
0answers
82 views

Using a package only for certain tables

I am using the tabularx environment since it the X component of the columns is very useful and necessary for the tables I want to produce. However, a single one of my tables is longer that a page, and ...
4
votes
0answers
79 views

longtable package: Stretch height of last row on page

Consider the following code \documentclass[a4paper]{article} \usepackage{longtable} \usepackage{lipsum} \begin{document} \begin{longtable}{|p{5cm}|} \hline \lipsum[5] \\\hline ...
4
votes
0answers
46 views

Modify bigfoot rules for footnote page-breaks

I use the bigfoot package and I would like to reset preferences (penalties?) for footnote page breaks exactly as they are in the basic LaTeX default. I noticed that bigfoot, while allowing for nested ...
3
votes
0answers
27 views

Does \\* within footnotes have any effect?

One is taught that \\* is an alternative to the line-breaking \\ that tries (often unsuccessfully) to inhibit a page break. Normally \\* would be used in ordinary ("body") text. (And I hereby ...
3
votes
0answers
55 views

Mdframed: negative top margin with page break skips a page

I am using the development version (1.9d) of the mdframed package to customize the proof environment in the following way. I wish that a line runs down from the word "Proof." and that the text of the ...
3
votes
0answers
103 views

Creating flashcards with LaTeX

As the current semester is almost over and my lecturenotes-typesetting project draws to a close, I start learning the definitions with flashcards. I've created the flashcards automatically with a ...
3
votes
0answers
29 views

Arrange subfigure according to the text

I have a little issue. I have a figure made by 5 subifgures. They fill perfectly a page. The problem is that, when I have some lines of text before the image, the figure goes to the next page without ...
3
votes
0answers
157 views

Provide an example of how to detect when a page break is about to occur

I have a long text and using supertabular package. While I know that the package and LaTeX itself calculate and determine when to have a page break, would it possible to know when the page break is ...
2
votes
0answers
37 views

penalize page breaks in \lstlistings

I have a document with some rather lengthy \lstlisting's (source code snippets). It looks really bad if there is a page break within a listing/snippet. Thus I tried to avoid page breaks in listings by ...
2
votes
0answers
57 views

long abstract not continuing to next page in ERDC style

I am trying out a report format with the ERDC style, but using pdflatex, the abstract is limited to 1 page - the text just disappears off the bottom of the page and won't continue. I've looked through ...
2
votes
0answers
91 views

split longtable over even and odd pages (2)

I am a first-time user of LaTeX, trying to typeset my thesis. My problem is that some of my tables are large and do not fit on a single page; both in length (many rows) but some also in width (many ...
2
votes
0answers
30 views

Repeating top-level index entries on the next column (done right)

Yes, I want exactly the same thing as in this question. However, I'm trying to get rid of the following three issues with repeatindex/afterpage: afterpage causes loathsome small vertical space after ...
2
votes
0answers
63 views

Longtabu table broken by another float table

I have come across a problem with using longtabu together with tables created in the table environment which makes them float. When a long table is broken across two pages with the longtabu ...
2
votes
0answers
264 views

Blank page with page number after list of figures

I am getting a blank page after list of figures after compiling my TeX code. When I use \clearpage command, the page is removed but it reduces the total number of pages in my entire document. I am ...
2
votes
0answers
141 views

Ensure float appears directly after `\afterpage` and `landscape`

I have a large (full page) landscape figure that I would like to appear on the page opposite to a large (full page) portrait figure. The landscape figure is generated like so: \afterpage{ ...
1
vote
0answers
48 views

TeX capacity exceeds, when adding a single line [input stack size]

I get a strange error which unfortunately seems to be impossible make into a MWE – so I know we all prefer answers with compilable code, but maybe some one can help me sole it without … This is how ...
1
vote
0answers
36 views

\afterpage not called after page break

In this example \documentclass{article} \usepackage[a6paper,landscape,margin=1cm,bottom=2cm]{geometry} \usepackage[english]{babel} \usepackage{blindtext} \usepackage{afterpage,refcount,lastpage} ...
1
vote
0answers
55 views

\parskip setting effect on page break?

What is the effect of the \parskip-setting on where LaTeX does the page break? I wonder why there is a page break before the paragraph-headline with my \parskip settings (unless I insert the ...
1
vote
0answers
64 views

IncludePDF with Landscape - No new page

I have a problem with \includepdf combined with landscape and now new page break I found some solutions to my problem but they didn't work. I came close with the following but it is still not what I ...
1
vote
0answers
49 views

How to avoid widows-orphans with mdframed?

I have a document with a lot of mdframed boxes ; which option can I set to avoid 'widow' lines at the end of the box (that is, avoid to have small parts of boxes on new pages)? ...
1
vote
0answers
203 views

latex figure (or table) in a new page

I'm curious what's the best way to get the table of figure to appear on the next page in your document. I've tried the \newpage command, which works but is a hassle as I basically need to declare it ...
1
vote
0answers
174 views

Splitting a 2-column very long table into various multiple columns across different pages

I have a 645-row table to be included in one article appendix. Such table has only two narrow columns where each row is composed of a Month-Year in the first cell and one date in the last cell of the ...
1
vote
0answers
81 views

How to avoid page break after \part entry in ToC with memoir

I am using the memoir class for a document with many chapters and parts. In the ToC sometimes there is a page break between the name of \part and the name of the next chapter. Table of Contents ...
1
vote
0answers
69 views

How to prevent page breaks from appearing at the point where a sub-itemized list begin in ConTeXt?

I have a lengthy document containing lots of itemized lists, in two levels. It is like this, but often much longer: \startitemize[r] \item This is a statement. \startitemize[n] ...
0
votes
0answers
26 views

How to remove the space between the context and the section?

\documentclass{article} \usepackage{fontspec} \usepackage{ulem} \setmainfont[BoldFont=黑体]{宋体} \makeatletter \renewcommand\subsubsection{\@startsection {subsubsection}{2}{1em}%name, level, indent ...
0
votes
0answers
14 views

Automatically applying wrapfig hotfix only when a section heading is the last thing on a page

I have the same problem as the user 'mrf' on Wrapfig and page breaks after section heading (see link for MWE and hotfix). Using wrapfig basically messes up the document flow such that section ...
0
votes
0answers
60 views

Breaking equation through pages

In a former post I learnt how to break an align equation by using the \allowdisplaybreaks command on the preamble. However, I found the package breqn, which is impressive! So far I've been unable to ...
0
votes
0answers
50 views

prevent page break while returning to twocolumn

I'm writing a IEEE conference paper. The format of paper is \documentclass[conference]{IEEEtran} For inserting a wide image i switched to one column using \onecolumn The image took half of my page. ...
0
votes
0answers
36 views

Overfull vbox - text paragraph not page breaking

I've got what seems to me to be a fairly simple article document. The issue is that the first page doesn't break onto the second (it seems until there's a new section or subsection). Whatever is there ...
0
votes
0answers
78 views

LaTeX is moving my section to a new page

I'm just wondering, why LaTeX always moves my section to a new page, even without using the new page command. This will look like the following, and does only happen for this particular section Do ...
0
votes
0answers
66 views

How to undo the feasible breakpoints of `lstlisting`?

Is there a way to prohibit pagebreaking at the beginning/end of an lstlisting environment? I'm trying to keep together the following two pairs of lines: the first line of lstlisting and the line ...
0
votes
0answers
76 views

Unexpected page breaks with parallel package

I am trying to use the package parallel to typeset some text in two languages. The text in language A should appear on even pages, the text in language B on odd pages. I typeset ...
0
votes
0answers
78 views

nopagebreak between rule and custom theorem env

I'm making a custom theorem environment. Here's a minimal example of my problem, with some filler text borrowed from the GPL: \documentclass{scrbook} \usepackage[dvipsnames]{xcolor} ...
0
votes
0answers
68 views

continued ctable: footnotes only at end of table OR only items referenced on respective page

The ctable package enables nice typesetting of footnotes in tables. However, I have very long and wide tables which I set with the sideways option and split them up so that each subset of rows fits in ...