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

2
votes
2answers
34 views

How to make the minipages continue after each other in one page?

I am not sure how to make these two minipages to follow right after each other rather than showing in two different pages while still there's space in the first page: ...
28
votes
1answer
47k views

Make a table span multiple pages

I have a table that takes up a full page, but I want it to start on a page that already has some text and then continue onto the next page (i.e. it's ok if the table gets broken up and spans two ...
5
votes
1answer
248 views

Typesetting an infinite page

How would I go about typesetting a document which will end up being printed on a long continuous roll of paper. The paper is 21cm wide (a vertical A4 page width) and infinitely long. Obviously I ...
4
votes
1answer
19 views

Preventing page break at specific location

I am currently compiling a booklet of presentation abstracts. Each entry has a title (which I render as a \section*), an author, and the abstract text itself. For some of the entires, LaTeX decides ...
3
votes
1answer
33 views

Is there an alternative for samepage for a multicolumn environment?

In my document, I successfully use samepage to force content to be on the same page. I want to do the same in a 2-column document so that the heading and the text are in the same column. How can I ...
13
votes
3answers
522 views

How to ensure document total page numbers is a multiple of four?

I'm producing a document (book class) that will ultimately be produced using offset lithography. It's therefore useful to ensure the total number of pages is a multiple of four by adding as many blank ...
12
votes
2answers
5k views

Proofs in Beamer

I'm writing a presentation in Beamer, where I present proofs which are longer than one frame. How to make Beamer to break it automatically to another frame? If it is not possible how am I supposed to ...
8
votes
1answer
123 views

Pagebreaking colored boxes inside exercise

When I try to use mdframed box inside Exercise enviroment from package exercise, the page breaking does not work. It does work if I switch the order - if I use Exercise inside a box. I however need ...
8
votes
0answers
85 views

Question about exercise 23.3 in TeXbook

This is exercise 23.3: Explain how to change the output routine of plain TeX so that it will produce twice as many pages. The material that would ordinarily go on pages 1, 2, 3, etc., should go ...
1
vote
1answer
134 views

Beamer Presentation References slide can't allowframebreaks and have \frametitle

I am writing a Beamer presentation and my references are too long for one frame. So I tried to use [allowframebreaks], but then I get the TeX capacity exceeded error if I have a \frametitle. I can ...
5
votes
1answer
115 views

How can I synchronize page-breaking text across columns?

tl;dr: Like footnotes, but on the side (easy part). These notes must be on the same page as their reference points, so the "main text" needs to break whenever the notes break. I'm trying to produce ...
1
vote
1answer
39 views

\pagebreak affects top of next page

Why does a \pagebreak push the heading at the top of the next page down? To match other pages, I need to add \vspace*{-3\baselineskip} after the page break. \documentclass[a4paper]{article} ...
3
votes
1answer
74 views

Plain TeX: Wrong \folio for heading at top of page

I have the following chapter macro (uses code from Heiko Oberdiek): \def\ChaptTocEntry#1#2{% \line{\hbox to1em{\hfil\bf#1}\hskip1em#2\leaderfill\folio}} \def\ChaptWr#1{{% \let\folio\relax ...
10
votes
2answers
164 views

Preventing widows and orphans in book, keeping facing pages of same length

I have a document in the book class which has a number of widows and orhans when compiled to pdf. I tried to remove the widows and orphans by using the all option of the nowidow package. It seems to ...
6
votes
1answer
109 views

How to track a page change within an environment?

I'm trying to define an environment that can automatically detect when the material within it moves to a new page, reprint one of its arguments at the top of the new page, and change how it closes as ...
3
votes
1answer
67 views

page break issue with tcolorbox's height fixed for

When using the height fixed for=first and middle option on a tcolorbox, the page break behavior becomes awkward. Try uncommenting the identified line in the following MWE to see what happens. ...
4
votes
1answer
48 views

Prevent LaTeX from making pages longer or shorter (i.e. changing the text height)

When I try to prevent widows/orphans by increasing \widowpenaltyand clubpenalty, LaTeX usually decides to either make the page one line shorter (to prevent an orphan) or one line longer (to prevent a ...
3
votes
2answers
26 views

No page break when using hypertarget in custom environment

I am trying to create an environment that would automatically create a label for each instance based on a global counter. This is the model example of what I'm trying to do. \documentclass{article} ...
1
vote
1answer
36 views

Breakbox box placed on a new page instead of breaking the page

I made a list of serveral items that I'd like to be framed. That was no problem with \fbox{...}. Since the text is not longer than 1 page, it goes straight to the next page insteat of starting in the ...
1
vote
0answers
10 views

How to skip a page when a new paragraph has only one line available [duplicate]

Is there any way to automatically (i.e., without \newpage) make latex begin a new page when there's only one line left on a page? So, for instance, the 5th paragraph in the example below would start ...
1
vote
1answer
26 views

Paracol, tikzcd and needspace

I'd like to put a tikzcd diagram side by side with a text but, as we can see in the example below, sometimes diagram (or text) goes to the next page. Sorry about the very large file. Thank you in ...
0
votes
1answer
58 views

Footnotes on the page they belong to

Is there a way to force footnotes to stay on the page they belong? I have a document with only enumerate environment and each item of the enumerate has a footnote. Sometimes this footnote goes in the ...
0
votes
0answers
20 views

Redefine \cmidrule for longtable preventing page-break after \cmidrule

Is there a way to redefine the \cmidrule command in such a way that no page-break is allowed after \cmidrule in longtable? To be more specific: I use both the \midrule and the \cmidrule command from ...
3
votes
1answer
60 views

Using `\displaybreak` in `\split` environment

I want to use \displaybreak in \split environment. I tried to use it locally and just before the \begin{equation}...\begin{split} block, but they both didn't work. As far as I searched, there is no ...
0
votes
2answers
44 views

Keep the word Abstract in the same page as the actual abstract

I am writing a report and i am using a specific .cls file for the layout and fonts etc. The abstract is defined as follows: \newenvironment{abstract} { \btypeout{Abstract Page} \thispagestyle{empty} ...
1
vote
0answers
34 views

Longtable Duplicate Separator at Page Break

I have a longtable spreading over 2 pages. Unfortunately, since I decided to use the booktabs package, I get a duplicate line separator between the table header of the second page and the next table ...
1
vote
1answer
51 views

prevent page break a couple of lines after figure

I am writing a document which consists of the repeating format: text, figure, then a larger paragraph. How can I prevent a page break between both of the text and figure environments, whilst not ...
1
vote
1answer
44 views

Pad odd page to force chapter to start on even page

I understand the use of \@openrightfalse to force a chapter to start on an even page. When the previous chapter were to end on an even page, this would force an empty odd page. How do I change the ...
5
votes
2answers
617 views

Stop listings going over page breaks

I am using Pandoc to generate Tex from Markdown. It automatically generates listings when it comes across the appropriate Markdown (code indented four spaces). It then uses the listings package to ...
3
votes
0answers
70 views

Avoid pagebreak in mdframed environment

I created a document with two columns which contains almost exclusively mdframed environments. In general, splitting up the frames over the columns or a page is welcomed and works. However, situations ...
2
votes
2answers
41 views

Absolutely prevent pagebreak after section title

Okay I've searched but didn't find any existing solution. My question is how to absolutely forbid pagebreak immediately after section title. I tried: \makeatletter ...
2
votes
2answers
823 views

Code listing spanning multiple pages with captions at top

Is it possible to span a lstlisting environment or lstlistinginput on multiple pages, such that the caption is repeated on each page (the listing counter stays the same), as well as being able to ...
2
votes
0answers
70 views

Putting “continued…” at the bottom of the page and on the top of the next page in ConTeXt

I have a section of text that contains several paragraphs, enumerated lists and possibly small tables (3 or 4 rows maximum), and where this section of text crosses a page boundary I'd like to put ...
8
votes
1answer
404 views

How to generate a “<section> continued” heading after page-break?

This is a follow-up question of the answer to Re-displaying section headings after page-breaks As in the follow-up question, I would like to repeat the section heading after a page break, but ...
8
votes
2answers
113 views

Prevent pagebreak between minted and captionof

I know there are already many questions there covering that or at least similar topics. I've read this for example but can't get it figured out... At first here comes my MWE: ...
8
votes
2answers
140 views

Force pagebreak after every sentence/paragraph

Is there a way to force a pagebreak after every sentence or paragraph? This may seem like an odd thing to do, but for catching typos and just general editing I find it much easier to look at a ...
0
votes
1answer
29 views

How do I format paragraphs to make a pagebreak? [duplicate]

How do I format the paragraphs so that it skips to next page. I would like each paragraph to be on a separate page, is something like this possible?
1
vote
0answers
49 views

different text alignment on even/odd pages (like raggedouter but for text)

For a poetry book I would like to typeset all text on even pages \raggedleft and all text on odd pages \raggedright, including headings. Poems can span across multiple pages, so the change of text ...
9
votes
1answer
249 views

Balancing lines in two-column document containing figures

How to balance lines in two-column document that contains figures? In other words - how to set the vertical margins of figure with caption so that the line after the figure corresponds to the line in ...
8
votes
2answers
105 views

Is it possible to apply shadow only to the last part of a breakable tcolorbox?

I'd like to apply (drop lifted) shadow only to the last part of a breakable tcolorbox but I couldn't find any hint for this in the documentation. The following MWE is a non working attempt. ...
2
votes
0answers
64 views

How to break tablenotes (page break) in longtable with threeparttablex?

How can I break my TableNotes in ThreePartTable (it is a landscape table)? \documentclass[a4paper]{article} \usepackage[english]{babel} \usepackage[top=2.975cm, bottom=2.975cm, left=2.975cm, ...
2
votes
0answers
38 views

Page breaking in a glossing example environment

I'm using the expex package for glossing exemples, and I have this giant example which doesn't want to break when the page ends. In the user's guide they say it should break automatcally but it ...
2
votes
2answers
97 views

How to make glossary use the full textheight?

I am using the package glossaries to create a glossary in my document. My glossary is too long to fit on one page, therefore LaTeX automatically continues the table on the next page. However, the ...
0
votes
0answers
25 views

Sections and new pages

I programmed the following command for my personal \section: \newcommand{\mysection}[1]{ \vspace*{.9cm} \textcolor{blue} {\large \bfseries #1} \vspace*{-.3cm} ...
4
votes
2answers
56 views

Combine onesided and twosided layout in one document

I'm confused on how to do the following: The first 50 Pages (except the cover) should be printed only on the right side of my two page document. The last 100 Pages (Appendix) should be printed front ...
2
votes
0answers
36 views

Unvoluntarily page break [SOLVED]

my TeX editor makes a page break on when I try to make some space (\vspace) between my tabulars and images, and doesn't when I omit the vspace, but then the page is loaded. Here's my code : ...
2
votes
2answers
59 views

How to prevent page break between two section headings with color formatting using titlesec?

Description This question is based on almost the the following question, How to prevent page break between two section headings. The answer given there explains that the problem is with \color, which ...
1
vote
1answer
19 views

Allow page break in table in customized environment

\documentclass[12pt]{report} \usepackage{amsmath,enumerate} \usepackage[top=1cm,bottom=1.5cm,left=1cm,right=1cm]{geometry} \usepackage{booktabs} \usepackage{longtable,tabu} % allow page break ...
15
votes
2answers
36k views

Insert a blank page after current page

I want to insert a blank page in a document so that the text would be added to the content of the current page till it reaches end of the page, the next page would be empty, and the text continue from ...
3
votes
2answers
74 views

\nopagebreak after a center environment

I have the following code for a Theater play. Sometime the page breaks just after the name of a character. I would like to avoid that. I would be good if I could do it only by modifying the command ...