{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
2answers
22 views

Partial center in environment

I'm writing a lab manual with step by step directions. Some directions include screenshots. To keep the screenshot with the line of direction, I use samepage. I am exploring an environment I can use ...
0
votes
0answers
49 views

Persistent Gap! [duplicate]

I'm working on my paper using MiKTex v2.9 and i came across this odd problem with {proof} environment. Syntax i use for proof is working properly in other areas of text but in one place i encountered ...
2
votes
1answer
29 views

Only allow pagebreak between lefthand and righthand page in double sided document

I'm working on a songbook, using the class scrbook. Every song is a single file imported using \input. I'm using \enumerate for the verses and refrain. At the moment, I put the whole song in a ...
1
vote
1answer
501 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 ...
0
votes
1answer
56 views

\nopagebreak in longtable results in undesired negative vertical space

System: XeTeX Version 3.14159265-2.6-0.99992 (TeX Live 2015/W32TeX). MWE (with a grid superimposed to help visualizing the issue): \documentclass[12pt]{book} ...
1
vote
0answers
34 views

Package hyperref causes a blank page to be added before a section starting with a large image

When I try to have a section start with a large image, an extra page is added before the start of the section. I tracked down the problem to the hyperref package; when it is not loaded the extra page ...
2
votes
1answer
36 views

classification labels in headers and footers

I'm trying to write Latex documents that will automatically satisfy government requirements for labeling certain classes of information: - Each paragraph starts with a label indicating its ...
0
votes
0answers
19 views

create custom badness for pagebreaking over a custom area

This is a - as I think - tricky question. I want to create and/or modify a badness for pagebreaking/newpage. It should work like this (pseudo code): \begin{areaOfBadnessValid}{badnessvalue} ...
33
votes
2answers
37k views

Start new chapter on same page

I am using report document class. When I create a new chapter, it starts it on a new blank page in which only the chapter name appears. I want to be able to start new chapters on the same page as the ...
1
vote
1answer
20 views

Page break: enumeration with headline

In my document I created a new environment called examples. Basically it's an enumeration with the headline "Examples". The idea is to get something like: Examples Example 1 Example 2 Example 3 ...
2
votes
1answer
51 views

Unexpected change in pagination when 'no' change in contents, using `boxedmini2e`

I am using the package boxedminipage2e to produce several framed boxes with some text inside. Because these boxes have a fixed height and width, I am expecting that whether or not these boxes contain ...
22
votes
3answers
60k 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 ...
7
votes
0answers
107 views

Typesetting literate programs: how to enable page breaking mid-paragraph, but not mid-code?

I'm writing a book that is a literate program. A literate program is divided into "chunks" or "sections," each of which has a documentation part and a code part. (It is also permissible, and in my ...
1
vote
1answer
78 views

“Page intentionally left blank” with twoside openright

I'm using twoside,openright in my document class, and I'm wondering how to have "Page intentionally left blank" text on the pages that openright makes blank. I've seen people redefining ...
1
vote
0answers
20 views

Penalising page breaks within environment

I have an environment that I use to format examples in a document I'm writing. The contents of that environment typically consists of a few short paragraphs, often each only a line or two long. I ...
3
votes
3answers
81 views

speech cards / palm cards

I wish to print a document in the form of speech/palm cards. That means, the text of the speech needs to be divided up by LaTeX automatically so that it fits into boxes of fixed dimensions ...
0
votes
0answers
27 views

Page break incorrect with sideways table

I'm having difficulty with a sidewaystable: after the section heading it will leave a whole page blank after having a separate page with the table. How can I get it on the same page? ...
2
votes
1answer
35 views

How do I prevent figure pages from interrupting passages?

I've written a text with some page-size figures in it. The problem is: The figure pages are interrupting sentences and paragraphs. The figures are supposed to be looked at for some time, so I'd like ...
0
votes
0answers
24 views

Weird floating properties

I have a document that is arranged this way: However, I don't like this, because the order of my figures are messed up. What I would like to see is something like this: Can you tell me how to ...
1
vote
0answers
47 views

Editing .cls file [closed]

I am using a .cls file for my thesis but the document format is not perfect. I need to guarantee that the pages which are generated with the following commands are in the odd pages: \maketitle, ...
2
votes
1answer
21 views

Maximize size of figure such as to maintain page breaks

In this MWE, I manually fine-tuned the width of the graphics (0.711082\linewidth) in order to maximize its size while fitting the whole document on one page. \documentclass{article} \usepackage{mwe} ...
2
votes
1answer
47 views

Problem Splitting Very Long Algorithm on two or pages

In the example below, I have a very long algorithm, probably spanning 3 pages. I tried manually splitting the code up, but each time, a new algorithm number is generated. How do you maintain the ...
0
votes
0answers
33 views

\newpage or \pagebreak DONT work before \section

I am trying to make a \section{Chapter 1} start on a new page using \newpage immediately before it, and it doesn't work. Can anyone tell me why? Thanks
19
votes
1answer
9k views

single-column revtex4-1 adds a page break after the title section

Using revtex4-1 in single-column mode produces a page break after the abstract. This is not the behavior with revtex4. The minimal example is really simple: \documentclass{revtex4-1} ...
1
vote
0answers
35 views

Remove Blank Pages

MWE: \documentclass[a4paper,12pt,leqno,footinclude=true]{memoir} \setcounter{tocdepth}{3} \setcounter{secnumdepth}{3} \usepackage{tocloft}% \newcommand{\cftchapaftersnum}{.} \begin{document} % ...
2
votes
1answer
543 views

Auto-break Cell in longtable Environment

I try to build a document with a question-and-answer form using the longtable environment with two tabulars. The first one is for questions, the second one for answers. If my cell contains more data ...
2
votes
1answer
113 views

How can I render a LaTeX document without pages?

Almost always, I simply render electronic documents, so I don't need pages. Also, pages make it difficult to arrange images in a document. I want to draw TikZ graphs for my blog articles, and I don't ...
4
votes
1answer
76 views

How to Make Claims and Proofs start on the same page if possible?

I have a document where sometimes proofs start on a separate page than where their associated claims were stated. Is it possible to force is so that (unless the statement of the claim is more than ...
10
votes
4answers
325 views

Creating arbitrary number of blank pages

Is there a single command with which one can insert an arbitrary number of blank pages inside some latex text?
12
votes
1answer
701 views

mdframed does not split correctly between pages

I use mdframed to make boxes and split them across pages. However, sometimes mdframed splits! very strangely across the pages. In this example he prefers splitting, while there is enough space to put ...
1
vote
1answer
21 views

Prevent page and column breaks mid bibliography entries in Biblatex/biber

Using biblatex and biber is there any way to prevent a page/column break from occurring mid item? The image below shows bibliography items being split both at the end of a column and at the end of the ...
2
votes
1answer
411 views

Insert text before end of page, and at the beginning of the next page

I'm putting a template together and I have created a custom command which I'm going to use to set specific margins on the text passed to its argument and a few more formatting things, like this: ...
3
votes
1answer
33 views

Nested breakable frames

I am trying to solve problem with nested frame environments which must be both breakable. It is not important to use tcolorbox if there is some better alternative. Is it possible to display it ...
3
votes
1answer
1k views

Adding floating space between main text and footnotes

I have to typeset a text with several widows and lots of footnotes. The editor told me to leave an additional blank line between the main text and the footnotes and to use this space to print the ...
24
votes
3answers
3k views

How can I force ToC not to end with a chapter?

So I am writing a programming book and I decided to include \sections in the ToC as well (see picture below). The problem I am having is that I have ugliness where \chapter is the last item on the ...
0
votes
0answers
25 views

My pages are not the same size on the PDF for my Senior Econ paper

I don't know if a basic working example would help, as I would not be surprised if packages are conflicting or I have a typo or syntax mistake in the 10 page document. And I've no doubt made it much ...
2
votes
1answer
57 views

Tikz remember picture on wrong page

I want to comment some equations with tikz and stumbled upon a tikzmark command that uses the remember picture command. It works fine, I can draw below and above the equation, but whenever the ...
13
votes
1answer
114 views

\@clubpenalty leaks out

In the following example the value of \clubpenalty has been reset to the one of \@clubpenalty on the second page: \documentclass[]{book} \usepackage{lipsum} \begin{document} \subsection{abc} blblb ...
3
votes
0answers
128 views

Linguex glosses and translation separating across page break

I use linguex and I don't want my examples to be separated from their interlinear gloss and translation by a page break. Currently I have to check the PDF output and use the package needspace, but ...
2
votes
2answers
87 views

Place text on top of bibliography page

I would like to include a quote at the top of the first page of my bibliography section. \newenvironment{wittyquote} {\color{darkgray} \begin{addmargin}[6cm]{0cm} \begin{footnotesize}} { ...
0
votes
0answers
35 views

pagebreaking and `\vfil` in ConTeXt

I am trying to distribute elements vertically across a page: \setupbodyfont [TeX Gyre Pagella, 30pt] % Or something else \showframe \starttext A \vfil B \vfil C \vfil D \page E \vfil F \page G ...
3
votes
2answers
41 views

Auto Generate Custom Text Message for Page Break

I created a new environment that creates a box around text. I used tcolorbox. Additionally, since I wanted to break from page to page, I added 'breakable'. However, what I want it to do is to break ...
3
votes
1answer
44 views

\clearpage produces an extra blank page

I'm trying to insert some sidewaysfigure environments between segments of text. The output should be like Title Page Text (ends about halfway down the page) Sideways Figure Sideways Figure Text ...
2
votes
1answer
32 views

tcolorbox disable repeated text in overlayed node

In the following MWE (built from http://tex.stackexchange.com/a/170767/69378) I have demonstrated that title text in an overlayed tcolorbox node gets repeated across page breaks. I have checked the ...
2
votes
1answer
114 views

How to prevent page break between listing caption and code?

How to prevent page break between listing caption and code (see the picture)? Minimal example illustrating issue: \documentclass[a4paper, 12pt, oneside]{report} \usepackage[a4paper, left=3.5cm, ...
3
votes
2answers
36 views

Preventing page break between a Verbatim environment and an equation

I have a document in which displayed equations often appear immediately after an environment created using the fancyvrb package. How can I prevent page breaks from appearing in between? ...
2
votes
1answer
54 views

Suggested objects permitting table-like-column formatting and page breaks amidst long lists of breakable content

My preferred way of structuring and formatting large lists of content is with longtable. Some of my cells contain a lot of text, both in paragraph and itemize or enumerate environments. For reasons ...
1
vote
0answers
72 views

Blank page between references and appendix

Could anyone help please. A blank page is being created between the references and appendix. I have tried all the usual fixes like \clearpage and \cleardoublepage, but none are working. All the ...
23
votes
3answers
32k views

Add a new empty page

I have a .tex file which is like my main, \documentclass[spanish]{article} \usepackage{times} \usepackage{amsmath} \usepackage{graphicx} ...
2
votes
2answers
82 views

How do I split a forest tree into two trees with proper vertical alignment?

\documentclass[oneside,12pt]{article} \usepackage{geometry} \usepackage{microtype} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{enumitem} ...