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

2
votes
1answer
18 views

Prevent page break when text exists before title in twocolumn enviornment

I have an article using the two column enviornment but the title and abstract in a single column which works fine like this: \documentclass[a4paper, 11pt, twocolumn]{article} \begin{document} ...
3
votes
0answers
31 views

Does \\* within footnotes have any effect?

One is taught that \\* is an alternative to the line-breaking \\ that tries (often unsuccessfully) to inhibit a page break. Normally \\* would be used in ordinary ("body") text. (And I hereby ...
10
votes
1answer
107 views
+150

mdframed: how to prevent a box from splitting if the remaining content (or the initial content) is too small?

Question I would like to prevent mdframed to split a box too early or too late. By this, I mean that I would like the remaining part of the box to always be greater than a fixed length, given before. ...
1
vote
1answer
22 views

Table of content with long entry across two pages

In my thesis, I have a section with a very long name, which must appear in its entirety in the table of content. The title consists of three lines and, unfortunately, it is split in two different ...
5
votes
1answer
109 views

mdframed: splittopskip does not work when the first object after splitting is another mdframed box

Question I would like to add space in an mdframed environment after a splitting (a page break) and in the case where the first object after the splitting (the page break) is another mdframed ...
5
votes
1answer
37 views

Spreading newenvironment over two pages

I am using a template found online to do my CV and I am getting a hard time trying to spred the content of a newenvironment over two pages. I want the content of one of my rubrique to be over the end ...
1
vote
1answer
38 views

How to avoid page breaks between the paragraphs of a description item?

Is there a way of preventing LaTeX from putting page breaks between two paragraphs of a multi-paragraph \item in a description environment? Preferably without having to put in explicit \nopagebreak ...
8
votes
2answers
88 views

Bottom frame of listing appears on top of the next page

As the title says. I use, among other things, the following in my lstset: framerule=1pt, frame=tblr Some places a page break happens in the middle of my \lstlisting. Fine. But sometimes the whole ...
6
votes
0answers
29 views

Variable page break penalty for odd/even pages?

I am working on a document that has a large number of external Lilypond files included. These render quite well and (while a bit of a pain to use) lilypond-book is smart enough to render the music ...
0
votes
0answers
27 views

How to remove the space between the context and the section?

\documentclass{article} \usepackage{fontspec} \usepackage{ulem} \setmainfont[BoldFont=黑体]{宋体} \makeatletter \renewcommand\subsubsection{\@startsection {subsubsection}{2}{1em}%name, level, indent ...
3
votes
1answer
40 views

Page break in dmath equation environment

I have a very very long equation. I want it to split over different pages automatically. My quation contains 1700 terms and it may go for many pages. Is it possible with dmath or any other way? e.g., ...
3
votes
2answers
54 views

Preventing caption in new page [duplicate]

This is not about keeping the picture or table close to where they have been mentioned. It is about keeping the caption of the picture (or table) together with the picture. Otherwise the picture and ...
3
votes
0answers
55 views

Mdframed: negative top margin with page break skips a page

I am using the development version (1.9d) of the mdframed package to customize the proof environment in the following way. I wish that a line runs down from the word "Proof." and that the text of the ...
1
vote
0answers
38 views

Why there's a page difference between the title of the paper and the abstract? [duplicate]

Can you please tell me what causes a page difference between the title/authors and the abstract? \begin{document} \title{\LARGE Spectral Clustering vs Wavelet Clustering: A Comparative Study} ...
5
votes
1answer
67 views

Empty pages in the preface section of my thesis

I am writing a thesis and I'd like to use the openright option: \documentclass[letterpaper,12pt,twoside,openright]{report} The problem is that when I use this option, empty pages are placed between ...
6
votes
1answer
100 views

Changing page numbering style occurs one page earlier than expected?

I want my report to have the first few sections with roman numbering (i, ii, iii...), and the body of the report with arabic numbering (1, 2, 3...) for the page numbers. The problem is that the ...
3
votes
2answers
75 views

figure* environment skips page while using two-column document

I was told to use table* rather than the table environment to insert a table in a two-column document which is too small to fit in a single column. When I try to do the same thing with a figure, The ...
4
votes
1answer
67 views

How to make 2 tables appear one next to another?

I have a document with three tables. These three tables currently are too long for the page, so I would like to make 2 tables appear next to each other and then make the third table appear below them. ...
1
vote
1answer
56 views

Page breaks within the cases environment

I am using the cases environment multiple times within the align environment, inputting fairly long equations. This creates a lot of white space, which I would like to get rid of. Any suggestions of ...
0
votes
0answers
14 views

Automatically applying wrapfig hotfix only when a section heading is the last thing on a page

I have the same problem as the user 'mrf' on Wrapfig and page breaks after section heading (see link for MWE and hotfix). Using wrapfig basically messes up the document flow such that section ...
1
vote
0answers
48 views

TeX capacity exceeds, when adding a single line [input stack size]

I get a strange error which unfortunately seems to be impossible make into a MWE – so I know we all prefer answers with compilable code, but maybe some one can help me sole it without … This is how ...
3
votes
1answer
52 views

How to prevent page break in the last three lines of an environment?

I want to create an environment, thats content should not allowed a page break in the last three lines of the last paragraph. If the last three lines of the text inside the environment reach the ...
4
votes
1answer
35 views

Prevent page break after first line of example

I would like to find a way to prevent a page break between the first line of the example in following code. \documentclass{article} \usepackage{lipsum} \usepackage{gb4e} \begin{document} ...
1
vote
0answers
37 views

\afterpage not called after page break

In this example \documentclass{article} \usepackage[a6paper,landscape,margin=1cm,bottom=2cm]{geometry} \usepackage[english]{babel} \usepackage{blindtext} \usepackage{afterpage,refcount,lastpage} ...
2
votes
1answer
87 views

Breaking pages with boxes in boiboites-like

I want to find a method for breaking boxes of my environments of examples (in arabic, with polyglossia.. see ECM below) I saw that mdframed do something like this, but I'm using my own package ...
3
votes
2answers
33 views

openany for hepthesis

Hi I'm using the hepthesis template and I creates a empty page before any new chapter. Since it is build upon scrbook, is there anyway to use something like openany \documentclass[openany]{hepthesis} ...
3
votes
1answer
28 views

No page break after index with idxlayout

In the idxlayout manual I read that the memoir class with twocolumn options forces a page break after the index. Is there any way around this behavior? I would like the following to remain on one ...
1
vote
0answers
56 views

\parskip setting effect on page break?

What is the effect of the \parskip-setting on where LaTeX does the page break? I wonder why there is a page break before the paragraph-headline with my \parskip settings (unless I insert the ...
20
votes
2answers
823 views

Is LaTeX intended for unattended typesetting?

With markup converters like Pandoc, it is now possible to generate LaTeX documents without ever touching any LaTeX code. However, obtaining aesthetic page breaks for slightly complex documents, ...
6
votes
3answers
69 views

Subsection on new page if it doesnt fit

I have many subsections in my document. Each subsection is quite short (each subsection consists of five to ten lines). I want to have more than one subsection on each page but I don't want a ...
5
votes
2answers
195 views

How to force LaTeX to keep section/subsection headings with one line below it on the bottom of the current page?

By default, LaTeX allows a page break after the first two lines of paragraphs following section/subsection headings, but I would like to keep the section heading with even one line below it at the ...
2
votes
2answers
65 views

Prevent page breaks between item heading and item content

I have headings that appear before items in an enumerated list. The problem is that I think it looks ugly when a heading appears at the end of a page with the content of that heading on the next page. ...
0
votes
0answers
62 views

Breaking equation through pages

In a former post I learnt how to break an align equation by using the \allowdisplaybreaks command on the preamble. However, I found the package breqn, which is impressive! So far I've been unable to ...
5
votes
1answer
74 views

Find point of page break in an external document

I am creating multiple versions of a document from a single LaTeX source. Specifically, I have a series of lessons that have an instructor version (with notes and answers) and a plain student version. ...
2
votes
1answer
52 views

Change side wallpapers between pages

My document has graphics on its left and right border on each page, I use the package wallpaper for that: \newcommand{\dsaSetDefaultPageBorders}{ \ULCornerWallPaper{}{./fanpaket/balken-links.png} ...
1
vote
1answer
32 views

Figure location in the bottom of the document

In my paper the last page should contain reference only, but my figures keep popping in the last page. How can I force them not to appear in the last page / force the last page to consist of reference ...
2
votes
0answers
37 views

penalize page breaks in \lstlistings

I have a document with some rather lengthy \lstlisting's (source code snippets). It looks really bad if there is a page break within a listing/snippet. Thus I tried to avoid page breaks in listings by ...
5
votes
3answers
103 views

Proper vertical spacing and pagebreaks in custom environment

I would like to design a simple environment which displays examples. This is what I got so far: \documentclass{article} \usepackage{xcolor} \usepackage{parskip} \usepackage{lipsum} \makeatletter ...
0
votes
1answer
26 views

Getting no pagebreaks in numbered paragraph mode using eledmac

Could someone help with getting no page breaks while typing 4 line-paragraphed texts in \pstart and \pend paragraph groups in eledmac. I'm typesetting a multilingual critical edition using XeLaTeX ...
3
votes
0answers
106 views

Creating flashcards with LaTeX

As the current semester is almost over and my lecturenotes-typesetting project draws to a close, I start learning the definitions with flashcards. I've created the flashcards automatically with a ...
2
votes
1answer
44 views

Bad pagebraks in longtable (empty table on second page)

I have some strange problem with my longtables. In some tables there is a pagebreak after the last row and on the second page there is the table header printed again without following content. I use ...
11
votes
2answers
225 views

Splitting verbatim inside figure across pages

I want to include a long section of verbatim text, which is too long for a single page, inside a figure with a caption. Unfortunately, when the verbatim environment is put into a figure, it does not ...
5
votes
2answers
64 views

How to override a subclass of book to get TOC on even page?

I am trying to get my table of contents on a verso page (i.e., an even-numbered one). I have seen several threads on similar topics here, and many of them recommend making your own command more or ...
1
vote
1answer
64 views

How to avoid footnote split? [duplicate]

Maybe the second footnote is too long, it splits into two parts at the bottom of the page as following picture shows. What should I do to avoid this? Thanks
0
votes
0answers
50 views

prevent page break while returning to twocolumn

I'm writing a IEEE conference paper. The format of paper is \documentclass[conference]{IEEEtran} For inserting a wide image i switched to one column using \onecolumn The image took half of my page. ...
4
votes
2answers
59 views

clean, breakable left-aligned array-like environment

The centered, yet left-aligned aspect of \begin{array}{lll} ... \end{array} is what I usually go with to give a list of conditions. My only problem with it, is that it is not breakable, so I try to ...
4
votes
1answer
57 views

Treat floatbarriers like page borders?

When I use the figure environment I like using [bt] options. I now have subsections acting as floatbarriers (using the extraplaceins package), and [b] / [t] does not work due to my restraining ...
4
votes
1answer
94 views

Splitting an algorithm across two columns

Consider the following short example, where a two column page is selected, and the algorithm is split across the two columns using a manual \pagebreak within the algorithm's code: ...
3
votes
4answers
116 views

Vertical spacing for writing answers

I couldn't find any answers to this issue, so I hope you LaTeX gurus can help me out. I am formatting a study guide with the KOMA scrbook class. Throughout there are (enumerated) lists of discussion ...
6
votes
1answer
60 views

Suppress something if at the end or beginning of a page

I would like to suppress the horizontal rule between the mdframed boxes if it occurs at the top or bottom of a page. I found this partial solution which makes use of \cleaders. But it is nor working. ...