Tagged Questions

{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
1answer
514 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
9k 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
821 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
322 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
307 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 ...
1
vote
1answer
717 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
253 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
463 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
601 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
275 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
292 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
1k 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
674 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
420 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' ...
9
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
154 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
436 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
3k 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
952 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
734 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 ...
2
votes
1answer
489 views

Macro after heading shall not allow page break.

In a previous question I needed a solution for the following problem: I had defined a command for inserting special custom notes in my document with the fixme package and if those notes followed a ...
3
votes
2answers
3k views

How to force text and figures to be on the same page when minipage, samepage, nopagebreak do not work

I'm trying to get four figures (centered on a page in a 2x2 grid) to show up on the same page as the section heading ("Appendix"). The following puts the word "Appendix" on one page (all by itself) ...
4
votes
2answers
243 views

Ending all pages with period/fullstop

I want to have LaTeX (LyX) make its pages end at a fullstop (.). In other words no broken sentences carried to next page. I hope to use \raggedbottom so that pages will be shortened by a few lines ...
8
votes
1answer
313 views

Chapter on any page, but recto after part

Using the book style, I need chapters to start on anypage (as in openany) BUT to be recto after a part (which is also recto). fussy eh!
11
votes
1answer
5k views

Pseudo code to be spread over multiple pages?

I am writing pseudo code in the algorithmic environment. It is quite long and doesn't fit on one single page. Instead of it continuing on the next page, it is cut off. I tried inserting it into a ...
2
votes
1answer
464 views

Multipages side by side listings

Could you tell me what should I do to be able to insert multipages, side by side listings in Latex document? I have already tried with \begin{minipage}, but it doesn't work with multipages. EDIT: ...
4
votes
0answers
152 views

Condition to determine if current line ends or starts the page [duplicate]

Possible Duplicate: Conditioning behaviour of a macro on whether on top of a new page I have two paragraphs with some separator (rule) between them. I want to make this separator appear ...
2
votes
1answer
2k views

Heading at the bottom of the page

I'm typesetting a large document (phdthesis) with pdflatex and I'm using KOMAscriptand the scrreprtdocument class. I was very surprised as I saw a heading (\subsubsection) standing at the bottom of a ...
4
votes
1answer
4k views

Remove unnecessary blank page after creating an appendix

Declaring appendices, an unnecessary blank page is created immediately after. Leaving a 1-page break before the first appendix!? How can this blank page be removed. MWE below. ...
18
votes
4answers
12k views

How to show \listoffigures and \listoftables on one page and in the ToC?

Is it possible to put the list of figures and tables onto one page? I only have two tables in my thesis, so having it on an extra page looks quite bad. I've read about the tocloft package and tried ...
5
votes
3answers
5k views

How not to indent the very first line on a page in LaTeX?

If the first line on a page happens to be the first line of a paragraph at the same time, I would like not to indent it (just as if it is the first line of a section). Is there a way to do this ...
4
votes
2answers
493 views

Problem in visualizing tabular with TikZ

I'm quite new to LaTeX (I've used it at university for some basic formulas and ready to use templates) and I'm getting again into it for graphics stuffs: I love its clearness. I'm trying to make a ...
12
votes
3answers
360 views

Avoiding orphans at the start of quote/quotation environments

To me, orphans -- page breaks after the first line of a paragraph -- are tolerable in the normal text body, and so I leave TeX's default settings (\clubpenalty=150) alone. On the other hand, I want to ...