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

3
votes
2answers
23 views

Partial center in environment

I'm writing a lab manual with step by step directions. Some directions include screenshots. To keep the screenshot with the line of direction, I use samepage. I am exploring an environment I can use ...
0
votes
0answers
49 views

Persistent Gap! [duplicate]

I'm working on my paper using MiKTex v2.9 and i came across this odd problem with {proof} environment. Syntax i use for proof is working properly in other areas of text but in one place i encountered ...
2
votes
1answer
29 views

Only allow pagebreak between lefthand and righthand page in double sided document

I'm working on a songbook, using the class scrbook. Every song is a single file imported using \input. I'm using \enumerate for the verses and refrain. At the moment, I put the whole song in a ...
1
vote
0answers
34 views

Package hyperref causes a blank page to be added before a section starting with a large image

When I try to have a section start with a large image, an extra page is added before the start of the section. I tracked down the problem to the hyperref package; when it is not loaded the extra page ...
0
votes
0answers
19 views

create custom badness for pagebreaking over a custom area

This is a - as I think - tricky question. I want to create and/or modify a badness for pagebreaking/newpage. It should work like this (pseudo code): \begin{areaOfBadnessValid}{badnessvalue} ...
1
vote
1answer
20 views

Page break: enumeration with headline

In my document I created a new environment called examples. Basically it's an enumeration with the headline "Examples". The idea is to get something like: Examples Example 1 Example 2 Example 3 ...
1
vote
0answers
20 views

Penalising page breaks within environment

I have an environment that I use to format examples in a document I'm writing. The contents of that environment typically consists of a few short paragraphs, often each only a line or two long. I ...
2
votes
1answer
35 views

How do I prevent figure pages from interrupting passages?

I've written a text with some page-size figures in it. The problem is: The figure pages are interrupting sentences and paragraphs. The figures are supposed to be looked at for some time, so I'd like ...
0
votes
0answers
27 views

Page break incorrect with sideways table

I'm having difficulty with a sidewaystable: after the section heading it will leave a whole page blank after having a separate page with the table. How can I get it on the same page? ...
0
votes
0answers
24 views

Weird floating properties

I have a document that is arranged this way: However, I don't like this, because the order of my figures are messed up. What I would like to see is something like this: Can you tell me how to ...
3
votes
3answers
81 views

speech cards / palm cards

I wish to print a document in the form of speech/palm cards. That means, the text of the speech needs to be divided up by LaTeX automatically so that it fits into boxes of fixed dimensions ...
1
vote
0answers
47 views

Editing .cls file [closed]

I am using a .cls file for my thesis but the document format is not perfect. I need to guarantee that the pages which are generated with the following commands are in the odd pages: \maketitle, ...
2
votes
1answer
21 views

Maximize size of figure such as to maintain page breaks

In this MWE, I manually fine-tuned the width of the graphics (0.711082\linewidth) in order to maximize its size while fitting the whole document on one page. \documentclass{article} \usepackage{mwe} ...
0
votes
0answers
33 views

\newpage or \pagebreak DONT work before \section

I am trying to make a \section{Chapter 1} start on a new page using \newpage immediately before it, and it doesn't work. Can anyone tell me why? Thanks
7
votes
0answers
107 views

Typesetting literate programs: how to enable page breaking mid-paragraph, but not mid-code?

I'm writing a book that is a literate program. A literate program is divided into "chunks" or "sections," each of which has a documentation part and a code part. (It is also permissible, and in my ...
1
vote
0answers
35 views

Remove Blank Pages

MWE: \documentclass[a4paper,12pt,leqno,footinclude=true]{memoir} \setcounter{tocdepth}{3} \setcounter{secnumdepth}{3} \usepackage{tocloft}% \newcommand{\cftchapaftersnum}{.} \begin{document} % ...
10
votes
4answers
325 views

Creating arbitrary number of blank pages

Is there a single command with which one can insert an arbitrary number of blank pages inside some latex text?
2
votes
1answer
47 views

