Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [page-breaking]

{page-breaking} is about how (La)TeX breaks pages (and, in multi-column documents, columns) and how page/column breaking can be influenced.

0
votes
0answers
30 views

Allow page break for many aligned equations (ConTeXt) [duplicate]

When there are many aligned equations so that they cannot fit the rest of the current page, page break is not allowed, and they always start at a new page, giving a lot of blank lines. How to allow ...
2
votes
1answer
23 views

Longtable has two captions/heads on the next page

Here is a demo: \documentclass[12pt]{article} \usepackage[onehalfspacing]{setspace} \usepackage{longtable,booktabs} \setlength\LTpre{5em} \setlength\LTpost{5em} \usepackage{caption} \...
1
vote
0answers
16 views

Multiple newpages — after several large tables

How to effectively apply multiple \newpage --- after several large tables \newpage \newpage \newpage \newpage In one of my sections (say Section 1), there are many large Tables but some texts. ...
0
votes
3answers
30 views

Prevent pagebreaks before and after part

I'm trying to create a titlepage that's linked in the table of contents (i.e. clicking the link should send me onto the titlepage). It should look like this: \documentclass[oneside]{scrbook} \...
0
votes
2answers
51 views

New Page problem

I'm new with latex and I've been having some issues when using an template not created for me. My issue is that in the document, everytime I declare a chapter and finish a section, it creates a new ...
1
vote
1answer
49 views

Allow footnote to appear on next page

This is sort of the opposite of this question. I have a document which is challenging to typeset because it has a lot of long footnotes. One particular page has a lot of ugly vertical space because it ...
0
votes
0answers
64 views

LaTeX equivalent of an output routine

I would like to collect material and when a page is full I'd like to put it into a box with some heading and other decorations. In Plain TeX I would use an output routine for this: \count0=1 \hsize=...
1
vote
0answers
53 views

Never break a page unless explicitly told so, expand the margins to fit the content, and have mixed margins in the same document

The first part of this question is basically this question: Absolutely, definitely, preventing page break Partially modified MWE from that answer, \documentclass{article} \usepackage{lipsum} \...
2
votes
1answer
25 views

Put element on new page if it doesn't fit on the rest of the current page [duplicate]

edit My google-fu is apparently sub-par, this has a simple solution found here: Section should automatically start new page if the whole section does not fit on current page I want to force each ...
1
vote
1answer
46 views

How can I configure latex to try to break at a sectioning command before it breaks a paragraph?

MWE \documentclass[paper=a4]{scrartcl} \usepackage{lipsum} \begin{document} \section{a} \lipsum[1-2] \section{b} \lipsum[3-4] \subsection{c} \lipsum[5] \end{document} The ...
2
votes
2answers
29 views

exam: How to globally make \textwidth-wide solutions spanning multiple pages?

