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

9
votes
1answer
168 views

Problems at page boundaries trying to highlight `\lstinline`

I was trying the code given in Colored background in inline listings, which is actually the same than in How to redefine \lstinline to automatically highlight or draw frames around all inline code ...
3
votes
1answer
145 views

No page break with tabularx in mdframed

I am writing my master's thesis and I encounter a problem with mdframed environment. I have a mdframed on several page and there is no problem. This frame is only composed with text. I want to ...
2
votes
2answers
141 views

How to get rid of extra space before align and gather envronments, but allow page breaks?

I am editing a rather long text which contains many equations and floats, and encountered a problem with the align and gather environments. MWE: \documentclass[preview]{standalone} ...
4
votes
1answer
110 views

Adding captions and “cont.” to framed quotations broken across multiple pages

I have to include transcriptions of interviews I had conducted in my thesis, and the institute to which I'll be submitting said thesis is imposing some limitations. The rules are: Excerpts should be ...
0
votes
0answers
76 views

Unexpected page breaks with parallel package

I am trying to use the package parallel to typeset some text in two languages. The text in language A should appear on even pages, the text in language B on odd pages. I typeset ...
3
votes
1answer
254 views

figcaps and page breaks

I'm using figcaps to place floats at the end of an article prior to copyediting. The journal asks for each figure/table on a separate page. But figcaps puts as many figures as possible on each page. ...
1
vote
1answer
172 views

Modifying a thesis class file

A friend of mine gave me a class file he had used for his dissertation, which he submitted this spring. This is a class file he wrote; it was not provided by the university. Between spring & ...
2
votes
1answer
85 views

Prevent pagebreak inside table of contents entry

For a sandwich thesis, I'm typesetting a List of Papers using the tocloft package. Each entry contains the full citation (using biblatex's \fullcite), so it can be rather long. I've currently ...
13
votes
1answer
394 views

Column break only if within first column of multicol

Background Creating books automatically using LaTeX-escaped user-generated content. Problem The book layouts make use of the multi-column package, with the book content separated into sections. If ...
8
votes
1answer
143 views

Why is mdframed inserting a blank page?

I'm using the awesome mdframed by Marco Daniel and I'm having some problems with pagination. Sometimes it will insert a blank page, depending on the exact height of the content. Here's the smallest ...
0
votes
0answers
31 views

How can I keep an environment all on one page? [duplicate]

In other words, how can I forbid pagination between \myenv and \endmyenv? I thought at first to make the whole thing a box; if I'm not mistaken---this would prevent TeX from breaking it up---but I ...
3
votes
1answer
78 views

Prevent environments from breaking in two pages