Problem Splitting Very Long Algorithm on two or pages

In the example below, I have a very long algorithm, probably spanning 3 pages. I tried manually splitting the code up, but each time, a new algorithm number is generated. How do you maintain the ...
2
votes
1answer
113 views

How can I render a LaTeX document without pages?

Almost always, I simply render electronic documents, so I don't need pages. Also, pages make it difficult to arrange images in a document. I want to draw TikZ graphs for my blog articles, and I don't ...
1
vote
1answer
21 views

Prevent page and column breaks mid bibliography entries in Biblatex/biber

Using biblatex and biber is there any way to prevent a page/column break from occurring mid item? The image below shows bibliography items being split both at the end of a column and at the end of the ...
3
votes
1answer
33 views

Nested breakable frames

I am trying to solve problem with nested frame environments which must be both breakable. It is not important to use tcolorbox if there is some better alternative. Is it possible to display it ...
0
votes
0answers
25 views

My pages are not the same size on the PDF for my Senior Econ paper

I don't know if a basic working example would help, as I would not be surprised if packages are conflicting or I have a typo or syntax mistake in the 10 page document. And I've no doubt made it much ...
2
votes
1answer
36 views

classification labels in headers and footers

I'm trying to write Latex documents that will automatically satisfy government requirements for labeling certain classes of information: - Each paragraph starts with a label indicating its ...
0
votes
0answers
35 views

pagebreaking and `\vfil` in ConTeXt

I am trying to distribute elements vertically across a page: \setupbodyfont [TeX Gyre Pagella, 30pt] % Or something else \showframe \starttext A \vfil B \vfil C \vfil D \page E \vfil F \page G ...
3
votes
2answers
41 views

Auto Generate Custom Text Message for Page Break

I created a new environment that creates a box around text. I used tcolorbox. Additionally, since I wanted to break from page to page, I added 'breakable'. However, what I want it to do is to break ...
13
votes
1answer
114 views

\@clubpenalty leaks out

In the following example the value of \clubpenalty has been reset to the one of \@clubpenalty on the second page: \documentclass[]{book} \usepackage{lipsum} \begin{document} \subsection{abc} blblb ...
3
votes
1answer
44 views

\clearpage produces an extra blank page

I'm trying to insert some sidewaysfigure environments between segments of text. The output should be like Title Page Text (ends about halfway down the page) Sideways Figure Sideways Figure Text ...
2
votes
1answer
32 views

tcolorbox disable repeated text in overlayed node

