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

12
votes
1answer
286 views

Why \newpage needs at least \null to create a page?

Trying to answer to Include a cover page then title page in book class I've found that \newpage only creates a new page if there is some contents, i.e., \documentclass{article} \begin{document} \...
1
vote
1answer
44 views

How do I remove extra spacing on a new page following an align*?

I have the following code: %... \begin{proof} Let $P=(x_P, y_P, z_P)$ be a fixed point on the plane, $R$ a fixed length, and $X=(x,y,z)$ a variable point such that $XP=R$. As $X$ varies, it is ...
4
votes
1answer
49 views

Unwanted page break between a section heading and its subsection heading

My scenario consists of some sections and subsections. A slice of the aforementioned group has been presented, as below: \tableofcontents \clearpage \section{parent} %\subsection{child} \...
1
vote
2answers
114 views

draw a line on a given page #

I am writing a conference paper and want to have a big black line drawn across the bottom of page 12 (the conference has a 12-page limit). Is there any way to do that, and specify it at the beginning, ...
0
votes
0answers
38 views

Is it possible to keep connecting loop lines in algorithm2e and to implement a page break?

I have to formulate many and long algorithms. My problem is that my algorithms are very long and need to break over pages. In order not to lose structure it would be very good to have those vertical ...
7
votes
2answers
148 views

Why is it so hard to prevent a page break?

Why won't LaTeX just let me keep things together on one page whenever I want to? Why isn't this straightforward to do? There is this: Absolutely, definitely, preventing page break. Maybe that works, ...
0
votes
0answers
28 views

Setting bilingual text

How might one set a Greek text on even pages with English translation on odd? I suppose one could break the pages manually unless there is an easy better way.
0
votes
0answers
52 views

Extra large row longtable in tcolorbox

I use longtable into a tcolorbox to spread it on multipage. I manage to do it but, I think that there is a best way for the size calculation : p{\linewidth-55mm-6\tabcolsep}} I want to know if ...
4
votes
1answer
72 views

How to get a footer line in a longtable

I'm trying to do this \documentclass{article} \usepackage{longtable} \title{A longtable example} \begin{document} \begin{longtable}[h!]{|c|| c|| c|| c|| c|| c|| c|} \hline \hline {Data} & {$\...
2
votes
0answers
32 views

Wrapper around `picture` environment causes page break [duplicate]

A picture environment at exactly the size of the text area can fit snugly on one page. However when I replace the environment with a wrapper environment with exactly the same definition, it takes two ...
7
votes
2answers
224 views

How can I control the minimum number of lines (rows) that should be kept together when a page break is necessary?

What to do when tabular alignment just doesn't cut it? I designed (perhaps not efficiently or with the "right" approach, yet using some helpful LaTeX3 answers from egreg) a way to enter data into an ...
4
votes
1answer
75 views

Chapter start gets pushed on following page (NOT the “openright/openany-problem”)

It is hard to find answers to this question, as it sounds similar to the basic "How to start chapter on every page"-question. But this is different. Latex pushes the start of a chapter that contains a ...
1
vote
2answers
56 views

How can we force one line proof environment to stick to its associated theorem environment?

