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

16
votes
2answers
9k views

Incorrect bookmarks and page number in table of contents

I have problem with table of contents and with bookmarks. In pdf file table of contents shows wrong page number of Introduction and Bibliography, Bookmarks: introduction and bibliography don't bring ...
12
votes
3answers
5k views

How can I fit my table of contents into a single page?

When I use \tableofcontents I get all my contents in a single page except for a line that goes on the other page, how can I make all in the same page?
2
votes
1answer
6k views

Begin every chapter on a new page using LyX

I'm writing a document in LyX (an editor for LaTeX) and I need every chapter to begin on a new page (not necessarily an odd one). Right now it just puts every chapter one after the other. How can I ...
6
votes
3answers
660 views

An unexpected value of \clubpenalty

In the following MWE, \clubpenalty has the expected default value of 150 at the begin of the document. However, a combination of a) a \section b) a paragraph c) a quote environment – in this ...
5
votes
1answer
3k views

openright in book class not taking effect

I have the following command in my preamble: \documentclass[letterpaper,twoside,openright]{book} But \chapter{}s still start on the left. I have seen this thread and this thread but the solutions ...
15
votes
2answers
3k views

Breaking pictures across multiple pages

I am a relative TeX newbie trying to write a new package to generate timelines that can span multiple pages (the existing timeline solutions are not suitable for me, and I would like to write ...
3
votes
1answer
654 views

Making algorithms display after the paragraph and split them in pages

I am using algorithmicx to write algorithms. I want to be able to write algorithms so that they appear right after the paragraph they have been written and possibly split them from the end of one page ...
2
votes
1answer
492 views

Bad looking table of contents (on entire page)

\documentclass[12pt,a4paper]{mwrep} \usepackage{polski} \usepackage[cp1250]{inputenc} \usepackage{indentfirst} \frenchspacing \linespread{1.3} \author{Me} \title{My title} \begin{document} ...
4
votes
1answer
316 views

Custom footnote breaks

Does anybody have an idea how I could get custom footnote breaks like "if the footnote is longer than x lines, then break it to the next page"?
39
votes
3answers
9k views

How to avoid page-breaks inside paragraphs?

I would like to know if there is any global command that would prevent any page-breaks inside paragraphs. I'd rather have the whole paragraph on the next page instead of having it cut in the middle. I ...
1
vote
2answers
267 views

No white page before full pdf page as front cover. (title page)

I have a little problem with a pdf that I want as front cover for a report. When I add a pdf as front cover I get first a white page and after that the pdf. But I want it to print the pdf first than ...
7
votes
2answers
511 views

Large table (ca. 30 columns) covering one or several double pages?

For the appendix of my Ph. D. thesis I need to typeset some very big tables containing raw data. They have about 30 columns and might have enough lines to not fit vertically on one (double)page. Is ...
1
vote
2answers
290 views

In book class, make the titlepage environment successively displayed

I use several titlepage environments on book document class as \documentclass[openany]{book} \begin{document} \begin{titlepage} This page is title page \end{titlepage} \begin{titlepage} This page is ...
4
votes
1answer
525 views

Prevent column break in multicolumn index

I am using imakeidx to generate a multicolumn index with makeindex. Here is an excerpt from my .ind: \item \BRbooktitlestyle {\BRepistlenumberstyle {1}Jean} \subitem ...
10
votes
2answers
1k views

Test if a paragraph has a page break in it?

I'm trying to use TikZ to make fancier frames. I'm using the clever \tikzmark thing that Andrew Stacey wrote to put nodes at the top left and bottom right of the body of an environment. Then I use ...
1
vote
2answers
2k 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, ...
6
votes
2answers
242 views

Word breaking for two sentences

I have written following command: \newcommand{\ger}[2]{{\noindent\raisebox{-0.2mm} {\includegraphics[width=5.47mm,height=3.28mm]{Flag_1.pdf}} \color{red} ...
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, ...
7
votes
1answer
2k views

Get List of Listings in an Appendix [closed]

I am using LyX with the listings package. I want to have Appendix A be titled "Code Listings" and then have the List of Listings. Right now I have \lstlistoflistings in an ERT. By using ...
30
votes
2answers
10k views

How can I split a beamer bibliography across two slides?

I have several citations in a beamer-based presentation. Is it possible to split the bibliography across two slides? I'm using natbib / bibtex. And I currently just have: \begin{frame} \tiny ...
16
votes
3answers
3k views

multicols not wrapping to 2nd column properly?

This question led to a new feature in a package: multicol I am having problem with multicol package, I created a sample demo to show it. When I put 3 minipages of certain height in the ...
6
votes
1answer
829 views

How do I prevent LaTeX from putting \sections at the very end of the page?

Please take a look at the screenshot below. I am having a problem where LaTeX would put the \section at the very end of the page. So far I fixed it by using \newpage but I just learned that it was ...
2
votes
1answer
324 views

Section headers not sticking with first paragraph

I'm seeing lots of section/subsection headers getting split up from their paragraphs across page and column boundaries. I've never seen this before, but I'm also using a class file that's new to me, ...
9
votes
1answer
309 views

When is \if@nobreak set to \iftrue or \iffalse?

In my answer to a question on page breaking, I used a private switch that the user had to set by hand to prevent tables which start just after a section from breaking (at the first line). It seems ...
2
votes
1answer
728 views

Framebox and minipage causes white space and is not float

I have a \framebox (I don't insist on using this command) and a minipage that causes whitespace, because the drawn box is not allowing any text before or after and it itself does not break over pages. ...
10
votes
1answer
5k views

single-column revtex4-1 adds a page break after the title section

Using revtex4-1 in single-column mode produces a page break after the abstract. This is not the behavior with revtex4. The minimal example is really simple: \documentclass{revtex4-1} ...
3
votes
1answer
4k views

algorithm2e split over several pages

Is there an option in algorithm2e to split the algorithm over several pages? Please no answer with "use algorithmic or listings packages". algorithm2e is the best package for algorithms in latex, so I ...
1
vote
1answer
259 views

The last section goes beyond the bottom border

I have my last section which consists only of {tabular}, it is longer than 1 page, so I need to split it to 2 pages. So I have done something like that, hoping it displays the first {tabular} on the ...
12
votes
1answer
466 views

How do I check whether the text will fit in one page?

I am trying to typeset a page that varies in length. Sometimes it's just shorter than A4, but sometimes it exceeds the length of A4. My question is, how can I check whether the text will fit in one ...
3
votes
1answer
605 views

\newpage, \pagebreak, and \clearpage within a set of flashcards

I am using the flashcards document class, with the avery5371 option that produces ten double-sided 2"x3.5" cards per page of letterpaper geometry. When I make changes to some cards, rather than ...
6
votes
1answer
278 views

Is there a “\nocolumnbreak” analog to \nopagebreak?

If I want to prevent latex from putting two (short) paragraphs on different columns, is there something similar to \nopagebreak that will let me do this?
7
votes
2answers
3k views

How can I ensure that a listing is not going to be split?

How can I ensure that a listing is not going to be split? If it is going to be split I want that the entire listing to move to the following page, effectively moving everything at pass. I mean any ...
6
votes
1answer
2k views

Page break with \include

I like to print my drafts with big fonts and small margins (i do this in memoir style in a single chapter), but the \include comand creates a page break. Is there a way to avoid this and have section ...
1
vote
1answer
290 views

XeLaTeX inserts blank double page compared to pdfLaTeX

I've tried recompiling some complex documents meant for pdfLaTeX using XeLaTeX. After a few fixes and \ifxetex in the preamble (regarding input, hyperref and font encodings), it went through... but ...
4
votes
1answer
295 views

footnoterule not moving with footnote

I'm using the book documentclass and the footmisc package. I made some changes to the original footnote macros, and this causes the following problem when the footnoted word is on the last couple of ...
4
votes
1answer
2k views

How to avoid page breaking of a section [duplicate]

Possible Duplicate: Unbreakable block I'm writing my resumee in LaTeX and I would like to avoid page breaking in small chunks of text (namely, I detail the different tasks I performed in ...
11
votes
1answer
682 views

How can I typeset parallel lists of paragraphs on facing pages?

(Not a duplicate of this question.) I'm trying to typeset a document for my father, which contains a list of paragraphs that must be printed aligned on facing pages. Page breaks must ideally not ...
18
votes
2answers
1k views

Vertical spacing, pagination and ideal results

I found that the best way to avoid widows and orphans is setting penalties and using rubber lengths between paragraphs, for instance, \setlength{\parskip}{1pt plus 1pt minus 1pt}. When I shared this ...
1
vote
1answer
2k views

Does the \bibliography command add a page break afterward?

I am trying to add an entry from my .bib file into a document. After the \bibliography command is issued, the following sections starts in a new page. I have looked around but have not been able to ...
4
votes
2answers
424 views

Problem with the numeration appearing in the table of contents

I have some trouble with the page numbers printed in the table of contents. I am writing a text in book class. In my text, I first print a table of contents with the commands \frontmatter ...
20
votes
3answers
2k views

How can I force ToC not to end with a chapter?

So I am writing a programming book and I decided to include \sections in the ToC as well (see picture below). The problem I am having is that I have ugliness where \chapter is the last item on the ...
10
votes
4answers
9k views

How do I force \section's to start on a new page if they don't fit on current page?

So I am writing a programming book, and I use \section for each topic. For example, I'd write, \section{Another way to double-space a file} \begin{lstlisting} awk 'BEGIN { ORS="\n\n" }; 1' ...
10
votes
3answers
5k views

How to box verbatim to prevent page break?

If I try \mbox{ \begin{verbatim} Some looooong text... \end{verbatim} } Then some compilation errors occur.
0
votes
1answer
155 views

Setting the text of a small chapter more compact

Is there any way to force latex to put text on the same page, but not spreading it over more than one page? I have a chapter which is about 1 1/4 pages long. Latex sets it very sparsly. I would ...
1
vote
0answers
232 views

Get remaining height on page (and scale image to it) [duplicate]

Possible Duplicate: How to define a figure size so that is consume the rest of a page? Hi all, I've seen How to compute the remaining space on the current page - but that doesn't really ...
4
votes
1answer
439 views

ledpar: How to force a pagebreak in {pages}-environment/stanzas?

How can I force a pagebreak in ledpar’s {pages}-environment between to \stanzas or even between two lines of a single \stanza? The reason for my question is that ledpar sometimes breaks the page ...
5
votes
1answer
4k views

How to control column/page breaks in multicols environment with nested lists?

I've a nested list within a multicolumn like this: \begin{multicols}[2] \begin{list} \item main item1 \begin{list} \item this is a very long item \item this is a short ...
4
votes
1answer
963 views

Break a table between pages AND rotate it sideways

I have a long table with a lot of columns, so I want it to be landscape. The problem is I can't figure out how to have both a rotated table, and automatic break between pages?
2
votes
1answer
1k views

LyX: listings over multiple pages [closed]

I am trying to use LyX to insert child document-listing-program. The program imports OK but it is too long to fit on a single page. At the bottom of the page it outputs over the margin, sometimes ...
7
votes
2answers
745 views

Prevent xtab breaking table too soon

Xtab breaks a long table spanning multiple pages too soon -- see my screenshot: The output seems rather unsightly to me. Can I make it take more of the available space? Alternatively, is there a ...