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

3
votes
1answer
96 views

IEEEeqnarray page breaks

I am using IEEEeqnarray and have an equation of many lines. LaTeX insists on placing this equation on a new page as there is not enough space remaining at the bottom of the current page for it to fit. ...
3
votes
1answer
292 views

longtable(tabu) with multirow and page breaks

I'm trying to place a bunch of images into the multirow within longtabu. But it looks messy if row is splitted by page break. The same problem with long text in multirow. Neither image nor text are ...
2
votes
2answers
96 views

Three minipages side by side but over several pages

Im searching for a way to typeset the following scenario: With three minipages this works fine: \documentclass{minimal} \usepackage{blindtext} \begin{document} \begin{minipage}[t]{0.1\textwidth} ...
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 ...
3
votes
1answer
740 views

Removing extra page before and after \tableofcontents

My main file generate extra page before \tableofcontents with header title "Table of contents". How can I remove this page? I am copying the main.tex file code for your reference. ...
1
vote
1answer
148 views

Does the package csvsimple support auto pagination?

I have a csv file that will probably take two pages, and doing \csvautotabular{Foo.csv} just makes my table run off the page. I checked the documentation but did not see anything about pagination of ...
3
votes
1answer
142 views

Included PDF as first page creates empty page before it

For my thesis I have to use a specific first page, which is only available as Word. I filled it and saved it as PDF and included it with my thesis with ...
2
votes
1answer
111 views

How to make longtable occupy its own standalone pages?

There is some text and now I want to insert some pages containing a longtable. How can I achieve this goal? To state my question clearly, I want (Main text A) -----------page break---------- ...
4
votes
1answer
65 views

Center longtable parts vertically on page

I am using \longtable to split tables into two parts which are displayed on two pages in a double page layout. I do not let longtable break the table, but instead use \newpage on a line where it makes ...
4
votes
2answers
66 views

Insert newline if this line is the last one before a new page

