{page-breaking} is about how (La)TeX breaks pages (and, in multi-column documents, columns) and how page/column breaking can be influenced.
9
votes
2answers
417 views
Section should automatically start new page if the whole section does not fit on current page
I would like my sections to start on a new page if they do not fit on the current page. In other words: if a section fits on the current page print it, if it does not fit start printing it on the ...
9
votes
2answers
983 views
biblatex: No pagebreak in bibliography entry
Is it possible to tell biblatex to never split a bibliography entry across two pages?
Ideally this should work for both \cite and \fullcite.
9
votes
2answers
713 views
Automatic way to break narrow tables into two columns?
Is there an easy way to break long narrow tables into two (or possibly more) columns (i.e. without manually rearranging the columns)?
In the following example you can see that there is a lot of ...
9
votes
1answer
256 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 ...
9
votes
1answer
54 views
Is something the first item on a page?
How can i identify logically, whether something is the first item on a page, i.e. there is nothing above it (apart from header)?
Consider the following, is is basically a feature environment, which ...
9
votes
1answer
175 views
How can I create a chapter with graphics only divided into different sections?
I'm trying to create a chapter with pictures only, but keep running into troubles. The chapter is an appendix, where only some graphics should be displayed, placed in different sections. I don't need ...
9
votes
1answer
133 views
Putting marks for split footnotes
Say, that you have a footnote which is printed in page 1 and 2. How can you put a mark, say $\rightarrow$ at the end of the footnote text in page 1 and at the start of the footnote text on page 2, ...
9
votes
2answers
201 views
Can I make some vertical material disappear if it occurs next to a page break?
I'd like to place a horizontal rule above each section title, to separate the new section from the text before it. But I don't want the rule to appear if the section begins on a new page, since that ...
9
votes
2answers
962 views
Split beamer notes across multiple notes pages
I've only recently discovered the notes mode for beamer, and I'm trying to build a presentation with notes containing my speech. However, my speech is quite large, and is causing note page overflows.
...
9
votes
1answer
428 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 ...
9
votes
1answer
107 views
Index: Repeat first-level item on new column/page?
In my family history book, I'm using a two-level index. First level is surname, and second level is given name. Index items are defined such as the following:
\index{Doe!John}
Often a first-level ...
8
votes
3answers
2k 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}
...
8
votes
2answers
3k 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 ...
8
votes
2answers
4k views
How to force output to a left (or right) page?
I am putting together a document that has several cover pages, both for front and back cover. The bulk of the document is two-sided. Cover pages, however, must be right-side (or left-side, for the ...
8
votes
1answer
3k views
Split the Table of Contents in two pages
Let's say I'm writing a document with 6 chapters. I want to force the table of contents to be split between two pages. The first page would list the first 4 chapters, the second page would list the ...
8
votes
1answer
649 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, ...
8
votes
3answers
210 views
Forcing even number of pages in output (LaTeX — pdflatex) [duplicate]
Possible Duplicate:
How to keep the last page number even?
Is there a way of forcing an even number of pages in output ?
What I mean is to make pdflatex document "intelligent" it will add ...
8
votes
2answers
5k views
How do I force a column-break in a two-column document?
Similar to How do I force a column-break in a multi-column page? I want to force a column-break in a two-column document.
\columnbreak
seems to be undefined without the multicols package.
8
votes
2answers
215 views
Lettrine and section at bottom of page causes bad pagebreak
My custom lettrine and section causes some of my pagebreaks to ruin my layout. Please see the example of the output for the attached code run through XeLaTeX.
Verse 2 on the next page should ...
8
votes
2answers
133 views
Adding a chapter title for indices (multind) on the same page as the first index is printed
I am trying to add a chapter title 'Indices' before the first multind index is printed. However, printindex flushes the page so if I do it, I will get the title, rest of the page empty, and the first ...
8
votes
1answer
102 views
Remove/hide content if it would appear as an orphan [duplicate]
Possible Duplicate:
prevent “action” if top of page
I have some blocks of text, separated by a \hline. Because the LaTeX code is generated automatically from user-entered data, ...
8
votes
2answers
266 views
Memoir: Subbottom over several pages?
In the Memoir class, I use the subbottom command to create subfigures, labeled, e.g., 1(a), 1(b), 1(c) etc. And this works very nicely. However, if I include more figures in subbottoms than what can ...
8
votes
1answer
1k views
longtable multirow problem with cline and nopagebreak
I have a problem using with the package lontable and multirow together.
It seems that the \* is not avoiding the page breack, if I'm using \cline{i-j} just afterwards.
Here the original code for ...
8
votes
1answer
1k views
Full-page figure without extraneous whitespace in text?
My question is along the lines of How do I ensure that figures appear in the section they're associated with?, but slightly different. I have a figure that occupies a full page. By default, LaTeX ...
8
votes
2answers
254 views
Syncing text on bilingual pages
This is quite a technically involved question. Of which the essence is how XeLaTeX handles page-breaking.
I need to produce a bilingual book. With one language on the left hand side page and another ...
8
votes
2answers
113 views
How to show a hint when lstlisting is breaking page?
I use inline lstlisting-blocks with caption.
I have several listings that are running over more than one page or starting at the end of a page.
Now I want to place a hint for the readers, that the ...
8
votes
1answer
205 views
How can I tie two pieces of text together so LaTeX tries not to break exactly between them?
I'd like to typeset two chunks of text (a problem statement and solution) next to each other, but I don't want the problem to be the last thing on a page and the solution to be the first thing on the ...
8
votes
2answers
254 views
Page breaks within enumerated list
I'm writing a document with lots of numbered items, and I would like each of those items to be contained on a single page (rather than split across two pages). Is there a way to do this? samepage ...
8
votes
1answer
406 views
Using mdframed after a section heading
The following is a very contrived example, but it illustrates a problem I am unable to solve with the mdframed package. When the mdframed environment follows a section heading but there is ...
8
votes
1answer
643 views
Change page layout after first page
currently I'm trying to prepare a letter head with XeLaTeX. The first page of the letter should have a sidebar on the right. For this sidebar, the text width should be shrinked to approx. 80% of its ...
8
votes
2answers
245 views
How to check if a section title (or any heading) is the first line of a new page?
I would like to be able to use an \if command to check if a \section appears on the first line of a new page. If a section heading is the first line of a new page, I would like to then adjust some of ...
8
votes
1answer
578 views
Theorem decorations that stay with theorem environment
I am typesetting a document using the memoir documentclass. Currently, my theorems have the following definition (using macros provided by the ntheorem package):
% THEOREMS
...
7
votes
6answers
2k 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 ...
7
votes
3answers
632 views
How to split a page in six equally sized sectors?
I'd like to split an A4 page into six equally sized sectors. I want that page to be in landscape. Each sector has a body of text and a caption.
I don't really have an idea where to start. I know I ...
7
votes
3answers
3k 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.
7
votes
2answers
680 views
LaTeX produces bad, widowed line
I just found a widowed line in my PDF document, created by LaTeX. It looks something like this, see "sion" on the second page:
| blah blah expres- |
| 8 |
---------------------
...
7
votes
2answers
531 views
Multicol - don't wrap
I have two-columned page by multicol:
\begin{multicols}{2}
Lorem ipsum dolor sit amet...
\end{multicols}
It there any way to ban wrapping to the second column. What I mean is, that I ...
7
votes
2answers
145 views
\nopagebreak and \penalty
What is the difference between \nopagebreak and \penalty? (Other than the obvious fact that their arguments are measured on different scales.) When should one use one, and when the other?
7
votes
2answers
3k 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 ...
7
votes
3answers
284 views
How can I make \titlespacing not omit the top spacing?
In a multicols*{2} environment for 12pt linehight text, I use
\titlespacing*{\subsection}{0pt}{12pt}{12pt}
To create exactly 12pt of space before and after subsections. Together with a line height ...
7
votes
1answer
100 views
How do I suppress the whitespace above an equation block at the page top?
How do I suppress the whitespace above the equation block at the page top ?
It is added to the top margin, and I don't want that to happen.
I know that \abovedisplayshortskip controls this for the ...
7
votes
3answers
287 views
Section open right in scrbook
Using scrbook, I would like sections to open on a new odd page, like chapters do. How can I achieve that?
7
votes
2answers
587 views
Marginpar appearing on the wrong side (using memoir)
The subject line pretty much says it all: some marginal notes (beginning of the second page) do not appear on the correct side. (The question is: how can I fix this automatically?) Below is a MWE that ...
7
votes
2answers
801 views
Longtable does not break correctly when used with \specialrule instead of \hline
I'm writing an application that generate latex code, therefore the solution must be the most generic possible to ensure that it will generate clean pdf all the time. I would like to let my users ...
7
votes
2answers
130 views
dblfnote.sty with musuos.cls causes unbalanced footnotes
I’m the author of musuos.cls and while writing a paper with it I noticed that the dblfnote-package leads to unbalanced footnote columns
You can see that the left colum has one line less than the ...
7
votes
2answers
931 views
Index shouldn't start new page
I am writing an article in LaTeX 2e with \documentclass[twocolumn]{article}, including an index. The document prelude includes \usepackage{makeidx} and the \makeindex command. At the point where I ...
7
votes
2answers
219 views
Longtable: page breaks within row possible?
I am editing a longtable. Some of my cells contain a lot of text. Page breaks seem to happen only where table rows end/begin. I'd like, however, for the rows to span pages; it's fine with me if, for ...
7
votes
2answers
3k views
Chapter without pagebreak? (In twocolumn document.)
I've googled, and I read a lot about how not having a pagebreak before a new chapter is bad style. I've read about how one could use sections instead. I've read about how changing whether a chapter ...
7
votes
1answer
343 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
...
7
votes
2answers
183 views
Different width of frame across page bounadries with mdframed
When a mdframed frame begins with a display math, and the break occurs just at the end of the display math environment, the widths of the frame are different across the page break boundary:
Also ...