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

4
votes
0answers
38 views
+100

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 and in the case where the first object after the splitting is another mdframed environment. Is it possible? Picture ...
8
votes
1answer
67 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. ...
0
votes
0answers
38 views

repeated hbox after a page break

So I am making a journal using the code here: Using LaTeX to keep a diary contributed from ferahfeza. I like everything about the file that he calls input except for the fact that in his diary ...
1
vote
1answer
19 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
59 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
32 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
33 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 ...
7
votes
2answers
70 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 ...
6
votes
0answers
27 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
141 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
33 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
615 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 ...
25
votes
3answers
3k 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
24 views

No Autospace after Auto-Pagebreak [closed]

I'm currently working on an invoice template and my problem is that I do not know how to "disable" autospaces after an implicit pagebreak. The attached files show my template with autospace, and if I ...
0
votes
0answers
26 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
45 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
348 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
37 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
0answers
49 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
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 ...
1
vote
0answers
38 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
2answers
116 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 ...
2
votes
1answer
63 views

Prevent page from overflowing

Occasionally document overflows into the next page by few words or line. Though this can be adjusted manually by changing a font size or spacing, can it be automatically done? By automatic, I mean if ...
2
votes
1answer
378 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 ...
5
votes
1answer
64 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
99 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 ...
11
votes
2answers
937 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
59 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 ...
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 ...
1
vote
0answers
48 views

TeX capacity exceeds, when adding a single line [input stack size]

I get a strange error which unfortunately seems to be impossible make into a MWE – so I know we all prefer answers with compilable code, but maybe some one can help me sole it without … This is how ...
3
votes
1answer
25 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 ...
5
votes
1answer
73 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
52 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} ...
11
votes
7answers
4k views

How can one keep a \section from being at the end of a page?

Given LaTeX likeso: \section{Heading} Here is some text after the heading. How could one prevent the Heading from showing up at the very bottom of the page? In other words, how could one prevent ...
1
vote
1answer
55 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 ...
8
votes
1answer
138 views

How to generate a “<section> continued” heading after page-break?

This is a follow-up question of the answer to Re-displaying section headings after page-breaks As in the follow-up question, I would like to repeat the section heading after a page break, but ...
4
votes
1answer
65 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. ...
3
votes
1answer
52 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 ...
0
votes
0answers
14 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
2answers
189 views

How to prevent pagebreak in quote environment?

\begin{quote} ``No matter how far apart the particles are when we try to collect one of them the relative probabilities of finding it in different places are strongly affected by the `interference ...
1
vote
2answers
1k views

Tricky pagebreaking problem

I have a problem with some pagebreakings in my thesis. I have used a recursive \afterpage{\clearpage} based macro in order to alternate text and figures, which works fine, most of the time. However, ...
8
votes
2answers
8k 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 ...
4
votes
1answer
33 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} ...
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
0answers
35 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} ...
6
votes
1answer
96 views

Re-displaying section headings after page-breaks (with titlesec)

This is a follow up question to Re-displaying section headings after page-breaks. The top answer by Werner works, but not when the package titlesec is loaded. Is another solution possible which does ...
2
votes
1answer
83 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 ...
18
votes
2answers
812 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, ...
1
vote
1answer
1k views

Title page plus table of contents

I am writing a paper for my candidacy exam. I am using book class, but I want my name and the title to appear on the first page with the Table of Contents instead of appearing in a sepearte page. ...
5
votes
3answers
101 views

Proper vertical spacing and pagebreaks in custom environment

I would like to design a simple environment which displays examples. This is what I got so far: \documentclass{article} \usepackage{xcolor} \usepackage{parskip} \usepackage{lipsum} \makeatletter ...