{page-breaking} is about how (La)TeX breaks pages (and, in multi-column documents, columns) and how page/column breaking can be influenced.
6
votes
1answer
108 views
How to spread floats automatically over a whole chapter?
In a chapter with many figures, I'm having trouble to get the floats to be interlaced with the text. To quote http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions:
Authors sometimes ...
2
votes
1answer
2k views
Algorithm over two pages, with itemized lists
I am trying to split an algorithm over two pages. This has already been addressed before, with the closest result being this question. However, I have a wrinkle - I need the algorithm to have two ...
16
votes
2answers
742 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 ...
14
votes
2answers
357 views
Clearpage without pagebreak?
Is there a command which does the same like \clearpage (typesetting all floats which have not been typeset yet) but then does not insert a pagebreak but continues with the following text/graphics on ...
14
votes
3answers
1k views
multicols not wrapping to 2nd column properly?
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 multicol it puts 2 of the boxes on the first column, but the 2nd box is ...
11
votes
1answer
272 views
What are 'pagebreak hints'?
The FAQ refers to "pagebreak hints". I can't find any mention of these by searching (for "[page-breaking] hints" and various other things). What are pagebreak hints and how does one use them?
11
votes
1answer
504 views
How to avoid widow lines after displayed equations
If a displayed equation is close to the bottom of the page, TeX likes to insert a page break even if the current paragraph contains only one more line after the equation, as e.g. in
... it follows ...
7
votes
1answer
344 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
...
6
votes
1answer
880 views
Proofs in Beamer
I'm writing a presentation in Beamer, where I present proofs which are longer than one frame. How to make Beamer to break it automatically to another frame? If it is not possible how am I supposed to ...
6
votes
2answers
2k views
Allow theorem split in many frames in beamer
How can a theorem-like environment be (automatically) split into multiple frames if the vertical space it needs is not enough in a frame?
In my document preamble I have
\theoremstyle{definition}
...
6
votes
4answers
259 views
Rule before one new section
I use rule so as to separate the differents sections. I would like to automate this so as to use the following syntax :
\section*{One day}
\noindent\lipsum[1]
\section*{Another day}
...
6
votes
4answers
2k 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'
...
5
votes
1answer
456 views
How to disable pagebreak on \hline in supertabular?
This is similar to How to disable pagebreak on \hline in longtable? but for supertabular or xtab: With \tabularnewline\hline I get pagebreaks (or in my case columnbreaks) before the hline, i.e. the ...
5
votes
2answers
603 views
thmtools: How to prevent pagebreak between theorem and proof?
I am using thmtools to format a collection of theorems and their proofs.
Is there any way to prevent a pagebreak from happening between the last line of a theorem statement and the first line of the ...
4
votes
1answer
452 views
Figures on left pages, text on right pages
I'm writing a thesis in the book document class and I'm using a lot of figures to explain the working method. If I use the method proposed in Figures on left pages, text on right ones with class book, ...
4
votes
1answer
2k 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
1k views
Longtable alternative for twocolumn documents?
Is there a recommended method for incorporating multi-page tables into twocolumn documents? It's clear that the longtable package isn't set up to deal with documents of more than one column.
Is ...
2
votes
2answers
541 views
Redefine \tableofcontents to start a new page after the ToC
How can I properly redefine \tableofcontentsto include a \newpage or \clearpageafter the table of contents?
2
votes
1answer
360 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 ...
2
votes
1answer
1k 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 ...
2
votes
1answer
400 views
How can I force an image and its caption to be on the same page?
I am using the caption package, now I have one problem: In one case an image is placed at the bottom of one page, while its caption is placed on the top of the following page. In this case I would ...
1
vote
1answer
757 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. ...
0
votes
1answer
1k views
Force a block of text to be impervious to page breaks [duplicate]
Possible Duplicate:
Unbreakable block
I have a block of text (possibly comprising many paragraphs) near the end of a page. The page break is being inserted in the middle of this block--how ...
11
votes
2answers
140 views
Can I get at stuff in “current page” or “recent contributions”?
When I compile the following,
\documentclass[a4paper]{article}
\usepackage{atbegshi}
\AtBeginShipout{\showlists}
\showboxdepth\maxdimen
\showboxbreadth\maxdimen
\usepackage{lipsum}
...
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
3answers
211 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
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 ...
7
votes
1answer
101 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
1answer
883 views
Long equation does not page break
I have a series of equations steps, about 20 lines or so. I would like to have it automatically decide page break when necessary, but it resists and always tries to stay in a whole page, rendering the ...
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
0answers
131 views
How to put one big image on each page [duplicate]
Possible Duplicate:
How to include a picture over two pages, left part on left side, right on right (for books)?
The problem is the following:
I am formatting a twopage book on latex and I ...
6
votes
1answer
95 views
Environment makes unnecessary page break
I have a problem with user-defined environments in LaTeX. Even though the content of an environment seems to fit, sometimes LaTeX makes an unneccessary page break after all.
Here is my MWE:
...
6
votes
1answer
413 views
How to wrap text around a landscape table over multiple pages? \sidewaystable or \landscape + \longtable
I am trying to create a landscape table that breaks over multiple pages. I have successfully done this with the following:
\begin{landscape}
\begin{longtabu} to \textwidth{some columns}
\caption[my ...
6
votes
1answer
461 views
suppress pagebreaks in titletoc's titlecontents* blocks
How do I suppress pagebreaks in the toc "paragraphs" produced by titlesec's \titlecontents* command without stopping linebreaks between subsections?
The follwoing suppresses linebreaks within ...
6
votes
1answer
373 views
Excursus environment using mdframed: Issue with page breaks
This question is a follow-up question to: Access mdframed node coordinates with TikZ?
@MarcoDaniel: Awesome package (mdframed)! Nice clean code, too.
@Tobi:
I really like your new excursus ...
6
votes
1answer
166 views
Add text at an optional page-break only when breaking occurs
I have two tables (created with tabularx in the memoir class):
[ Table 1 ]
[ Table 2 ]
They may be adjacent on the same page, or split across two pages like this:
[ Table 1 ]
---- page break ----
...
6
votes
2answers
2k 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?
5
votes
2answers
123 views
How to create a page with two columns that can span pages to achieve my special goal?
I am a Chinese plain TeX user and also a beginner. Now I encounter a hard question, that is
I must write some numbered English paragraphs at the left column and its corresponding Chinese ...
5
votes
0answers
261 views
mdframed: large texts with equation arrays skipping pages in \documentclass{memoir} (or book) [closed]
The package mdframed works very well enclosing plain texts with decorated frames: even when they span many pages the frame breaks accordingly! :-)
Unfortunately that is not yet the case when the ...
5
votes
1answer
365 views
Formatting a book with scene markers
I'm laying out my wife's book using LaTeX; I'm using KOMA-Script scrbook as my document class, but I don't think that my question here is specific to KOMA. Between certain scenes, we have scene ...
5
votes
1answer
209 views
Can I set an adjustable line spacing to avoid orphans and widows?
I have a relatively simple question. I'm compiling a large document and finding that I have a lot of pages that start with the last two lines of a paragraph. Is there a way to allow the line-spacing ...
5
votes
1answer
221 views
How to retain the double-column formatting of the previous page after \clearpage?
I'd like to have some additional material after a paper, starting on a new page. For this purpose I'm using \clearpage or \cleardoublepage (\newpage doesn't work the way I want). Unfortunately, while ...
5
votes
1answer
597 views
Shaded theorems (thmtools) spanning pages
When the thmtools package is used to create theorem environments with a shaded background, it does not allow separate theorems to span more than one page. This is a rather severe problem if the ...
5
votes
2answers
553 views
Environment with first paragraph in bold and no pagebreaks
I would like to setup a new environment which typesets the first paragraph in boldface, the following paragraphs in normal text, and with (possibly) no pagebreaks between the first paragraph and the ...
5
votes
1answer
2k views
How to continue the framed text box on multiple pages?
I am using framed package to create text boxes using begin{framed} and end{framed}. My problem is that my framed box goes on for two pages, and I don't want the text box to complete itself at the end ...
4
votes
2answers
78 views
settototalheight issue with empty lines
I am using \settototalheight to calculate the height of the text in order to use needspace correctly.
This is the code i am using :
\documentclass[12pt]{article}
\usepackage{graphicx}
...
4
votes
1answer
177 views
Colored Curly Brackets spanning across multiple pages
This is just a thought that came for the notes I am working on,
I have a need to create curly brackets which span across multiple pages.
I don't know if this is possible to do or not.
my curly ...
4
votes
1answer
178 views
(Avoid) hyperref links across pages, with automatically generated content
In my previous question I implemented thumbs.sty, a package that allows the creation of Thumbnails of other frames in beamer (if you want to read that one, you'd beter brew some fresh coffee :) ).
...
4
votes
1answer
372 views
Onecolumn till end of page in twocolumn mode
I know about using the widetext environment for setting text in onecolumn mode and the multicols package for effortless switching between one- and twocolumn mode, but I think this is not too great if ...
4
votes
2answers
218 views
Placing long table inside \shadowbox
I have a multi-page table produced by long table package and I want to put each page of the longtable inside \shadowbox. Here is what I have tried:
\documentclass{article}
\usepackage{fancybox}
...