In my LaTeX document, some of the proofs are one-liners: \documentclass[letterpaper]{article} \usepackage{amsmath} \usepackage{amsthm} \usepackage{lipsum} \theoremstyle{plain} \newtheorem{theorem}{...
4
votes
1answer
82 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 ...
3
votes
1answer
104 views

allow minipage to column break but not pagebreak

I have a twocolumn document with many sections. I want to allow sections to break across columns of the same page, but not allow sections to break across pages. The most closely related previously ...
0
votes
1answer
58 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} \usepackage[top=72pt,left=72pt,bottom=...
0
votes
0answers
58 views

Forcing page break of a minted listing with \centering on

I am using minted to create a code listing. I need the listing to be centered so according to this solution, I use the \RecustomVerbationEnvironment to escape the verbatim environment so that it can ...
2
votes
1answer
71 views

Allow line breaks but not page breaks

How can I avoid that a \parencite{key} will get broken over 2 pages? Linebreaking is fine, but page breaking is not. The reason I do not want this is that I have TIKZ customization for citations, ...
10
votes
1answer
501 views

\goodbreak vs. \pagebreak

I recently came across the \goodbreak command, which seems to indicate to TeX that this is a good place to put a page break. How does it differ from, say \pagebreak[3]?
2
votes
4answers
145 views

Insert a blank page on every page break?

I have slides (slides.pdf; my own construction based on scrartcl) to teach from. Students asked to put in blank slides (to have space to put down notes). I first tried to write a shell script (getting ...
3
votes
1answer
102 views

How to force newpage on tabularx

I wanted to make a table, but needed to force a couple of rows go to the next page. However, I got a strange error. How can I force a newpage using tabularx? \documentclass{article} \usepackage{...
1
vote
1answer
31 views

Automatic pagebreaks between several samepage environments

I am using the mathpartir package to display some inference rules. I defined my own LaTeX command based on the samepage environment to add some explanation below a rule where there should be no page ...
0
votes
1answer
49 views

Figures are sent to the right column on the next page

I have a two columns document with several figures and in a certain part the page breaks in the middle of the right column, where two figures should be, and then the next page starts with an empty ...
3
votes
1answer
162 views

Longtable in tcolorbox makes itemized lists unbreakable

Structure: Using tcolorbox to take advantage of page-breakable paragraph or list contents, I am trying to use a long table above this to align some summary information. But I am observing that if I ...
0
votes
1answer
96 views

Leaving the current page empty and starting on the next

I'm trying to format a document in lyx so that each chapter or section begins on its own page. Following this question and adding the following to the latex preamble: \usepackage{afterpage} \...
1
vote
1answer
48 views

How to remove extra page in Lyx

I am working in Lyx and compiling a book layout. After each chapter an extra blank page appears. How can that extra page be removed? \batchmode \makeatletter \def\input@path{{C:/Users/Anuja/Documents/...
5
votes
1answer
35 views

Compile a document without traditional pages

I want to compile a document so that each "page" will be one chapter (or section). These "pages" wouldn't be of any standard, they wouldn't even be the same sizes. I want to influence the width of the ...
2
votes
1answer
31 views

Forcing a page break in \VerbatimInput (fancyvrb)

How do I force a page break within a file included with \VerbatimInput? It's C code, and I would prefer a solution that is transparent to the C compiler - something like a form feed (^L) in the source....
1
vote
2answers
24 views

Weird page breaking in letter style after closing

I want to add text to a letter after the signature. This is a sort of appendix. However, the page breaking after the closing is very strange. If I include a LaTeX list in one of the paragraphs ...
2
votes
1answer
55 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 ...
0
votes
1answer
56 views

Modify a tabular environment so that it can break over pages

I am working with a template which has the following new environment for defining a list: %% List environment %%%%%%%%%%%%%%%% \setlength{\tabcolsep}{0pt} \newenvironment{entrylist}{% \begin{...
8
votes
3answers
425 views

The longtable environment pushes content below it into the bottom margin of a page

When I have two floating environments on a page (one figure and one table), the longtable can push the content below it into the bottom margin of the page. Here is a minimal example: \documentclass{...
2
votes
1answer
56 views

Flexibly start a new page for proof environment

I would like to redefine my proof environment so that if the content of the proof environment is only, say, 3 lines or fewer, then the entire proof environment will just start on a new page. Here is a ...
0
votes
1answer
83 views

FloatBarrier starting a new page

I have a document with a large list of tables that should appear, in order, in an appendix before the bibliography/references. Initially I had a problem with tables appearing all over the place in my ...
0
votes
1answer
47 views

A marker to test that the page is not changed

I want to test if the current page when I generating layout, and the page where the layout appears after the work of the page builder, are the same page. In code it could look so: \bindpage{some-...
2
votes
2answers
96 views

Multi-page equation with only a single equation number

I understand that environments such as equation would not allow page break while align will. But I want an equation box that only comes with one equation number and it spans over multiple pages. How ...
3
votes
1answer
60 views

Avoid pagebreak between equation and label

I have a very long equation which barely fits into one line, but the label does not and is positioned one line below. The problem is that if the equation is at the end of a page, the label is moved to ...
3
votes
1answer
65 views

How to split only 1 page of my documentclass[10pt,a4paper]{article} and add vertically a big table on a side

I am wondering on how to split in 2 a single page of my whole document, and add a table vertically. As a matter of fact the table is so large, that I used to reading it on a newpage in a landscape ...
0
votes
1answer
30 views

How to make pagebreak spread the paragraphs in scrartcl

Using scractcl (or article), I would like a page break via \pagebreak to have the same effect (of spreading the paragraphs evenly across the page) as in document class book. I couldn't find this ...
4
votes
1answer
54 views

Prevent Abstract from using a full page

I am trying to prevent the abstract from taking up a full page while also using [titlepage]. LaTeX seems to ignore any non-breaking newlines or other formatting directives and places the abstract on a ...
0
votes
0answers
47 views

Pagebreak within a larger environment of facing pages (reledpar)

Again a question regarding pagebreaks with facing pages in reledmac and reledpar. I'd like to insert some pagebreaks manually to prevent having only one line (or a single chapter/section title) of a ...
0
votes
0answers
60 views

Force algorithm description, title and first function on the same page

I have an algorithm I want to describe. It's composed of several short functions, and while there are too many of them to fit them all on a same page, I want a clean solution to get each function to ...
1
vote
1answer
76 views

Subfigures on next page cause text not come in correct order

I have a problem when using subfigures: When there is not enough space for the two side-by-side subfigures they are put on the next page, which is fine of course, but then the text following the ...
1
vote
1answer
120 views

How to force figure go to new page instead of new column in a Two-Column Document

When I use \newpage it only goes to new column instead in IEEEtran document style! What can I do to force it to go to a new page as I had use its designated command as well? Thanks in advance for your ...
4
votes
1answer
214 views

memoir \vplace / \vspace that breaks pages on content starting with a section header

When using memoir's \vplace environment, I've noticed that LaTeX tends prefer break before a \vplace when its content starts with a \{sub}section. So for example: \documentclass[oneside,11pt]{memoir}...
2
votes
3answers
929 views

How to make minipage spanning multiple pages

I'm using this resume template: https://github.com/deedydas/Deedy-Resume This template uses minipage to build a layout like : +-----------------+ | Header | +------+----------+ | | ...
1
vote
1answer
95 views

Prevent pagebreak between section header and figure

In a document, I have an appendix with several screenshots, i.e., the different figures are displayed without any descriptive text right after the section header. I notice, however, that in several ...
3
votes
1answer
62 views

force at least two lines on a page in using lstlisting

I use the lstlisting package a lot in my theses. Unfortunately, it sometimes renders the caption (at bottom of the listing) on the next page or starts the listing at the end of a page, renders no line ...
1
vote
1answer
106 views

No newpage after \printindex

MWE \documentclass[a4paper,11pt]{book} \usepackage{makeidx} \usepackage{amssymb} \makeindex \begin{document} \index{One} \newpage \index{Two} \newpage \index{Five} \printindex \hfill $\...
1
vote
1answer
65 views

Equation at page break forces widow line from previous paragraph

I have a two-column document, and I'm having some weird behavior at an automatic page break. I have some text followed by some equations like this: So that abutting triangles do not double-paint ...