{page-breaking} is about how (La)TeX breaks pages (and, in multi-column documents, columns) and how page/column breaking can be influenced.
3
votes
1answer
23 views
Leading space in samepage environment after equation
When used directly after the an equation, the samepage environment inserts a leading space. Is this the intended behavior? How do I remove it?
Compare the output of
...
9
votes
3answers
56 views
Avoid page break between line and quote environment
I encountered a little problem while writing my homework in LaTeX.
I wrote the following code:
\documentclass{article}
\begin{document}
\center{Title}
\vspace{18cm}\\
This line should be on the same ...
4
votes
2answers
109 views
Boxed text between pages
I've made boxed text into a manuscript using tikz by following the example in texamples, it works like a charm as long as the box is short enough to fit into a page.
\documentclass{article}
...
0
votes
3answers
38 views
How to start document with empty page followed by table of contents?
In a book class document, I am trying to insert one empty page before the table of contents.
I tried with the following code :
\documentclass[a4paper]{book}
\begin{document}
...
2
votes
0answers
33 views
Ensure float appears directly after `\afterpage` and `landscape`
I have a large (full page) landscape figure that I would like to appear on the page opposite to a large (full page) portrait figure. The landscape figure is generated like so:
\afterpage{
...
2
votes
1answer
42 views
specifying a longtable not to split
I am using longtable in my report as I have many tables that are longer than a page. To make it consistent, I am using longtable for all the tables. Many times because of page settings, a small table ...
0
votes
0answers
28 views
How to pagebreak within listings? [duplicate]
I have a quite big txt file, and the problem is, if I include it with listings, latex tries to put it on one page, but it is too big for one page. So a part is missing. I am wondering, if Latex could ...
11
votes
1answer
74 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 ...
3
votes
1answer
57 views
Split mdframed environment occasionally skips page
I'm currently using the mdframed package for a custom environment for my master's thesis. In rare cases, the environment shows some rather strange behaviour — the correctly split environment (i.e. the ...
4
votes
3answers
72 views
Same page and multicols
I use multicols at times for specific blocks in my thesis, which has a title, and a block of stuff similar to the following:
\documentclass{article}
\usepackage{lipsum}
\usepackage{multicol}
...
2
votes
1answer
66 views
How do I put list of figures and list of tables on separate pages?
When I put \usepackage{tocloft} in the preamble the pages that had list of figures and list of tables have been shifted forward. List of figures now starts on the contents page and list of tables ...
3
votes
1answer
35 views
Force Poem Title and graphics on the same page
I've been using \needspace{4\baselineskip} to keep Poem Titles with a graphic produced by lilypond-book (music typesetting engine) together. In a 184p. document with 79 different Poem Titles followed ...
0
votes
0answers
46 views
Put a break after authors
I want to put a page break after the authors as there is a small space between the authors block and the abstract.
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?
36
votes
3answers
536 views
Why no vertical-mode Knuth-Plass?
I have only basic knowledge of the TeX internals, so I hope what I am saying here is not complete nonsense. If I understand correctly, in TeX, horizontal positioning / line breaking is done using a ...
2
votes
1answer
91 views
Horizontal dashed line on page break in listings environment
Well, the title says it all. I have code scripts that span over multiple pages. Is it possible to display a dashed line at the bottom and/or top of the page in which the listings environment ...
1
vote
1answer
60 views
How to break page result of Maple output?
I have a file which Maple out put.
\documentclass{article}
\usepackage[left=20mm,right=20mm,top=15mm,bottom=20mm]{geometry}
\usepackage{maple2e}
\def\emptyline{\vspace{12pt}}
\DefineParaStyle{Maple ...
0
votes
0answers
34 views
Chapter header is not placed right before pagebreak
I have a document that is followed by a set of appendices. In one of these appendices, I want to include flowcharts as figures that take a whole page. The way I want it to look is as follows:
First ...
1
vote
2answers
41 views
Place Image and Break Pages
I want to obtain the following format:
Text
Text
Text
Text
endofpage
image
newpage
Text
Text
Text
Text
I have three pages in total. The image occupies whole page and the text in newpage is ...
1
vote
0answers
52 views
Avoiding page break in the Latex bibliography list [closed]
I have a problem, the references are being split by the page break in a such strange manner.
I use IEEE style and already tried \usepackage[section]{placeins} but it influences any other section, ...
11
votes
2answers
221 views
How to avoid orphan or widow when using tcolorbox?
My MWE below should not be simplified anymore to avoid breaking my real scenario. The settings are tightly coupled.
\documentclass{article}
\usepackage[a6paper,vmargin=15mm,hmargin=5mm]{geometry}
...
2
votes
1answer
52 views
Is it possible to break the following aligned?
I don't want to use the displayed math environment for which \allowdisplaybreak is designed. Shortly speaking, is it possible to break the following alined by defining something like ...
1
vote
1answer
39 views
Editing a Custom Class File to Eliminate Blank Pages, Fix TOC
I am using a modified BYU Thesis Template for my thesis.
This template has two undesired features that I would like to eliminate:
The template creates blank pages in various places. Examples are ...
2
votes
0answers
23 views
Prevent new sections to start on the lower part of page [duplicate]
Is it possible to redefine the section-command so that it automatically starts on a new page if say less than a quarter of the current page remains?
Below is a minimal working example. In this case ...
1
vote
1answer
74 views
How to use \displaybreak?
I have a very long equation
\begin{equation*}
\begin{aligned}
multiple line equation...
\end{aligned}
\end{equation}
But just using the above code causes the whole equation to start from a ...
10
votes
3answers
235 views
Whitespace that breaks across pages (e.g. for handwritten answers)
I'm creating a document where I want to leave white space of varying heights, e.g. for handwritten answers to questions.
It doesn't matter whether this empty space is bordered or not.
The key thing ...
6
votes
1answer
79 views
How do I make the title 'Figure' appear on the same page as my first figure
This is my code:
\documentclass[twoside, a4paper, 11pt]{article}
\title{}
\author{}
\usepackage{amsfonts}
\usepackage{amsthm}
\usepackage{mathtools}
...
4
votes
1answer
87 views
Inserting a blank left starting page in a Koma-script book
I am finishing my dissertation, and I'm using the Koma-script scrbook class. My text starts on a right page, which is exactly what I want, but for printing I need to add a completely blank, unnumbered ...
0
votes
1answer
39 views
Floating image spanning over newpage
I m wiring one report in which i need to add images in each section. Each section start on new page but i found when there is not enough space on one section, image float to another section and there ...
3
votes
1answer
48 views
Using longtable with \cmidrule: page-breaking issues
Here's a (minimal?) working example that illustrates both the issues I am having:
\documentclass{article}
\usepackage{longtable,booktabs,lipsum,array}
\usepackage{pgfplots}
...
6
votes
1answer
101 views
How to not have widows and orphans without using raggedbottom
I know I can set \clubpenalty and \widowpenalty to 10 000 to make them “really bad”, but then TeX sees it equally bad to cut the page short when there is no vertical stretch (i.e. \parskip=0pt), and ...
1
vote
1answer
59 views
Creating title page in revtex with twocolumn layout
I'm trying to create a separate title page for a report in revtex. This works fine if I have single column layout however I want the report to be in two column format. When I have this even including ...
3
votes
1answer
60 views
How to break a pseudocode box between two pages [duplicate]
I am using the method here to generate my pseudocode, however my code is long and after running the tex file, instead of breaking the code box into two parts, it moves the whole code to the next page. ...
2
votes
1answer
74 views
how to add new page (page break) to article
This is my code, I am learning how to use the TikZ package and am trying to put different examples on different pages. I would like to have a page break between lines 22 & 24 if at all possible. ...
0
votes
1answer
41 views
Using exam class, text entered in \fullwidth{} messes up pagebreaks
I am using the exam class to write up a document with questions, but with long passages of text between the questions. In order to get the indentation correct, I have been using \fullwidth{} for ...
2
votes
1answer
63 views
Awful page breaking when very long multicolumns items are used
I am using ltablex with \multicolumns. My problem is that I have to introduce a lot of text inside of single \multicolumn items, then when it automatically breaks the table on two different pages, it ...
3
votes
2answers
65 views
\clearpage after every subsubsection
I'd like to clear the page at the end of every \subsubsection. I tried
\usepackage{titlesec}
\newcommand{\subsubsectionbreak}{\clearpage}
But this appears to force a \clearpage at the start of ...
0
votes
1answer
96 views
Allow frame breaks in multicolumn environment
I want beamer to automatically split my text over multiple frames (as many as is required) while retaining the format of the specified number of multicolumns (in this case 3). I do not want to have to ...
1
vote
0answers
61 views
Avoiding widows by increasing the page size
Two related questions:
I think atm I feel that the best and easiest way to avoid widows and orphans is to let the affected pages differ a little in size. Almost no one would recognise it and -- even ...
4
votes
1answer
97 views
How to prevent a page break between paragraphs
I would like to typeset something like a "quote plus attribution", e.g. at the beginning of a book chapter. It should look like this:
CHAPTER TITLE
This is an introductory quote.
...
1
vote
0answers
15 views
Minted in listing: break code across pages? [duplicate]
I'm using minted to highlight code. And I put that into listings -- in order to get those numbered. By it self minted breaks code across pages. But when I put it into listings -- I get code on a ...
3
votes
1answer
72 views
Vertical line next to a block, across page breaks
I'd like to mark examples, in an example environment in the text by drawing a vertical bar along the margin. I found a piece of code that uses the framed package to do this, but since the content of ...
3
votes
1answer
191 views
How to put a full-width table at the top or bottom of the same two-column page as the reference text?
I'm posting today because I would like to reduce white space in a document I'm writing.
The content is two-columns but I have floating tables that span across both columns (table*).
At some point, ...
5
votes
1answer
96 views
Indented box that split in multiple pages
I am doing a document with exercises and corrections.
I would like the corrections to be easily remarkable so that no student read it by accident and get its exercise spoiled.
I have written an ...
8
votes
1answer
410 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 ...
5
votes
1answer
43 views
How to force the unbreak of a single footnote?
I am in the final phase of the document preparation, so I'm quite sure that pages will not change before printing.
I noticed that, for some strange reason, bigfoot breaks some footnotes across pages, ...
1
vote
0answers
60 views
Text starting at the bottom of paper? [closed]
I start writing my thesis in LaTeX. On one of the paper do have a graph and for some reason it split the text and the text are starting at the bottom of the new page.
I am using the ...
2
votes
1answer
43 views
\newpage inside of \newtheorem
Ηow to enter \newpage in the environment so that each exercise is contained in its own page.
\newtheorem{exercise}{ \color{magenta} \Large \bfseries }[chapter]
Something seemingly simple but ...
4
votes
1answer
137 views
Keep chapter headings and related subheadings in the same page in ToC
I'm trying to finish my master's thesis and all I have left are some formatting issues. I'm trying to prevent LaTeX from breaking a chapter and its subheadings in between pages in my table of ...
1
vote
1answer
49 views
Dedicated ToC page
Currently I'm using:
\documentclass[twocolumn,notitlepage]{article}
\usepackage{verbatim}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{subfigure}
\usepackage{amssymb}
...



