{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
79 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 = ...
1
vote
1answer
38 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} ...
7
votes
2answers
83 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 ...
4
votes
2answers
71 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
178 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, ...
1
vote
1answer
51 views

shrinking a page

In the reference list section of my paper, there is one reference alone occupying/creating one extra page, which is something i do not want. What could be a solution for changing this without ...
2
votes
0answers
57 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
58 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
0answers
81 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 ...
5
votes
1answer
45 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
43 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 ...
3
votes
1answer
31 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 ...
4
votes
1answer
87 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
32 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} ...
7
votes
1answer
121 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 ...
12
votes
1answer
157 views

Does \\* within footnotes have any effect?

One is taught that \\* is an alternative to the line-breaking \\ that tries (often unsuccessfully) to inhibit a page break. Normally \\* would be used in ordinary ("body") text. (And I hereby ...
2
votes
1answer
55 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
147 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. ...
1
vote
1answer
31 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
136 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
71 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
46 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
144 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 ...
7
votes
0answers
65 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 ...
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
1answer
48 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., ...
3
votes
2answers
69 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 ...
3
votes
0answers
84 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 ...
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} ...
6
votes
1answer
109 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
123 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 ...
3
votes
2answers
147 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 ...
4
votes
1answer
75 views

How to make 2 tables appear one next to another?

I have a document with three tables. These three tables currently are too long for the page, so I would like to make 2 tables appear next to each other and then make the third table appear below them. ...
1
vote
1answer
60 views

Page breaks within the cases environment

I am using the cases environment multiple times within the align environment, inputting fairly long equations. This creates a lot of white space, which I would like to get rid of. Any suggestions of ...
0
votes
0answers
22 views

Automatically applying wrapfig hotfix only when a section heading is the last thing on a page

I have the same problem as the user 'mrf' on Wrapfig and page breaks after section heading (see link for MWE and hotfix). Using wrapfig basically messes up the document flow such that section ...
3
votes
1answer
63 views

How to prevent page break in the last three lines of an environment?

I want to create an environment, thats content should not allowed a page break in the last three lines of the last paragraph. If the last three lines of the text inside the environment reach the ...
4
votes
1answer
75 views

Prevent page break after first line of example

I would like to find a way to prevent a page break between the first line of the example in following code. \documentclass{article} \usepackage{lipsum} \usepackage{gb4e} \begin{document} ...
2
votes
0answers
62 views

\afterpage not called after page break

In this example \documentclass{article} \usepackage[a6paper,landscape,margin=1cm,bottom=2cm]{geometry} \usepackage[english]{babel} \usepackage{blindtext} \usepackage{afterpage,refcount,lastpage} ...
2
votes
1answer
155 views

Breaking pages with boxes in boiboites-like

I want to find a method for breaking boxes of my environments of examples (in arabic, with polyglossia.. see ECM below) I saw that mdframed do something like this, but I'm using my own package ...
3
votes
2answers
46 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} ...
3
votes
1answer
41 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 ...
1
vote
0answers
77 views

\parskip setting effect on page break?

What is the effect of the \parskip-setting on where LaTeX does the page break? I wonder why there is a page break before the paragraph-headline with my \parskip settings (unless I insert the ...
21
votes
2answers
902 views

Is LaTeX intended for unattended typesetting?

With markup converters like Pandoc, it is now possible to generate LaTeX documents without ever touching any LaTeX code. However, obtaining aesthetic page breaks for slightly complex documents, ...
6
votes
3answers
78 views

Subsection on new page if it doesnt fit

I have many subsections in my document. Each subsection is quite short (each subsection consists of five to ten lines). I want to have more than one subsection on each page but I don't want a ...
5
votes
2answers
305 views

How to force LaTeX to keep section/subsection headings with one line below it on the bottom of the current page?

By default, LaTeX allows a page break after the first two lines of paragraphs following section/subsection headings, but I would like to keep the section heading with even one line below it at the ...
2
votes
2answers
95 views

Prevent page breaks between item heading and item content

I have headings that appear before items in an enumerated list. The problem is that I think it looks ugly when a heading appears at the end of a page with the content of that heading on the next page. ...
0
votes
0answers
68 views

Breaking equation through pages

In a former post I learnt how to break an align equation by using the \allowdisplaybreaks command on the preamble. However, I found the package breqn, which is impressive! So far I've been unable to ...
5
votes
1answer
88 views

Find point of page break in an external document

I am creating multiple versions of a document from a single LaTeX source. Specifically, I have a series of lessons that have an instructor version (with notes and answers) and a plain student version. ...
2
votes
1answer
68 views

Change side wallpapers between pages

My document has graphics on its left and right border on each page, I use the package wallpaper for that: \newcommand{\dsaSetDefaultPageBorders}{ \ULCornerWallPaper{}{./fanpaket/balken-links.png} ...
1
vote
1answer
35 views

Figure location in the bottom of the document

In my paper the last page should contain reference only, but my figures keep popping in the last page. How can I force them not to appear in the last page / force the last page to consist of reference ...