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.

2
votes
1answer
40 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
50 views

TOC continues to next page with one line

Consider this example: \documentclass{report} %% \clubpenalty=10000 ...
1
vote
2answers
39 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
23 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
19 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
19 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
37 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
27 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
73 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
20 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
44 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
50 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
30 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
36 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
161 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
54 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
313 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
28 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
22 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
20 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
32 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
131 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
50 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
45 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 ...
3
votes
1answer
52 views

Extend breakable tcolorbox over footer on page break

I've defined a tcolorboxenvironment thusly: \newtcolorbox{cajita}[1]{ boxrule=2pt, breakable, enhanced, arc=3mm, colback=Orange!15, colframe=Orange!70, colbacktitle=Orange!35, coltitle=...
1
vote
1answer
44 views

Spacing Error with mdframed Over Page Break

I'm having a bit of trouble with the mdframed environment. I'm using it to enclose Examples in my text in a light gray background box (and control spacing around the text). When the frame splits over ...
4
votes
1answer
100 views

prevent page break inside a sentence

I am asked to not break sentences so that they are on two pages. Is there a way to globally and automatically prevent sentences to be split into two pages? It should look like it would be a new ...
1
vote
1answer
31 views

Spacing issue on chapter page with page break due to section

I'm using the titlesec package to redefine the chapter format, and I noticed a spacing issue when adding a section which causes a page break. Essentially, I want the title displayed between two ...
0
votes
0answers
24 views

Perform a page break within \cvlistitem in moderncv template [duplicate]

I am using following template \cvlistitem{ \begin{itemize} \item 1 \item 2 \item 3 \item 4 \item 5 \item 6 \end{itemize}} Currently, if it is not able to fit in same-page, it take whole ...
1
vote
3answers
97 views

Framed boxed text with “continued” text on page break

I need to write a boxed text as like as: Currently, I am using \documentclass{book} \usepackage{framed} \begin{document} \begin{framed} \section{Box 15...} ... \end{framed} \end{document} Please ...
0
votes
1answer
41 views

How to display horizontally aligned images with caption?

I'm looking for an advice how to display high amount of images horizontally aligned with caption: there are hundreds or even thousands images in the gallery dimensions of images are unknown, their ...
1
vote
1answer
62 views

LaTeX: \figure + \includegraphics unwanted page breaks and wrong spacing between caption

I'm implementing gallery of scanned documents and I have issues with using \figure + \includegraphics, see the screenshot below: 1) [violet comment] caption of current image and following image are (...
1
vote
0answers
35 views

LaTeX - invalid page break for first \includegraphics in chapter

I've created chapter containing only images with caption. All images shall have fixed width (\textwidth), height is always unknown (image shall be correctly scaled). From second image everything ...
1
vote
1answer
44 views

Miktex/XeLaTeX - wrong images wrapping at the page breaks (wrapfigure)

I've asked already this question in other thread, but because I've opened it for two issues, only the other was discussed/answered. So I've added new thread only for this topics with additional ...
2
votes
1answer
106 views

Miktex/XeLaTeX - non-working wrapped images (wrapfigure)

I've searched hundereds forums of the same question, but without any working solution. I'd like to insert images to my document to the right side of the page and my text shall wrap them from the left....
0
votes
0answers
15 views

align followed by pagebreak causes align in the middle of the page [duplicate]

MWE \documentclass[12pt,a4paper,twoside]{article} \usepackage[a4paper,tmargin=2cm,bmargin=2cm,lmargin=3cm,rmargin=2cm,twoside]{geometry} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage[...
15
votes
1answer
480 views

A simpler explanation of \clearpage

I have read the manual, so am not trolling here. I REALLY don't understand the use of \clearpage. Especially, its difference with \newpage. A common explanation is that it "flushes" all pending floats ...
0
votes
1answer
59 views

How to prevent pagebreak between section/subsection title

How to prevent pagebreaks between section/subsection titles and the multicolumn content of the document when using the paracol environment like this... \renewcommand{\deutschertitel}{Dezimalsystem} \...
0
votes
1answer
102 views

ConTeXt: advanced enumeration item setup

This question is a refinement of ConTeXt: avoid enumeration items across pages. Given an itemgroup, each \item contains one or more paragraphs or itemgroups, possibly mixed. I only want pagebreaks ...
5
votes
1answer
107 views

ConTeXt: avoid enumeration items across pages

If each \item is one or more paragraphs, sometimes ConTeXt will break these paragraphs across pages. In this specific case I would rather ConTeXt break between each item if a single paragraph or ...
2
votes
0answers
35 views

Shade text background without affecting mdframeds or tcolorboxes

I have some text with tcolorboxes interspersed with normal paragraphs. Everything looks lovely so far, even when the tcolorboxes have to break across pages (using the breakable option). However, I ...
0
votes
1answer
58 views

Multiple page table with specific size font and centred columns

I want to make a "Multiple page table with specific size font and centered columns" what I have tried until now is with longtabu, but when I set the size of the font it changes all the fonts for the ...
0
votes
1answer
28 views

Customizing Part in TOC

I am using book class and I want to create a part in TOC in the following way: I want the part centred in the middle of the page and the chapters on the other page. Here is my code: \documentclass[...
2
votes
1answer
77 views

Making the left-hand side of a double spread always print the same within part of a document

I wish to print the actual running text* of part of a document only on the right-hand side pages of double spreads, while the left-hand side repeats the same every time because the reader will want to ...