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

0
votes
2answers
40 views

Keep the word Abstract in the same page as the actual abstract

I am writing a report and i am using a specific .cls file for the layout and fonts etc. The abstract is defined as follows: \newenvironment{abstract} { \btypeout{Abstract Page} \thispagestyle{empty} ...
1
vote
0answers
28 views

Longtable Duplicate Separator at Page Break

I have a longtable spreading over 2 pages. Unfortunately, since I decided to use the booktabs package, I get a duplicate line separator between the table header of the second page and the next table ...
1
vote
1answer
36 views

prevent page break a couple of lines after figure

I am writing a document which consists of the repeating format: text, figure, then a larger paragraph. How can I prevent a page break between both of the text and figure environments, whilst not ...
1
vote
1answer
36 views

Pad odd page to force chapter to start on even page

I understand the use of \@openrightfalse to force a chapter to start on an even page. When the previous chapter were to end on an even page, this would force an empty odd page. How do I change the ...
1
vote
1answer
114 views

Beamer Presentation References slide can't allowframebreaks and have \frametitle

I am writing a Beamer presentation and my references are too long for one frame. So I tried to use [allowframebreaks], but then I get the TeX capacity exceeded error if I have a \frametitle. I can ...
5
votes
2answers
581 views

Stop listings going over page breaks

I am using Pandoc to generate Tex from Markdown. It automatically generates listings when it comes across the appropriate Markdown (code indented four spaces). It then uses the listings package to ...
3
votes
0answers
48 views

Avoid pagebreak in mdframed environment

I created a document with two columns which contains almost exclusively mdframed environments. In general, splitting up the frames over the columns or a page is welcomed and works. However, situations ...
2
votes
2answers
31 views

Absolutely prevent pagebreak after section title

Okay I've searched but didn't find any existing solution. My question is how to absolutely forbid pagebreak immediately after section title. I tried: \makeatletter ...
2
votes
2answers
760 views

Code listing spanning multiple pages with captions at top

Is it possible to span a lstlisting environment or lstlistinginput on multiple pages, such that the caption is repeated on each page (the listing counter stays the same), as well as being able to ...
2
votes
0answers
58 views

Putting “continued…” at the bottom of the page and on the top of the next page in ConTeXt

I have a section of text that contains several paragraphs, enumerated lists and possibly small tables (3 or 4 rows maximum), and where this section of text crosses a page boundary I'd like to put ...
8
votes
1answer
387 views

How to generate a “<section> continued” heading after page-break?

This is a follow-up question of the answer to Re-displaying section headings after page-breaks As in the follow-up question, I would like to repeat the section heading after a page break, but ...
8
votes
2answers
103 views

Prevent pagebreak between minted and captionof

I know there are already many questions there covering that or at least similar topics. I've read this for example but can't get it figured out... At first here comes my MWE: ...
8
votes
2answers
136 views

Force pagebreak after every sentence/paragraph

Is there a way to force a pagebreak after every sentence or paragraph? This may seem like an odd thing to do, but for catching typos and just general editing I find it much easier to look at a ...
0
votes
1answer
28 views

How do I format paragraphs to make a pagebreak? [duplicate]

How do I format the paragraphs so that it skips to next page. I would like each paragraph to be on a separate page, is something like this possible?
1
vote
0answers
34 views

different text alignment on even/odd pages (like raggedouter but for text)

For a poetry book I would like to typeset all text on even pages \raggedleft and all text on odd pages \raggedright, including headings. Poems can span across multiple pages, so the change of text ...
9
votes
1answer
244 views

Balancing lines in two-column document containing figures

How to balance lines in two-column document that contains figures? In other words - how to set the vertical margins of figure with caption so that the line after the figure corresponds to the line in ...
8
votes
2answers
102 views

Is it possible to apply shadow only to the last part of a breakable tcolorbox?

I'd like to apply (drop lifted) shadow only to the last part of a breakable tcolorbox but I couldn't find any hint for this in the documentation. The following MWE is a non working attempt. ...
6
votes
1answer
101 views

How to track a page change within an environment?

I'm trying to define an environment that can automatically detect when the material within it moves to a new page, reprint one of its arguments at the top of the new page, and change how it closes as ...
2
votes
0answers
56 views

How to break tablenotes (page break) in longtable with threeparttablex?

How can I break my TableNotes in ThreePartTable (it is a landscape table)? \documentclass[a4paper]{article} \usepackage[english]{babel} \usepackage[top=2.975cm, bottom=2.975cm, left=2.975cm, ...
2
votes
0answers
27 views

Page breaking in a glossing example environment

I'm using the expex package for glossing exemples, and I have this giant example which doesn't want to break when the page ends. In the user's guide they say it should break automatcally but it ...
2
votes
2answers
95 views

How to make glossary use the full textheight?

I am using the package glossaries to create a glossary in my document. My glossary is too long to fit on one page, therefore LaTeX automatically continues the table on the next page. However, the ...
0
votes
0answers
25 views

Sections and new pages

I programmed the following command for my personal \section: \newcommand{\mysection}[1]{ \vspace*{.9cm} \textcolor{blue} {\large \bfseries #1} \vspace*{-.3cm} ...
3
votes
2answers
53 views

Combine onesided and twosided layout in one document

I'm confused on how to do the following: The first 50 Pages (except the cover) should be printed only on the right side of my two page document. The last 100 Pages (Appendix) should be printed front ...
2
votes
0answers
34 views

Unvoluntarily page break [SOLVED]

my TeX editor makes a page break on when I try to make some space (\vspace) between my tabulars and images, and doesn't when I omit the vspace, but then the page is loaded. Here's my code : ...
2
votes
2answers
45 views

How to prevent page break between two section headings with color formatting using titlesec?

Description This question is based on almost the the following question, How to prevent page break between two section headings. The answer given there explains that the problem is with \color, which ...
1
vote
1answer
17 views

Allow page break in table in customized environment

\documentclass[12pt]{report} \usepackage{amsmath,enumerate} \usepackage[top=1cm,bottom=1.5cm,left=1cm,right=1cm]{geometry} \usepackage{booktabs} \usepackage{longtable,tabu} % allow page break ...
15
votes
2answers
33k views

Insert a blank page after current page

I want to insert a blank page in a document so that the text would be added to the content of the current page till it reaches end of the page, the next page would be empty, and the text continue from ...
3
votes
2answers
56 views

\nopagebreak after a center environment

I have the following code for a Theater play. Sometime the page breaks just after the name of a character. I would like to avoid that. I would be good if I could do it only by modifying the command ...
2
votes
1answer
88 views

Two tables (not hard-coded) side-by-side in LaTeX that will page break

I wrote my original question here: (Two tables side-by-side in LaTeX that will page break). Then, I realized I needed to revise my question, by also including an additional problem that comes with it. ...
2
votes
1answer
72 views

Two tables side-by-side in LaTeX that will page break

I am creating a .Rnw file in Rstudio. I then knit it using: knit("code.Rnw","code.tex") I am trying to get two tables side-by-side. In case they are long, I would like them to automatically page ...
19
votes
3answers
21k views

Add a new empty page

I have a .tex file which is like my main, \documentclass[spanish]{article} \usepackage{times} \usepackage{amsmath} \usepackage{graphicx} ...
7
votes
2answers
104 views

Reacting to a page break in LaTeX

I'm trying to build an environment where if a page breaks in the environment some additional text is automatically printed at the end of the page, while this text is not printed when no page break ...
1
vote
0answers
48 views

How can I stop my affiliation from creating a page break on my title page?

When my code looks like this: \documentclass[12pt]{article} \usepackage[utf8x]{inputenc} \usepackage{float} \usepackage{url} \usepackage{setspace} \usepackage{hyperref} \usepackage{hanging} ...
1
vote
1answer
20 views

float - Positioning tables and pictures

I want to have a full page table and after it, two full page pictures. But the pictures always appear before the table. If I try using FloatBarrier, it end up producing a page break after the table ...
1
vote
0answers
54 views

Supertabular in twocolumn mode: Unwanted pagebreaks

For my current project I need multiple tables with 2 columns that span over multiple pages, and all in twocolumn mode! Supertabular should be the right choice for this, if I'm not wrong. The problem ...
22
votes
5answers
503 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. ...
1
vote
1answer
46 views

Minipages across page breaks

I have defined a command that uses the minipage environment to format an "example" question within my document. \newcounter{Example} \newcommand{\example}[3]{% \refstepcounter{Example} ...
2
votes
1answer
23 views

Put some environment on left column and some others on right in article with twocolumn option

I use the article class with the twocolumn option. I would like to put definition environments on the left column and example environments on the right column. For example : ...
1
vote
1answer
30 views

Conditional page break to start a new section

I am trying to have a conditional page break for a section if there is not enough space in the bottom. To be clear, when an new section starts I want to check if there is enough space (25% of the text ...
11
votes
4answers
13k 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' ...
3
votes
3answers
110 views

Optional newpage command

Does there exist a command (which I will call \newpageoptional) which acts in the following way: Text and code 1 \newpageoptional{ Text and code 2 } Text and code 3 The effect ...
2
votes
3answers
34 views

Preventing page break within quoting environment

I'm trying to typeset some sanskrit verses, surrounding them by a quoting environment for indentation. One line contains half a verse, the first half ended by |, the second by ||, and I would like to ...
2
votes
0answers
24 views

Penalty between paragraphs

How do I modify the penalty given to a pagebreak between paragraphs? I looked everywhere and could not figure out. If I really need to I can redefine \par but I'm unsatisfied with such a hack.
10
votes
1answer
105 views

Can LuaTeX change the PAGE-breaking algorithm

One of the often highlighted features in LuaTeX is the ability to replace the default TeX line-breaking algorithm by something else. I wonder if it is similarly possible to replace the page-breaking ...
2
votes
1answer
33 views

Don't break page for new chapter unless chapter heading won't fully fit on current page

I am using the memoir class. I'm trying to ensure that new chapters happen on the same page as the last one, except in cases where parts of the chapter heading would have been split across two pages. ...
3
votes
2answers
50 views

Theorems spanning pages without losing width

I use declaretheoremstyle to declare a theorem environment. I like the format of shaded, it gives a special background color without shorten the width of a text. But one problem is that a theorem ...
2
votes
1answer
26 views

Verbatim without breaks

Hi I found a lot of questions which suggest something like How to box verbatim to prevent page break? to prevent breaks in a Verbatim environment. However this does not work for me as I display some ...
0
votes
0answers
38 views

Starting chapters on a right-hand page not working

As document class I'm using itsas_pfc, with the content I pasted below. I know it's big but, as I'm not very familar with LaTeX, I dont want to touch a lot the code so better if I post the entire ...
0
votes
1answer
22 views

Nested inputs with unwanted pagebreak

Let's say I have a document for which all sections and subsections are separate .tex-files. As I cannot nest \include, I'm using \input. \documentclass[a4paper,11pt,titlepage]{article} \title{...} ...
1
vote
0answers
23 views

Table is flushed to next page despite ample room on current page

I tried inserting a table below some text. The issue is, it seemed to have shifted the table to the next page although there is ample room for it to fit in the page with text. This is what I ...