I have this simple Idea: I want to have LaTeX keep count of the number of text-parts (which already works fine): \newcommand{\newpart}{ \bigskip \begin{center} ...
3
votes
0answers
151 views

Avoid page break after last line in lstlisting [duplicate]

I have a listing as follows: \lstdefinestyle{yamlCode} { numbers=left, language=Yaml, backgroundcolor={\color{lightgray!40}}, breaklines=true, frame=single, columns=fixed } ...
5
votes
1answer
312 views

Conditional column break in ConTeXt

Background Trying to determine whether a column break must be inserted on a two-column page. There are multiple sections on the page. Before the last section on the page, I want to insert a column ...
9
votes
1answer
183 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 ...
2
votes
1answer
63 views

TeX4ht - prevent line breaking in HTML?

By default, TeX4ht breaks long lines of text in the input into shorter lines in the output HTML file. Is there any way to suppress these extra line breaks? (Note that I am trying to avoid extra line ...
9
votes
1answer
279 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 ...
4
votes
1answer
546 views

The titlepage option and the table of contents in KOMA-Script

The KOMA-Script document classes provide the titlepage option which when set to true typesets the title at its own page and otherwise allows for content to immediately follow the title on the same ...
1
vote
1answer
84 views

What is the proper way to ensure/avoid non-break with item and subitem?

This is a rather basic question, but I wanted to know what the proper bracketing is or options to protect page breaks between items in 'itemize'. That is, items can be broken across pages but not ...
3
votes
2answers
146 views

Disable or heavily penalise pagebreaking at a specified place

Is there a way in LaTeX to disable (or heavily penalise) pagebreaking at a specified place? Here's an example: \documentclass[]{minimal} \usepackage[a6paper]{geometry} % demonstration use only ...
6
votes
2answers
147 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 ...
4
votes
1answer
244 views

Captioning an mdframed box without making unbreakable

I would like to a have a caption below my mdframed box (outside the border if possible) which sometimes span across multiple pages. I managed to create a caption several ways but the pagebreaks are ...
2
votes
1answer
155 views

parameter description with long descriptions and long lists — possibility of page break?

I have a series of equations with following parameter description. Some of those descriptions are relatively long, meaning that I nead a line break. I use so far table, and to accomodate the long ...
1
vote
0answers
97 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 ...
10
votes
1answer
369 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 ...
6
votes
2answers
813 views

Page break after \maketitle

Hi I have some problem again with my first page, this is my code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} \title{balalla} \author{someone} \begin{document} ...
6
votes
2answers
453 views

Elsarticle: pagebreak before abstract

I am using the elsarticle template and according to the preparation rules the Abstract should be presented in page 2. Yet, the newpage is ignored. Any suggestion? Note that the Abstract is part of ...
2
votes
0answers
67 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
1answer
148 views

How to avoid widows and orphans in ToC?

I want the chapter's author name being shown in the ToC. So I have modified the chapter to add the author there and use it in the page header as follows: \documentclass[10pt,twoside]{memoir} ...
8
votes
1answer
181 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 ...
1
vote
1answer
211 views

Using lstlistings in two columns

My goal is to display source code (awk, Python, R and SAS) and text (their output) side-by-side. Both are loaded from external files, and can be pretty long sometimes (pagebreaking is inevitable), the ...
6
votes
1answer
277 views

Typesetting long poetry side by side across multiple pages

I've been trying to typeset a long poem (The Lady of Shalott) and putting the translated text besides it, as it is shown in this question: How to typeset two verse environments side by side However, ...
5
votes
1answer
99 views

Why does imakeidx + nonewpage fail to write an idx file?

Example: \documentclass{article} \usepackage[nonewpage]{imakeidx} \makeindex \begin{document} stuff\index{test} \printindex \end{document} When I run lualatex on this file, I see among the ...
2
votes
1answer
50 views

Why does amsrefs do a pagebreak after the header? [duplicate]

I am using the document class amsbook and generate the amsrefs bibliography by \begin{bibdiv} \begin{biblist} \include{bibcode} \end{biblist} \end{bibdiv} Now, there is a page that only ...
4
votes
1answer
306 views

ConTeXt: Wrapped text misbehaves at page breaks

On this site, a solution for text wrapping based on descriptions in Pandoc-generated ConTeXt documents was previously formulated. Although satisfactory for a one-page minimum working example, the then ...
3
votes
1answer
73 views

Adding continuation pages for overflowing sections

Suppose I have a collection of sections (each starting after a \newpage) such that the total content of some of the sections is more than one page. What I want to do is to get LaTeX to recognize this ...
4
votes
1answer
160 views

ConTeXt: How can I prevent a block of text from being split over a page break?

At the end of below minimum working example there is a funny \startdelimitedtext[endtext] which should be printed at the bottom of the last page without being split over a page break. How do I render ...
4
votes
1answer
469 views

Widow penalty not working

It seems my Widowpenalty is not working, as nothing changes, even with a value of 10000. Is there some contradictory commands anywhere which may cause this problem? This is what I have ...
5
votes
1answer
705 views

How to equalize the two columns in the last page INSIDE the IEEEbiography enviroment

I'd like to make the two columns of the last page of equal length but starting the new column INSIDE the IEEEbiography environment. I have four authors in the last page, the second one has a long ...
6
votes
2answers
1k views

Adding page breaks to pandoc latex template when converting markdown

Perhaps I'm missing something, but is there a way to either (a) ensure that pandoc places pagebreaks before level 1 and level 2 headers in markdown (#,##), or (b) hide \newpage from other markdown ...
4
votes
1answer
729 views

How to set the same slide number for all slides in the `allowframebreaks` group?

I have [framebreaks] frames in a Beamer presentation. I want to have all generated slides there to have the same slide nubmber, e.g., if I have a listing or some text that spans across two or more ...
5
votes
1answer
3k views

Remove pagebreak after a chapter (Only for one chapter!)

I am using the report style. I have a conclusion chapter and an acknowledgement chapter. I want to bind them together as they are both very short. I want to remove the Pagebreak after conclusion but ...
6
votes
1answer
122 views

Re-displaying section headings after page-breaks (with titlesec)

This is a follow up question to Re-displaying section headings after page-breaks. The top answer by Werner works, but not when the package titlesec is loaded. Is another solution possible which does ...
4
votes
1answer
88 views

Can I automatically split an ocg environment over page breaks

I want to display ocgs in a pdf and use the ocgx package to achieve this. Sometimes the content I have in the environment is so long it needs a page break. This is incompatible with the ocg system and ...
1
vote
0answers
76 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] ...
5
votes
2answers
126 views

“Scene breaks” — Blank lines that are nonblank at the top/bottom of a page

In many novels, a scene break is typeset as a blank line between paragraphs, except when that line would be the first or last on a page (and thus difficult to distinguish from the top/bottom margin), ...
5
votes
2answers
451 views

Page break after every section

The skeleton of my document is: \documentclass[11pt]{article} \usepackage{amsmath,textcomp,amssymb,geometry,graphicx} \begin{document} \maketitle \section*{1.} \begin{itemize} \item[(a)] ...
1
vote
1answer
166 views

Prevent page break without removing vertical space

I have a single sentence paragraph that introduces a list, and LaTeX is trying to insert a page break between the paragraph and its list, which I find unacceptable. I can prevent that page break with ...
2
votes
1answer
78 views

Allow page break in reference list

I am using the elsart-num bibliography style in an article document class. I find that my references overflow the page (only half of the citations show up). Any clues as to what I might be missing ...
6
votes
1answer
204 views

How to circumvent a late \pagetotal reset to 0pt?

Below example demonstrates at the beginning of each paragraph how \pagetotal is not always reset to 0pt at the beginning of the page. This appears to interfere with my attempt to automatically clear a ...
1
vote
1answer
604 views

longtable does not break

I am using a longtable environment to put some graph images in (perfectly works in all the other figures with tabular environments that i have produced already) However, when in comes to the ...
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 ...