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

7
votes
1answer
109 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 ...
7
votes
2answers
186 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 ...
7
votes
1answer
887 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
1answer
66 views

Supress `\cleardoublepage` for _some_ chapters

I am using book environment. Between \listoffigures, \listoftables, \printglossary[glossaryname]s and appendices, I need a normal \clearpage between them (not a \cleardoublepage). I still need to ...
7
votes
3answers
101 views

Turn advise on page in exam [duplicate]

I like to have a "turn page around" advise on an exam sheet because it continues. Right now, I do it manually. I need to search where the page ends and put a \vspace*{0.5cm} \hfill \textit{Please ...
7
votes
1answer
115 views

wrapfigures and quote environment not working together

I want to have a figure floating next to a block quote. So I used the wrapfig package and the quote environment. If you typeset the following example, you will see that the figure is printed on the ...
7
votes
2answers
575 views

Chapter title and abstract in the same page

I'm writing a report and I need to write an abstract for the chapter after the chapter title in the same page. How can I do this?
7
votes
1answer
706 views

Strange blank page between abstract and ToC

I am puzzled by a blank page appearing between my abstract and ToC. Since I'm using the report document class, I am not expecting LaTeX to insert any blank pages. Here is a MWE showing the problem: % ...
7
votes
1answer
459 views

How to prevent a page break between section title and colored rule?

I use \usepackage[explicit]{titlesec} to customize the design of my sections, subsections... In particular, i have : \titleformat{\section}% {\large\sffamily\bfseries}% {My Section \arabic{section} ...
7
votes
1answer
3k 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 ...
7
votes
1answer
127 views

How can I keep my TikZ overlay picture on the same page?

I needed to draw squares to highlight submatrices and I found on the internet (perhaps here) a snippet that uses TikZ. By the way I found that if the math expression is at the end of the page, the ...
7
votes
1answer
116 views

Avoid widowed signature lines

I have documents created in XeLaTeX with signature lines appearing at the end of the document. Sometimes these signatures appear on pages by themselves i.e. without preceding content. I would like to ...
7
votes
1answer
565 views

How to keep Heading together with text?

I use a very custom style (not mine) and very frequently I get a heading on the bottom of a page and the next paragraph on the top of the next page. Sometimes this paragraph may be a list or similar. ...
7
votes
1answer
232 views

How to avoid bad page breaks with lettrine?

I use the lettrine package to lower the first letter at the beginning of some paragraphs. But sometimes it happens to be the last line of the page and the result is awful. Is there any way to move it ...
7
votes
1answer
251 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!
7
votes
1answer
1k views

How to make a list of unbreakable items?

In continuation of this question, I tried to make a list of items each consisting of unbreakable text. This can be done manually using minipage: \documentclass[10pt,a4paper]{article} ...
7
votes
1answer
212 views

defining a new breakable colored environment for examples

I want to define a new colored environment for my examples. There is two title bars at top of this environment, side by side. One is filled by green color and there is a word "Example" in it. Another ...
7
votes
2answers
178 views

How can I tell LaTeX to only make pagebreaks on new sections?

I'm working on a document where it's important that sections are in the same page. How can I tell LaTeX to only make a page break (if necessary) when I write a new \section without having to manually ...
7
votes
1answer
72 views

mdframed being cut across pages

Is there a way to prevent this (see image) from happening when you are going onto another page?
7
votes
1answer
182 views

In-row table page break

I'm stuck on a problem for hours. I'm using the tabularx environment to create a double-column table where the second column takes up several lines. An example of that table is shown here. Since such ...
7
votes
1answer
261 views

Get List of Listings in an Appendix

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 ...
7
votes
1answer
277 views

Page breaking problem with exam.cls

For some time, version 2.01 of the exam document class has been used in my department. In the future we are going to use the latest version (currently 2.4), and this has to be customised so that ...
7
votes
2answers
3k views

Big tables with big items: pagebreaks within items?

I am using LaTeX for creating PDF files automatically from within Python scripts. The documents I create basically consist of just one big table, which can span several pages. It consists of three ...
7
votes
1answer
149 views

Allow line breaks but not page breaks in inline formulas

It often happens that LaTeX breaks up an inline formula over two lines. However, I find it quite distracting when it breaks an inline formula over multiple pages. For example: ...
7
votes
1answer
237 views

How to put footnotes in the page where they belong in a mdframed environment

I have a large bunch of text in a mdframed environment, that span more than one page. As it seems reading the documentation, the mdframed environment put every footnotes at the end of the frame, by ...
7
votes
1answer
355 views

How can I make selected sections always start on an even page when using document class article or book?

The reason I want this is as follows: I want my printed paper reports to have a results section where the result description is on the left side of a facing double page, and the results table is on ...
7
votes
1answer
86 views

No pagebreaks between questions and answers

I'm working on a homework set, and one of my answers to a multi-part question has become very long. I've been keen on keeping problems and solutions as much on the same page as possible, and my ...
7
votes
1answer
211 views

Forcing footnotes to appear on the next page

I need a way to make some footnotes appear on page 2n+1 when the text that they're "attached" to occurs on page 2n. Is there something like a \newpage command that I could use in the middle of ...
7
votes
1answer
315 views

Rounded corners not working in \mdf@singleextra using mdframed with TikZ

I am creating new framed environments using the mdframed package (along with TikZ) based on the digression example given in mdframed-example-texsx.tex. My code is the following: ...
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
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' ...
6
votes
4answers
280 views

How to keep the last page number even?

I want to make sure the last page always be even, so I defined command as the following: \documentclass{article} \usepackage{lipsum} \usepackage[paperwidth=302pt,paperheight=400pt, offset=0pt, ...
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
3answers
539 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 ...
6
votes
3answers
564 views

Proper way to change a font temporarily with fontspec

I have been using fontspec in a lualatex document where as instructed by the manual I set my main/sans/mono font in my preamble with some default features. However at some point I wish to temporarily ...
6
votes
2answers
488 views

Proper way to do a “page break”

Lets assume that in my latex code I have the following paragraph as an example. The leaked cabled from the US embassy to Washington indicate that in the run up to the May General Election Mr King ...
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
1answer
562 views

Proof Split Over Two Pages

I have a proof that should take up only just over half a page; however, when I compile it, only the first few sentences appear in the bottom half of the page where my proof starts, and the rest is ...
6
votes
2answers
205 views

Question about zref bundle (changing the behaviour of footnote rule)

In bidi package, we have three footnote commands \footnote (typesetting RTL footnotes in RTL mode and typesetting LTR footnotes in LTR modes), \RTLfootnote (always typeset RTL footnote), and ...
6
votes
3answers
310 views

Break PDF booklet into pages

I have a PDF with booklet-odered pages (like the one below). I would like to break these PDF A4 pages back into the original twice as many PDF A5 pages. |-------| PDF page 1 | 8 1 | |-------| ...
6
votes
1answer
415 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
2answers
472 views

minted truncates the code if it doesn't fit into one page

minted works well when the code snippet is short, or fit into one page. The problem occurs when I pasted a code snippet with several hundred lines. Sometimes it processed but the output was truncated; ...
6
votes
2answers
192 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} ...
6
votes
1answer
1k 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
65 views

Acronym list won't span more than one page

I found this problem by noticing that the acronym package acro was inserting a blank page before the acronym list. I then discovered that not only was it inserting this blank page, but that list of ...
6
votes
2answers
162 views

Using expex across pages

I am using the expex package to align two types of text, doing it as if it were a gloss, and it works fine. There is one problem, though: Many of the texts I'm working on are longer than a page, and ...
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
1answer
123 views

Multiple vertical rules along text – by using \leaders?

I want to draw individual vertical rules on the left side of consecutive paragraphs/vertical boxes covering the vertical skips. In my case for every paragraph/vertical box, there can be different ...
6
votes
1answer
51 views

Force hardspace in multiple citations

To cite multiple references, I'm using \cite{foo, bar}. Unfortunately, the second citation appears on a new page. Is there a way to force a hardspace between the two citations? This is primarily a ...
6
votes
1answer
1k views

LaTeX: First page blank

I just installed LaTeX with TeXworks today. I need to create a simple PDF out of a couple large images, I realize this is likely very crude and roundabout but I somehow managed to get the thing done. ...

1 2 3 4 5 14