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,209
questions
0
votes
0
answers
26
views
My new page command doesn't work after table
After my table i put an new page command. But in the pdf format I can see that this doesn't happen. The command makes that the table on a different page stands with the section 'Stedelijke afwatering'....
6
votes
2
answers
296
views
How to draw a grid of a certain height which is breakable
I am writing a set of lecture notes for which there should be two versions: one for me with all of the text, and one for the students with certain sections replaced by a grid for them to make their ...
1
vote
0
answers
17
views
Expex \vskip before example does not disappear at a page break
I have a book document with \flushbottom. I use expex for linguistic examples. When an example is the first item on a page, the previous page ends with some spurious whitespace, as can be seen in the ...
0
votes
0
answers
33
views
tcolorbox: manual page break
I have some nested tcolorboxes that I would like to break. To achieve this I try to reproduce the 'faked freak' on page 424 of the tcolorbox manual, but without success. Here is a MWE with a simple ...
1
vote
1
answer
34
views
Page break in the middle of Biblatex source item
I have the problem that Biblatex puts a page break in the middle of a reference of the bibliography.
I have already searched and all offered solutions like setting the interlinepenalty to the maximum ...
5
votes
1
answer
106
views
Access exact page break via lualatex
I have a journal layout where the first page (with the article title) has an odd 1.5 column layout. The first column which holds the meta data is narrower than the right column with the first few ...
-2
votes
0
answers
38
views
Why does minted struggle so much with line breaks and page breaks, and not listings?
I have been trying both listings and minted to have a proper coloring of my code files in my document. The result spans over multiple page.
I like to have at least a really light background just so ...
0
votes
1
answer
19
views
Paracol break corresponding columns at pagebreak
In general paracol respect synchronization between two corresponding columns also when it reach bottom page. But sometimes, it occur an absolute ugly orphan (and also widow) when a left side stay in ...
0
votes
0
answers
25
views
I need to make a break page inside the abstract, because the result it show it like the image (latex - elsarticle)
I don´t know why elsarticle doesn't make page breaks in frontmatter automatically when it is necessary. Also, thanks to the this, firspage's header and footer don´t appear. Description: I tried used /...
0
votes
0
answers
41
views
How can I split the algorithm into two pages?
How can I have the algorithm not break in the next page and rather split this into two pages?
\usepackage[ruled,german,linesnumbered]{algorithm2e} % Pseudocode
\newcommand{\SkipBeforeAndAfter}{\vspace{...
0
votes
1
answer
22
views
Only one row in a multipage ltablex
I use a long table which goes over multiple pages. In some situations, only one row is on a separate page, but it should be fit on the page before.
Here is the MWE:
\documentclass{scrreprt}
\...
1
vote
0
answers
20
views
Condition Based on Page Breaking
I am working on some software to automatically format documents to comply with strict court rules. Under these rules, it sometimes matters whether a given piece of text appears on the front cover or ...
2
votes
0
answers
67
views
Is it bad typesetting practice to split boxes over two pages?
I can't decide what I prefer - having empty space at the end of a page or a split box.
For example:
Should I be aiming to make sure the page is full with no need to break boxes? Like, I can add more ...
0
votes
0
answers
21
views
Page breaking boxed equations into two pages
I have a very long series of equations that I want to align and emphasize by boxing them. The problem is that so many long equations often need to be broken into two pages, otherwise I get lots of ...
0
votes
0
answers
25
views
mdframed and spurious page breaks
I don't know why but mdframed sometimes introduce some page breaks for no apparent reason. Is there a way to prevent mdframed from inserting these page breaks ? I cannot do a minimal working example, ...
1
vote
1
answer
45
views
Start a new page in two-column mode without \clearpage
I have the challenge of needing to start a clean page in a two-column (Xe)LaTeX document, yet without the fush semantics of \clearpage.
Consider the following example, which is the closest I got to ...
0
votes
1
answer
54
views
tcolorbox wrong newtcolorbox formatting
I'm struggling with the problem of proper wrapping of the environment which I am use in twocolumn page layout - with book class scrbook. I am using the tcolorbox package to define fancy boxes. As you ...
3
votes
1
answer
49
views
tcolorbox: Dynamic width and breakable
I'm trying to implement a kind of chat inside my document using tcolorbox. But I either can set the width dynamically or allow a pagebreak inside a "chat-message".
\documentclass[11pt, ...
0
votes
0
answers
32
views
Keep Title and Text on First Page in Latex with Custom '/maketitle'
I'm trying to get a custom title block, and tried to rework 'maketitle' and I think I did something wrong. How do I get the body text to start on the same page as the title? (and any other obvious ...
1
vote
1
answer
53
views
LaTeX calendar: how to force each month to be on a separate page
I have this simple code:
\documentclass[12pt]{article}
\usepackage{tikz}
\usetikzlibrary{calendar}
\begin{document}
\begin{tikzpicture}
\calendar
[
dates=2023-07-01 to 2023-09-last,
week ...
2
votes
1
answer
45
views
Dynamically increasing paper height, rather than breaking page
Package geometry allows specification of paper height, e.g., \geometry{paperheight=782mm},
What about dynamically adjusting paper height — How to dynamically increase paper height, rather than ...
0
votes
0
answers
31
views
tcolorbox[breakable] does not break in overleaf
The following code produces three levels of nested boxes in Overleaf. Since each can have a lot of text, I need them to break between multiple pages as needed; but only some do, while others overflow ...
0
votes
0
answers
16
views
Let \section{} command not pagebreak [duplicate]
EDIT: Fixed by knowing the difference between \include and \input!
I'm writing a paper but can only have 15 pages. A way for me to solve my problem of having too much text is letting the sections in ...
0
votes
0
answers
17
views
Change margins for part of text using twosided memoir
I have a twosided document in memoir, where I want a part of the text to be centered with even margins.
As suggested in other questions, I can do this using either changemargin, adjustwith or ...
2
votes
0
answers
27
views
Macro that is not executed at the start or the end of the page [duplicate]
I need to define a macro (let's call it \separator) that it is not executed if it is the first or the last to be typeset on the page.
Consider the following mwe:
\documentclass[a5paper,12pt]{article}
...
1
vote
1
answer
45
views
Page break in threeparttable with subtables
My Table includes multiple subtables along with tablenotes at the end and they spend in two pages. I'm try to do page break and I refer to this post, but it was a page break for footnotes only. Here ...
0
votes
1
answer
23
views
Automatic columnbreak in multicol env if section content is short
in my article template a part of the text is set in twocolumn mode. I'm using multicol package with the starred environment (to fill up one column after antoher).
The twocolumn article part consists ...
0
votes
1
answer
74
views
Page breaks still occur in samepage
I cannot find any documentation at all on the samepage environment (aside from a cryptic comment on p229 of the LaTeX book that "The \samepage command still works, but is now of little use", ...
0
votes
0
answers
42
views
Footnotetext jumps back to Forepage for the second paragraph
I feel I'm lost: For days, if not weeks I'm searching for the cause of a mistake...
I have a document of more than 1000 pages making extensive use of my own macros. Everything works well, till I reach ...
3
votes
1
answer
47
views
Ensure that page break does not intervene between a section heading and a list
Is there an easy way to ensure that a page break will not intervene between a \section macro (or another similar macro) and an \itemize environment (or another similar environment)?
I have used ...
0
votes
1
answer
42
views
\nopagebreak doesn't work between two chapters
All chapters begin a new page by default. I want to remove this break between two short chapters. By the nopagebreak doesn't work. What can be the cause? Is there another way to do that?
I don't give ...
0
votes
0
answers
32
views
In lstlisting, how to forbid the upper/lower frame bars on another page?
Running pdflatex on
\documentclass{article}
\usepackage{listings}
\begin{document}
\vspace*{121ex}% writing 122ex instead of 121ex leads to breaking just after the upper bar.
\begin{lstlisting}[frame=...
1
vote
0
answers
37
views
Vertical space that is ignored at bottom of page or column
How can I get a vertical space that behaves at the end of a page or column like \vspace{} does at the beginning of a page, that is, is ignored. And how would I get a vertical space that combines the ...
0
votes
0
answers
20
views
How to allow page break in listliketab (with description style)?
I am getting struggled with missing page breaks in long texts in listliketab.
This is my mwe:
% !TeX program = lualatex
\documentclass[
ngerman
]{scrartcl}
\RequirePackage{luatex85}
\usepackage{babel}
...
1
vote
1
answer
42
views
thmtools drops font coloring at page break when paired with mdframed
Right now, I use thmtools with mdframed to create theorem environments with lines down the side. The difficulty is that I also want to be able to change the color of the text in these theorem ...
0
votes
2
answers
66
views
Tcolorbox unbroken box prevents next breakable box from breaking
I think I've stumbled upon a tcolorbox bug: whenever there are two consecutive breakable boxes, neither can fit unbroken in the current page, and the content of the first is unbreakable (e.g. an image)...
0
votes
1
answer
49
views
Why does only one chapter randomly start its content on the next page? [closed]
I'm writing a book using the book document class and, for whatever reason, one of my chapters has its contents start on the next page rather than the current page. I have no idea why this is; I looked ...
0
votes
0
answers
23
views
Displaying image alone at the end of section
I'm working on a project, and I'm having trouble right at this point:
\section{Chapter3}
Lorem ipsum dolor sit amet, consectetur adipiscing elit...
\begin{figure}
...
\end{figure}
...
0
votes
0
answers
36
views
How to add a page break or newpage in proof environment
My code is very unclear, but to summarise:
\documentclass{article}
\usepackage{graphicx} % Required for inserting images
\usepackage[utf8]{inputenc}
\usepackage[fleqn]{amsmath}
\usepackage{amssymb,...
0
votes
1
answer
48
views
Is there a way to use \nopagebreak globally, between two or more known words?
I'm looking for a way to define a couple of well-known word pairs that should never be split between pages, even if that means leaving a slightly awkward blank space at the end of the paragraph. I ...
0
votes
1
answer
42
views
Having issues inserting an A1 size, landscape PDF page into LaTeX document [duplicate]
I would like to insert an A1 sized, landscape oriented, PDF page into a LaTeX document that besides this page only has regular A4-sized portrait pages. I'm currently using the pdfpages package, but ...
0
votes
0
answers
28
views
Prevent page break within \item of an enumerate in LyX without redefining \item
(For background and current purpose of this question, please see here: Prevent page break within \item of an enumerate).
I have an enumerate of questions. Each of those questions has some opening text ...
0
votes
1
answer
50
views
Multicols & Enumitem: Can't force new page where needed
The code below compiles properly with one issue:
The text instruction "Simplify" should be forced to the following page. I have tried \pagebreak, \clearpage, \newpage and \switchcolumn*[\...
0
votes
0
answers
19
views
Supertabular breaks page too early
I am using supertabular and am having two issues. Firstly, it starts the table on a new column (except for the caption which is weird), and secondly, it breaks too early on the page. Does anyone have ...
1
vote
5
answers
255
views
Prevent page break within \item of an enumerate
I have an enumerate of questions. Each of those questions has some opening text and then a nested enumerate. I give an example below that results in a page-break in the middle of the second question ...
0
votes
0
answers
39
views
Exercise environment to stretch over following page: doesn't work as expected
I would like the exercise environment to stretch over following page, this is what I'm getting as shown the picture at bottom:
The blue ebox environment doesn't apply to the continuance
environment;
...
2
votes
0
answers
49
views
Breaking tables both vertically and horizontally
I know that one can use longtable for page-breaking vertically long tables. I have also seen Column-wise break of extra wide tables, which shows how to break a wide table horizontally.
How do I ...
0
votes
0
answers
54
views
Keep LaTeX longtable from starting on a new page?
I have a longtable in a section on my CV which keeps starting on a new page, resulting in a large white space after the section heading. I'd prefer the table to "break" part way through and ...
0
votes
0
answers
22
views
pagetotal does not reset after page break [duplicate]
Consider this example
\documentclass[12pt]{article}
\usepackage{lipsum}
\begin{document}
\section{1}
\lipsum[1-4]
\the\pagetotal
\end{document}
The last page shows
The ...
1
vote
0
answers
57
views
How to discourage a page break without completely prohibiting it in a block of formulas?
Feeding
\documentclass{article}
\predisplaypenalty=0%%% that's what our class svmono.cls from a nonminimal example (not given here) does.
\usepackage[helvratio=.9]{newtxtext}
\usepackage[slantedGreek,...