Following-up this answer, I would like to make the solution span the whole text width regardless of the question level while continuing over multiple pages. \documentclass[answers]{exam} \usepackage{...
0
votes
2answers
24 views

begin penalty and label control with enumerate

Using a begin penalty (Avoid a break between a list and its introductory statement) works with enumerate How to format labels with the enumerate environment was discussed in format labels of ...
1
vote
1answer
24 views

How to make sections start on pages that are multiple of four?

I teach programming and one of the ways I use Latex is to take an entire class' worth of submitted programs and generate one large PDF document I can send to the printer. (With about a hundred ...
1
vote
1answer
28 views

Two columns with longtables created with xltabular

So I have this two column book which has long tables that span multiple pages. They work well, expect, of course, that long tables don't work with two column documents. I therefore have to resort to ...
1
vote
2answers
43 views

List broken by a float

Consider this example: \documentclass{report} \usepackage{lipsum} \usepackage{graphicx} \begin{document} \lipsum[1-4] \lipsum[5][1-10] Consider the following cases: \begin{figure}[htbp] \...
0
votes
0answers
21 views

Text before the table automatically moves to the previous page

I want to create an appendix at the end of my text. The problem is that the text in the appendix ("We present results") is moving to the previous page while the table remains in the same position. On ...
0
votes
2answers
33 views

pagebreak in \caption within a \begin{figure}-environment

I know there are a lot of questions like this everywhere, but i didn't find an answer to this: I have a figure with a lot of figures inside (a-e, build in MS powerpoint (not in latex)). Means my ...
0
votes
0answers
16 views

How to force roll over the content to next page for right side panel of page

I am using sample template of Merissa Mayer resume. How to configure right hand side page of screen shot so that the marked content should go to next page automatically.?
3
votes
1answer
27 views

provide nested numbered item after page break

I need to provide my students with an answer sheet to write down their answers. When there is a page break I would like the new page to show the question's full nested number, not just the deepest ...
0
votes
0answers
44 views

how to solve page numbering

I am writing my thesis via LaTeX and I have written list of abbreviation and it is 2 pages. I used page numbering \begin{termlist} and \end{termlist}. However, the second page of abbreviation ...
2
votes
1answer
49 views

URL over two pages causes nested errors

I tried to generate a MWE where I can reproduce my main problem. The major error says error: (pdf backend): 'endlink' ended up in different nesting level than 'startlink' ! ==> Fatal error ...
2
votes
4answers
62 views

TOC continues to next page with one line

Consider this example: \documentclass{report} %% \clubpenalty=10000 ...
1
vote
2answers
42 views

Pagination issues when using setspace

I have a document which was drafted using \baselinestretch to set the line spacing. In order to prevent extra spacing in footnotes, I'm trying to switch to the setspace package. Since the end ...
0
votes
1answer
37 views

Itemize - page break only after items

I'm trying to solve a problem. One solution might be to prevent a page break in an itemized list on an individual item. So, if I would have several items a page break can only occur after an item is ...
0
votes
0answers
20 views

Vertical space after the environment lost when the environment splits between two pages

I defined a personalized theorem environment, such that, there should be a vertical left bar aligned with the environment and the length of the vertical bar should be exactly as long as the text ...
0
votes
1answer
34 views

Avoid page break between paragraphs

This script: \documentclass{report} \usepackage{lipsum} \begin{document} \lipsum[1-5] Examples: \\\nopagebreak example 1\\ example 2\\ example 3 \end{document} unfortunately introduces an awkward ...
1
vote
1answer
41 views

Setting up Breaks in itemize Environment

I have multiple large itemize environments where a general ones looks like \subsection*{Page } \begin{itemize} \item \hfill \begin{tcolorbox} \blindtext \end{tcolorbox} ...
0
votes
1answer
28 views

Not start a new page with scanty number of words, lines [duplicate]

This script \documentclass{article} \usepackage{lipsum} \begin{document} \lipsum[1-5] \lipsum[6][1-2] \end{document} produces the output How can I avoid starting page 2 with such a scanty number ...
3
votes
1answer
84 views

Footnote on the wrong page (without floats involved)

I've a \footnote that appears in the wrong page. I've read that this may happen when floats are involved or when there are multiple footnotes on a single page. But in my case there's only one footnote....
1
vote
1answer
23 views

Suggesting page breaks doesn't seem to work

I'd like to suggest LaTeX pagebreaks, so that my page won't break right after a headline, but still not make the pagebreak mandatory, leading to blank half-pages in case my document changes. The ...
0
votes
1answer
48 views

Penalizing page break inside a sentence

Continuing prevent page break inside a sentence I would like to penalize page breaks within a sentence but allow the pagebreaks otherwise as usual. As opposed to the above, I am happy to edit the ...
0
votes
1answer
54 views

How to suppress page break before \twocolumn?

Problem: The command \twocolumn generates a page break in a LaTeX document that is specified as \documentclass[twocolumn]{report}. This specification of the documentclass can not be changed. Question:...
0
votes
0answers
20 views

how to setup minimum textlines before new page?

I have a 130 pages thesis, that has many chapters starting in the lower 5/6 of the page and having only 3-5 lines of text before it wraps to a new page. If I have to manual add \newpage below every ...
1
vote
1answer
38 views

Placing a figure in one-column within a two-column document [duplicate]

This is the code in which I have the texts in two-column mode, but I want the figure to be placed in one-column without a page-break \begin{figure}[ht] \onecolumn\includegraphics[width=\...
0
votes
1answer
21 views

Forcing Label on Same Page as Following Text

I am writing a list of answers to selected questions that will appear at the end of a textbook. Each section has a simple bold text label of the form 'Chapter 1 Part A' which is followed by the answer ...
1
vote
2answers
42 views

Simultaneous flexible vertical space with page breaks

Running into an issue I can't figure out. In essence, I have a page that has some text, possibly some equations, a couple graphics and maybe a table, all separated by flexible white-space. Sometimes ...
1
vote
1answer
36 views

Best way to avoid page break just after epigraph

What is the best way to avoid a page break just after a \epigraph command from epigraph package? I'm adding epigraphs after section titles. \documentclass{article} \usepackage[nopar]{lipsum} \...
4
votes
2answers
170 views

Page split between longtable caption and table

Consider this example: \documentclass{report} \usepackage{lipsum} \usepackage{longtable} \begin{document} \lipsum[1-4] another paragraph another paragraph another paragraph another paragraph ...
1
vote
1answer
55 views

Prevent glossary entries from separating letter headers and items at page breaks

Page breaks right after glossary letter header. I would like the header to go to the new page. Answers to already posted question of similar title did not help me. Here is my MWE: \documentclass[...
4
votes
3answers
339 views

Avoid page break between paragraphs with \medskip in between

Consider this texample \documentclass{report} \begin{document} Some text \medskip \textbf{Mini title} \medskip \nopagebreak Some more text \end{document} How can I avoid a page break between "Mini ...
0
votes
0answers
30 views

Nopagebreak problem

I have table and her caption, I need to have no page break, but function \nopagebreak isn’t working: \textbf{name}\nopagebreak \begin{flushleft} \begin{tabular}{|c|c|} ••• Why?
0
votes
0answers
23 views

Latex resume, Type setting problems, Just looks off

I'm not really sure how to anonymously post this question. I have a resume made with a template and it over runs the page and the cvevents don't break pages properly. I'm not sure what to do and I ...
0
votes
0answers
21 views

Partial compilation of part of a document without breaking the page

I'd like to avoid recompilation of unchanged sections of my documents. However, I don't want new sections to be on new pages. Suppose this is my document: I only want the second section to be ...
0
votes
0answers
38 views

Remove newpage before \printindex

I want to remove the new page before \printindex \phantomsection \renewcommand{\indexSectionCount}{\myeval{\SectionCount-1}} \renewcommand{\indexname}{B~Stichwortverzeichnis} \addcontentsline{toc}{...
0
votes
0answers
37 views

Making a tikzpicture a figure sends it to next page

I made a pie chart in my document. When it's not in a figure, everything is fine, the tikzpicture is between the two paragraphs I want. When I make it a figure, it goes to next page: \begin{figure}[!...
0
votes
0answers
8 views

Missing pagebreak between to section titles [duplicate]

If there is an "empty" section (i.e. two section titles after each other), page break is prevented, even if the second section title won't appear in the document. (Checked with book and article ...
2
votes
1answer
132 views

Placing the little orange square at the end of the Exercise environment from Legrand Book Orange template

I wrote the notes of one of my courses using the very nice Legrand book template, but I have a little problem with those little orange squares at the end of the exercises. When I write \begin{exercise}...
3
votes
1answer
55 views

Line break without page break using `poetry` package

The poetry package overrides \\*, which means that I can't use that to prevent page breaks in the middle of a stanza. Is there another way to create a line break while forbidding a page break at the ...
1
vote
0answers
50 views

How to get rid of widow in List of theorems

In my PhD thesis I have 31 definitions in my List of Definitions. The last definition does not fit on the page, and becomes a widow on the next page. How can I get one or more definitions to be moved ...
0
votes
0answers
46 views

Page length exceeded

I am writing a paper for a journal and by the time I try to build a pdf version, I realized the length of each page is shifted down. Here I attached a snapshot an here is a link to the Journal's latex ...