In the following MWE (built from http://tex.stackexchange.com/a/170767/69378) I have demonstrated that title text in an overlayed tcolorbox node gets repeated across page breaks. I have checked the ...
2
votes
1answer
114 views

How to prevent page break between listing caption and code?

How to prevent page break between listing caption and code (see the picture)? Minimal example illustrating issue: \documentclass[a4paper, 12pt, oneside]{report} \usepackage[a4paper, left=3.5cm, ...
3
votes
2answers
36 views

Preventing page break between a Verbatim environment and an equation

I have a document in which displayed equations often appear immediately after an environment created using the fancyvrb package. How can I prevent page breaks from appearing in between? ...
2
votes
2answers
87 views

Place text on top of bibliography page

I would like to include a quote at the top of the first page of my bibliography section. \newenvironment{wittyquote} {\color{darkgray} \begin{addmargin}[6cm]{0cm} \begin{footnotesize}} { ...
1
vote
0answers
72 views

Blank page between references and appendix

Could anyone help please. A blank page is being created between the references and appendix. I have tried all the usual fixes like \clearpage and \cleardoublepage, but none are working. All the ...
1
vote
2answers
57 views

Line separator to not be used before or after page breaks

I have created a horizontal line in order to separate elements in my document. My question is how can I set it to not be used when it happens to be in the top of the page (i.e. right after a page ...
2
votes
1answer
23 views

Non-pagebreaking return in LyX

I know that in TeX, I can issue \\* to make a new line without a page break. How I do that in LyX?
1
vote
1answer
42 views

When 2 \newpages in raw are joined, and when not?

I tried to define my chapter so it will have an empty page after it, using titlesec. Using 2 newpages in a raw didn't help. I concluded that they are joined together, as if I wrote only 1. Solved this ...
1
vote
1answer
45 views

What causes the pagebreak for chapters and how do I disable it? [duplicate]

I'm using the documentclass ttthesis based on book from here. I really like it, but I don't want to have a new page for each chapter. Sadly every approach I tried failed, and now I noticed it's ...
2
votes
1answer
31 views

How to allow pagebreaks in long “cells” in a table?

was asked to renew our medical-result-printing-system. pdflatex seems to be best tool to do this. A kind of table would be fine to put the data in a structured way. Unfortunately some data Fields can ...
2
votes
1answer
39 views

Is there a simple way to cram a large forest tree into a page or split it into two pages?

If I try to cram a large forest tree into a page by enlarging a page by 3 lines, I get the result below. The tree overlaps with the footer. Below is the code. Is there a simple way to cram it in a ...
4
votes
2answers
97 views

Remove empty pages before glossary

I would like to have "subsections" in my glossary, or simply two glossaries one after the other. However, I always get an empty page (or, because I am using twoside & openright, even two!) between ...
2
votes
1answer
57 views

Tikz remember picture on wrong page

I want to comment some equations with tikz and stumbled upon a tikzmark command that uses the remember picture command. It works fine, I can draw below and above the equation, but whenever the ...
0
votes
1answer
38 views

How to force two “blocks” to be on the same page, without minipage?

I have the following situation (what follows is pseudo-code): \mySection*{Title} \begin{mdframed-theorem} Bla bla [...] that is long. \end{mdframed-theorem} Then something else, the starting of ...
0
votes
0answers
28 views

Last reference item in new page

I am using article class for my document with two columns. The last entry in the reference section appears in a new page. How to avoid this page break before the last reference item?
2
votes
0answers
37 views

Why text beyond the bottom of the page [duplicate]

I encountered a very strange problem. I wrote an enumerate after a long table, the enumerate text will be printed outside the bottom of a page, and some item text can not be shown. I simplified a ...
1
vote
0answers
25 views

newpage causes tex to misinterpret document end

In my appendix, I'd like to have the first page of my chapter to only show the chapter name and the second page start with a pdf I included via the includepdf package. I tried to accomplish this with ...
2
votes
0answers
28 views

Including a Float on a Separate Page

I am having difficulty positioning a float (table) in latex. I have two paragraphs of text, and I want the float to be inbetween these two sections of text, but I also want the table to be on a new ...
0
votes
0answers
50 views

Avoiding pagebreak after newline in theorem

This might be of relevance: Theorem environment - line break after label pagebreak and amsmath theorem environment issue Avoid page break in theorem Situation I used the information provided ...
3
votes
1answer
68 views

How to get uniform spacing between paragraphs across several pages?

I am using \flushbottom to get pages of equal height. When I now insert a tcolorbox which is set to be unbreakable such that a page break becomes necessary, only the spaces between paragraphs on the ...
0
votes
0answers
15 views

Is it possible to visualize a page break in a mdframed environment?

I'm using mdframed to style my code listings. I use minted to realize the code listings. My question is, if there is an easy way to visualize the page break of mdframed. I tried to sketch what I try ...
1
vote
0answers
30 views

Conditional pagebreak depending on position on page

Is there a way to say, add a newline here, if there are less than x empty lines before the next assumed pagebreak? something like \newpageIfThisLineIsLinesAwayFromBottomLessThan{5} I know that this ...
1
vote
0answers
52 views

How to keep page break points when publishing the same content with two different styles?

I would like to publish two or more versions of the same document. The content is the same, the style is different and the page breaks should be the same too, so that I can refer to the same page ...