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

5
votes
1answer
95 views

Why might \\* (“line break here, but no page break”) not work, and how can one fix this?

One is often taught that "\\ causes a line break which is not a paragraph break" and "the variant \\* additionally prevents a page break". (I hereby acknowledge user egreg's admonition that "\\* ...
7
votes
1answer
146 views

page break in the middle of a \cite

With pdflatex all my citation are pdf hyperlinks to the respective entry in the bibliography. This causes a problem when occasionally Latex decides to do a page break in the middle of a citation so ...
4
votes
1answer
47 views

General question about controlling hyphenation and document layout

In general, I am letting LaTex do its own thing regarding document layout. I have set the margins and line-spacing according to my University's criteria, but otherwise the only thing I have messed ...
6
votes
2answers
329 views

How to not have widows and orphans without using raggedbottom

I know I can set \clubpenalty and \widowpenalty to 10 000 to make them “really bad”, but then TeX sees it equally bad to cut the page short when there is no vertical stretch (i.e. \parskip=0pt), and ...
3
votes
1answer
41 views

Unwanted page break before align

I am having some issues with the positioning of a page break with align. My code is roughly the following. \documentclass{article} \usepackage{amsmath, amsthm} \begin{document} %Lots of text to ...
7
votes
1answer
496 views

marginpar and orphans

How can I avoid orphan lines if I use \marginpar? For example, here is a two-page document that does not have any orphans: \documentclass[letterpaper]{article} \usepackage{lipsum} \clubpenalty=10000 ...
3
votes
2answers
122 views

Algorithm is not dividing into multiple frames

\section[Algorithm]{Algorithm} \begin{frame}[allowframebreaks] \begin{algorithm}[H] \begin{algorithmic}[1] \STATE \emph {Taking a sequence of values $(f_{1} \dotsc f_{n/2})$, and calculating $pfbm = ...
5
votes
1answer
53 views

Break page in \valign

Let's say I have a \valign like: \parindent=0pt \tabskip=\baselineskip \valign{& \hsize=.5\hsize\raggedright #\crcr Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod ...
7
votes
2answers
100 views

algorithm with partial borders/frames

I use the algorithm float environment for pseudocode and want some algorithms to span two pages. That works fine with \algstore and \algrestore. However, I would like to omit these borders at the end ...
1
vote
1answer
46 views

What to do if \clearpage does not flush the floats exactly?

Consider this MWE: \documentclass[% 12pt, journal, onecolumn, twoside, draftcls, letterpaper, ]{IEEEtran} \usepackage{tikz} \usetikzlibrary{calc} \usetikzlibrary{positioning} \usepackage{adjustbox} ...
2
votes
0answers
143 views

mdframed box spanning over page break: prevent images in between

I've run into a problem in a bigger documents where pictures get in between the breaks of mdframed boxes. So the scenario is that the mdframed box should break at pageend if it's to large and not ...
4
votes
2answers
99 views

How to avoid page break in sections?

This is my code: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} \usepackage{lipsum} ...
1
vote
2answers
267 views

Reactivating “\clearpage” in LaTeX after turning it off with “\let\clearpage\relax”

My document has a table of content in it. As i found out, after inserting one (\tableofcontents) LaTeX does a \clearpage by default. A method to ignore \clearpage is the command \let\clearpage\relax, ...
2
votes
0answers
62 views

How to avoid frame break in beamer?

I am using the command \begin{frame}[allowframebreaks] to split a large slide into multiple slides. However, the last slide only contains two lines and I would like to force them into the previous ...
3
votes
1answer
74 views

Overfull \vbox and wrong page layout

I know there are plenty of questions about this kind of warning but I've not been able to find my answer in any of them. I've used a code to avoid \cleardoublepage and \clearpage after every ...
2
votes
1answer
62 views

mdframed: how to prevent a box from splitting?

I would like to prevent an mdframed box to split. I know it could sound absurd, since mdframed is designed to allow splitting but if it could be done, I would be interested in modifying mdframed so ...
10
votes
1answer
153 views

mdframed: how to prevent a box from splitting if the remaining content (or the initial content) is too small?

Question I would like to prevent mdframed to split a box too early or too late. By this, I mean that I would like the remaining part of the box to always be greater than a fixed length, given before. ...
5
votes
1answer
148 views

mdframed: splittopskip does not work when the first object after splitting is another mdframed box

Question I would like to add space in an mdframed environment after a splitting (a page break) and in the case where the first object after the splitting (the page break) is another mdframed ...
5
votes
1answer
55 views

Problem in breaking codes in tcolorbox

I have a code which extends more than one page and I would like to break it into more than one page. I used breakable library but it has no effect on the created PDF and all the code appeared in the ...
1
vote
0answers
48 views

Undesired pagebreak between section header and figure

I am trying to compose a page with a section header and a couple of figures: they should stay on the SAME page, but there is no way to force them to, an extra page is always added between the section ...
6
votes
2answers
150 views

Widow Orphan lstlisting

I have a listing of 6 lines. The listing box does not seem to fit on one page (it is on the bottom of the page) so the rest of the box is printed on the next page. There is nothing actually in the box ...
3
votes
1answer
35 views

Can \newpage take an argument like \pagebreak?

I redefine \subsection in the article class \renewcommand\subsection{% \penalty-8888 %\pagebreak[3] \@startsection {subsection}{1}{0em}{1\parskip plus 1\parskip minus 1\parskip}{1\parskip plus ...
19
votes
3answers
13k 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} ...
4
votes
1answer
91 views

Image vs Text Arrangement [duplicate]

When I write a multi-page paper with imported images, I usually try to group the picture with the text referencing it. Sometimes, there is not enough room at the end of the page for the picture, and ...
2
votes
1answer
40 views

Prevent page break when text exists before title in twocolumn enviornment

I have an article using the two column enviornment but the title and abstract in a single column which works fine like this: \documentclass[a4paper, 11pt, twocolumn]{article} \begin{document} ...
42
votes
5answers
2k views

Automated Newspaper Layout (with TeX and abroad)

Update: I'd like to revive (and revise) this question a bit because there have been some recent developments, and furthermore I would be happy to encourage some up-to-date discussion. I'm thinking ...
1
vote
1answer
37 views

Table of content with long entry across two pages

In my thesis, I have a section with a very long name, which must appear in its entirety in the table of content. The title consists of three lines and, unfortunately, it is split in two different ...
5
votes
1answer
75 views

Preventing a code listing of multiple pages to be split to several parts

I have a lstlisting that doesn't fit on one page. It continues correctly on another page but instead of putting the last lines in the beginning of the next page it actually splits into three parts on ...
5
votes
1answer
83 views

Spreading newenvironment over two pages

I am using a template found online to do my CV and I am getting a hard time trying to spred the content of a newenvironment over two pages. I want the content of one of my rubrique to be over the end ...
1
vote
1answer
56 views

How to avoid page breaks between the paragraphs of a description item?

Is there a way of preventing LaTeX from putting page breaks between two paragraphs of a multi-paragraph \item in a description environment? Preferably without having to put in explicit \nopagebreak ...
8
votes
2answers
161 views

Bottom frame of listing appears on top of the next page

As the title says. I use, among other things, the following in my lstset: framerule=1pt, frame=tblr Some places a page break happens in the middle of my \lstlisting. Fine. But sometimes the whole ...
8
votes
0answers
81 views

Variable page break penalty for odd/even pages?

I am working on a document that has a large number of external Lilypond files included. These render quite well and (while a bit of a pain to use) lilypond-book is smart enough to render the music ...
5
votes
2answers
160 views

Force Poem Title and graphics on the same page

I've been using \needspace{4\baselineskip} to keep Poem Titles with a graphic produced by lilypond-book (music typesetting engine) together. In a 184p. document with 79 different Poem Titles followed ...
3
votes
2answers
50 views

openany for hepthesis

Hi I'm using the hepthesis template and I creates a empty page before any new chapter. Since it is build upon scrbook, is there anyway to use something like openany \documentclass[openany]{hepthesis} ...
8
votes
2answers
678 views

Page-breaking over titles of theorems that have lists

When I have multiple part theorems, I use an enumerate environment inside my theorem environment. However, I don't like the list to start at the same level as the theorem title, since this produces ...
28
votes
3answers
4k views

How can I make a table that takes up more than a single page?

I've got data that I need to include in a table, but there's a lot if it. I've played with the font size and table formatting as much as I can, but the table still won't fit on the page. Is there ...
0
votes
0answers
29 views

How to remove the space between the context and the section?

\documentclass{article} \usepackage{fontspec} \usepackage{ulem} \setmainfont[BoldFont=黑体]{宋体} \makeatletter \renewcommand\subsubsection{\@startsection {subsubsection}{2}{1em}%name, level, indent ...
3
votes
2answers
75 views

Preventing caption in new page [duplicate]

This is not about keeping the picture or table close to where they have been mentioned. It is about keeping the caption of the picture (or table) together with the picture. Otherwise the picture and ...
6
votes
2answers
457 views

minitoc: parttoc on the same page as the part title

Easy example: \documentclass{scrreprt} \usepackage{minitoc} \begin{document} \doparttoc[n] \noptcrule \tableofcontents \part{foo} \parttoc \chapter{bar1} \chapter{bar2} \chapter{bar3} ...
3
votes
1answer
55 views

Page break in dmath equation environment

I have a very very long equation. I want it to split over different pages automatically. My quation contains 1700 terms and it may go for many pages. Is it possible with dmath or any other way? e.g., ...
4
votes
0answers
98 views

Mdframed: negative top margin with page break skips a page

I am using the development version (1.9d) of the mdframed package to customize the proof environment in the following way. I wish that a line runs down from the word "Proof." and that the text of the ...
9
votes
1answer
207 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 ...
1
vote
0answers
41 views

Why there's a page difference between the title of the paper and the abstract? [duplicate]

Can you please tell me what causes a page difference between the title/authors and the abstract? \begin{document} \title{\LARGE Spectral Clustering vs Wavelet Clustering: A Comparative Study} ...
2
votes
1answer
411 views

Background color of breakable box with thin blank lines

The purpose of the mybox environment in the following document is to typeset a box in a blue background. The box may be split by page breaks. The algorithm used is similar to the one found in the ...
6
votes
1answer
126 views

Empty pages in the preface section of my thesis

I am writing a thesis and I'd like to use the openright option: \documentclass[letterpaper,12pt,twoside,openright]{report} The problem is that when I use this option, empty pages are placed between ...
6
votes
1answer
132 views

Changing page numbering style occurs one page earlier than expected?

I want my report to have the first few sections with roman numbering (i, ii, iii...), and the body of the report with arabic numbering (1, 2, 3...) for the page numbers. The problem is that the ...
12
votes
2answers
1k views

Breakable vboxes

In Plain TeX how can I make vboxes breakable, and can I handle/measure them separately? What I'm trying to do, is that I have a portion of text, that is treated separately (no indention, narrower, ...
3
votes
2answers
200 views

figure* environment skips page while using two-column document

I was told to use table* rather than the table environment to insert a table in a two-column document which is too small to fit in a single column. When I try to do the same thing with a figure, The ...
13
votes
1answer
176 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
44 views

No page break after index with idxlayout

In the idxlayout manual I read that the memoir class with twocolumn options forces a page break after the index. Is there any way around this behavior? I would like the following to remain on one ...