I am making my own environments for a mathematical document (environments such as Theorem, Definition, Lemma... which often consists of a title corresponding to the environment and possible things at ...
2
votes
1answer
78 views

How should I prevent images from floating between list and paragraph before

I have a list which has some text that describes the list and an image that gets in between of those: The LaTeX code looks similar to this: \begin{figure}...\end{figure} ...
4
votes
1answer
126 views

How to place text on the second page of the frontmatter in ConTeXt?

I need to put the copyright text on the second page of my ConTeXt document, on the verso page. I am using \startfrontmatter and \startstandardmakeup to create the title and authorship pages in the ...
0
votes
0answers
77 views

nopagebreak between rule and custom theorem env

I'm making a custom theorem environment. Here's a minimal example of my problem, with some filler text borrowed from the GPL: \documentclass{scrbook} \usepackage[dvipsnames]{xcolor} ...
13
votes
1answer
260 views

Is there any opposite of newpage?

Is there any command which is the opposite of \newpage/\pagebreak/\clearpage, i.e. which goes back a page instead of going forward, similarly to the way you can use \vspace to move the current ...
0
votes
2answers
127 views

Avoid chapter pagebreak in twocolumn document

It took me a while to locate the error, but here's a MWE. I am using my own class, provided below: \documentclass[fleqn,10pt,twocolumn]{MWEclass} \usepackage{lipsum} % Required to insert dummy text ...
1
vote
1answer
63 views

How can I make tabular span across pages [duplicate]

I have this LaTeX code https://www.writelatex.com/242217cvwchw The data is truncated at the bottom. Is there any way to get the data across multiple pages \begin{tabular}{@{\hspace{19ex}}p{37em}} ...
9
votes
1answer
758 views

Beamer: allowframebreaks collides with columns?

I'm doing a scientific presentation with the beamer package and have two columns (the left one with text, the right one with several images) that are too long for one frame. I want to use ...
1
vote
1answer
116 views

twocolumn span across multiple pages

I want to prevent twocolumn from using magazine-style section breaks across multicolumn pages. I'm currently invoking twocolumn like so: \documentclass[twocolumn]{article} But this is creating the ...
0
votes
1answer
132 views

Long codes using listing or mcode which do not break into 2 pages

I'm using the mcode package for including my codes into my documents, but the problem is that when my codes are too long, and they need more than one page the program tries to keep them in one page, ...
1
vote
1answer
125 views

Not breakable box in mdframed package

In my previous post, title of a colored box, I've tried the first answer I was given typing the following code: \documentclass[12pt,a4paper,titlepage,twoside,openright]{book} ...
4
votes
1answer
105 views

Preventing page break after sectioning when body begins with a command?

I use the acro package heavily in my thesis, but I noticed that one section has a page break right after the section header. This appears to be a result of the first paragraph beginning with \Ac{} ...
0
votes
1answer
63 views

“Description” for compactitem on the same page

Sometimes a have a construct like: Some examples: \begin{compactitem} \item first \item second \item third \end{compactitem} With the samepage environment, I can enforce to put the entire list on ...
4
votes
1answer
248 views

Repeating section headers in moderncv?

I am trying to prepare my CV using moderncv, and my publication list currently splits pages. I would like the top of the next page to have \refname{} (continued) in the same typeface as the original ...
2
votes
2answers
127 views

How do I keep questions from splitting between pages in exam?

How do I keep questions from splitting between pages in exam? For example in the MWE below, I'd like to have a page break after Question 2 so that Question 3 can start on a new page. I don't ...
5
votes
1answer
269 views

Break box (a long caption) over pages

I want to have text of a certain width less than the page width, which goes across several pages. Normally you’d put text into a (\par)box to set its width but these boxes cannot be broken across ...
1
vote
1answer
86 views

How do I force LaTeX to show tables in the section where they are made? [duplicate]

I have the following problem: My section 7.2 contains a lot of tables. Now it shows 2 tables, and then there is a space left on the page, that is not big enough for the next table. Therefore, ...
2
votes
0answers
79 views

Custom environment splitting between pages [closed]

I created a custom environment for theorems using mdframed package: \newtheorem{theorem}{Theorem} \newtheorem{twierdz}[theorem]{Twierdzenie} \newenvironment{twierdzenie} ...
7
votes
1answer
171 views

How to create a group of minipages that can be spanned across columns but can't be broken in two pages?

I'm trying to diagram an exam for an educational purpose. I'm using the package multicols to display questions in two columns. Each question of this exam is divided in three blocks: base text ...
0
votes
0answers
67 views

continued ctable: footnotes only at end of table OR only items referenced on respective page

The ctable package enables nice typesetting of footnotes in tables. However, I have very long and wide tables which I set with the sideways option and split them up so that each subset of rows fits in ...
12
votes
1answer
158 views

How can one ensure that footnotes page-wrap only from verso (back, even-numbered) to recto (front, odd-numbered) pages?

How can one ensure that footnotes page-wrap only from verso (back, even-numbered) to recto (front, odd-numbered) pages? With the following code, the line to which the second footnote is attached ...
3
votes
1answer
78 views

Aligned equation which can break through pages [duplicate]

I'm writing long sequences of aligned math equations, and LaTeX interprete them as single, unbreakable objects... which is Ok if the equation is nowhere near the end of the page. Q: Is there a way to ...
2
votes
1answer
161 views

Longtable and multicolumn

I've been having some issues with the longtable package. I'm creating a table for some UML Case Details but there must be something that I cannot find which is continuously giving me an error ...
2
votes
2answers
54 views

How to create space at the bottom of a the 1st page only

How should I add space at the bottom of a particular page? I want to create a space at bottom of 1st page and it should not followed for other pages. Suppose I want the last four line to go to the ...
2
votes
0answers
83 views

How to avoid page overrun using scrreprt document? [closed]

I'm in the process of writing a requirements document and have been using a template based on the scrreprt document class. The problem I'm running into is that when I compile my document, in certain ...
0
votes
0answers
31 views

Spanning a procedure of an algorithm more than 1 page [duplicate]

I am unable to do this in LaTeX. Please help. And people who have marked this as duplicate, please mention the link to the question as I could not find any.. \begin{algorithm} \begin{algorithmic} ...
4
votes
3answers
350 views

Table of content only on right-side pages

Is there any way I can force all the pages of table of contents (and its family) to be printed only on the right side ? Presently I am having it as : \phantomsection \tableofcontents ...
3
votes
2answers
172 views

New page at end of subsection (not start!)

In order to keep everything neat and tidy in my document (in particular with regards to floats floating all over the place), I want each subsection to end with a \clearpage. I originally had the ...
2
votes
2answers
255 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 ...
5
votes
1answer
235 views

Keeping two rows on one page using longtable

I am creating a longtable which spreads over multiple pages. The problem is that the coefficients and standard errors which are in two consequential rows sometimes get separated. How to I hold those ...
4
votes
1answer
50 views

pageskip when loading text from external file

I have the following MWE, using REVTeX: \documentclass[aps, prl, twocolumn]{revtex4-1} \begin{document} \title{Title} \author{Dog} \date{\today} \begin{abstract} ...
3
votes
1answer
124 views

Splitting ToC into two parts, each in one page

The Table of Contents in my LyX document is multiple pages long, but LyX splits it at an undesirable position. I want to split the Table of Contents manually. An equivalent to \newpage but only inside ...
0
votes
0answers
42 views

How to prevent Latex to make a single line page break [duplicate]

I'm writing a memoir and sometimes I get this: ... Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim ...
2
votes
1answer
77 views

“align” inside “table” because of table caption - how to do pagebreak?

I have a table: \begin{table} \begin{align} \nonumber b_{1} & = 0,200 & \beta_{1} & = z \\ \nonumber b_{2} & = 0,022 ...
5
votes
1answer
153 views

Removing a white page between Appendix heading and Appendix A

I tried looking through all the similar questions but couldn't find a similar case. I am writing in article class, this is my preamble: \documentclass[10pt,twocolumn]{article} ...
5
votes
2answers
235 views

Dynamically insert full-page image at nearest page break

The situation: I have a document that essentially consists of many pages of plain text. I would like to include a full-page image at the page break nearest to a given line. It is important that the ...
4
votes
2answers
172 views

Looking for a mid-page break solution

I'm trying to write bios in a column document in which the employee's description appears next to their picture in the adjacent column. I'm trying to get the pictures to align perfectly with the bio ...
2
votes
1answer
349 views

Fancyhdr package and page numbering issues

I am using the fancyhdr package and I have got big issues with the page numbering. Indeed, the pages appear for each new title, but then I don't have anymore page numbers, Here is the code furnish by ...
3
votes
1answer
53 views

Leading space in samepage environment after equation

When used directly after the an equation, the samepage environment inserts a leading space. Is this the intended behavior? How do I remove it? Compare the output of ...