Questions tagged [page-breaking]

{page-breaking} is about how (La)TeX breaks pages (and, in multi-column documents, columns) and how page/column breaking can be influenced.

Filter by
Sorted by
Tagged with
1 vote
2 answers
79 views

Split a huge matrix across lines to fit on page

I'm writing my thesis and running into the following problem. I have a huge matrix (10 rows and 15 columns) which doesn't fit on a page. I would like LaTeX to split the matrix across lines, but right ...
user avatar
  • 61
0 votes
0 answers
21 views

Page break in LaTeX only if a code block is split between pages

I'm writing a report in LaTeX that contains several code blocks of varying sizes. For example, a code block might be: \begin{lstlisting}[language=Python] dic = { "qwe": 0.2, ...
user avatar
0 votes
1 answer
70 views

Page breaks when the page is not yet full

When I'm writing my document, sometimes the page breaks even if the text does not fill the page. Thanks to David Carlisle's and John Kormylo's advice, I'm able to produce the following MWE, which may ...
user avatar
  • 4,515
0 votes
0 answers
21 views

How to use tabular with minipages in it that can continue to the next page and not take the whole page?

Let's say you want to have two unequal column-like division in your text for a section, and each section separately. Each section look like the following (it does not mean \section). \begin{tabular}{p{...
user avatar
1 vote
3 answers
67 views

How to make this table page-breakable?

I currently have a table that has grown a bit and no longer fits its intended space. Since I expect this table to keep growing in the future, I need to make it page-breakable while keeping its current ...
user avatar
  • 2,037
0 votes
0 answers
22 views

How to remove page gap? [duplicate]

i have a small problem. i am inserted a pdf under annex b. but problem is, section Annex B starts at page 1, but the pdf gets attached in the next page. so the whole page 1 is empty. can you tell me ...
user avatar
3 votes
1 answer
88 views

Set \widowpenalty only in main text, not for footnotes

I have made sort of the opposite experience than described in an older question and the same as this question without replies. I would like to prevent widows in the main text, but I don't mind them in ...
user avatar
  • 101
0 votes
1 answer
16 views

Figure and Listings Produce Extra Page Break

I am trying to include a tex file directly after a figure environment. When I do, the listings ends up being on the next page even though a large amount of space exist on the previous page. How do I ...
user avatar
  • 77
0 votes
1 answer
31 views

possible clashes of tcolorbox with enumerate package and the totpages package

\documentclass[12pt, a4paper, UTF8, scheme = plain, twoside]{ctexart} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%...
user avatar
  • 489
0 votes
1 answer
38 views

breakable in tcolorbox not breaking

\documentclass[12pt, a4paper, UTF8, scheme = plain, twoside]{ctexart} \usepackage{amsmath} \usepackage{enumerate} \renewcommand{\labelenumi} {(\roman{enumi})} \renewcommand{\labelenumii}{(\alph{enumii}...
user avatar
  • 489
0 votes
1 answer
41 views

tcolorbox breaks page when using multicol

I want to use a coloured box on a 2-column document but it keeps breaking the page and leaving a huge gap. MWE: %Document definitions \documentclass[a4paper, twoside]{report} \usepackage[left=1cm, ...
user avatar
0 votes
1 answer
31 views

Line spacing broken (bottom line falls below the frame or even empty) possibly because of the unit of measure of \vspace and images

Anytime there's an image on page or otherwise not just pure text (which, of course, is spaced by \vspace command) the line spacing gets corrupted. Take a look at MWE below to see. Note how on Page 1 (...
user avatar
0 votes
2 answers
133 views

Breakable, local table of contents with indented page numbers using etoc

I am trying to create a local, breakable table of contents using etoc. So far I had defined a new command called \chaptertoc where I placed the \localtableofcontents within a parbox. But now that the ...
user avatar
  • 1,564
0 votes
0 answers
15 views

error on pagebreak in index of makeindex when using center environment in footer of package scrlayer-scrpage

I run into strange compilation errors regarding the combination of packages scrlayer-scrpage and makeidx. I reduced this to the following case Define a footer via \cfoot* that contains a center ...
user avatar
1 vote
1 answer
36 views

How to split algorithm2e over two pages within for-block and if-else-block

I do know that this questions have been asked before in How to split algorithm2e over two pages Unfortunately the answers given there did not work out for me. I am struggling to realize a page break ...
user avatar
  • 327
0 votes
2 answers
37 views

Prevent page break when using multicols at end of page

I have a section with columns near the end of a page, and when compiling it breaks page. I'd like to keep my columns on the first page. How to do it ? Thanks \section{Section} \begin{multicols}{4} ...
user avatar
1 vote
2 answers
71 views

How do I get my LaTex table to continue on the next page

I'm pretty new to using Latex but I'm currently trying to fill in a table with data, but it keeps getting cut off at the end. I would like it to continue on the next page instead of being cut off. :( ...
user avatar
0 votes
0 answers
24 views

How to solve 'Package longtable Error: longtable not in 1-column mode.' error?

I am trying to use two tables in a tex file, looks like this: \documentclass[pmlr,twocolumn,10pt]{jmlr} \usepackage{mathtools} \let\Bbbk\relax \usepackage{graphicx} \let\Bbbk\relax \usepackage[...
user avatar
2 votes
1 answer
35 views

Allow pagebreak before equations

I often find I get page widows before equations, due to (it seems) the paragraph text being stuck to the equation. How can I allow pagebreaks just before equations? My current solution is to insert \...
user avatar
  • 2,503
0 votes
0 answers
23 views

Wraptable ignores page breaks

I'm currently using the package "xcookybooky" and it uses the wraptable environment for the ingredients list. Now the problem is: if the recipe starts near the end of the page, the wraptable ...
user avatar
  • 13
0 votes
0 answers
25 views

Add extra stuff if a custom environment spills to the next page

All my search attempts just return results for how to force or prevent page breaks. My goal (at this point) isn't to control where the page-breaks are, but to react to them. I just want to add some ...
user avatar
  • 157
0 votes
1 answer
43 views

Page break between section and chapter (report)

In my document, the section always sticks to the next chapter, although there would be space for it on the first page. If I take away 'New word.' from the third paragraph, both the section and part of ...
user avatar
  • 3
2 votes
0 answers
38 views

Footnotes and breakable tcolorbox

Question My MWE document below has three pages, numbered with 1, 2 and 3, respectively. It contains a long tcolorbox environment, which spans all three pages. The box contains a sentence with a ...
user avatar
  • 143
1 vote
2 answers
49 views

Why does *[\fill] not work in \endlastfoot of longtable?

According to this it is possible to put at least one element between \endhead and \endlastfoot on automatic pagebreak by putting the last element into the \endlastfoot. But if I also want to have the ...
user avatar
  • 311
1 vote
1 answer
34 views

I am not getting a custom page size in memoir class. What is wrong?

\documentclass{memoir} \usepackage[pageheight= 94mm, pagewidth=195mm]{geometry} \stockwidth\paperwidth \stockheight\paperheight \usepackage{tikz} \usepackage[utf8]{inputenc} \newcommand\PlaceText[3]{% ...
user avatar
  • 6,187
0 votes
1 answer
44 views

Automatically insert blank page if the last page of a chapter is odd

I'm writing my master thesis on Latex but, for some reason, I'm unable to automatically start the new chapter on odd pages. At the moment, as soon as a chapter ends, the new chapter will start on the ...
user avatar
  • 125
1 vote
1 answer
120 views

Tabularray: tblr inside table environment affects pagebreak longtblr and mixes the two tables

I try to place a talltblr environment from Tabularray inside a table environment. However, this is messing up the pagebreak from the longtblr table above it. It somehow ends up inside the longtblr. ...
user avatar
  • 187
1 vote
0 answers
27 views

How to breakup the "blocks" even further in beamer?

\documentclass{beamer} \mode<presentation>{ \usetheme{boadilla} %% \setbeamercovered{transparent} \setbeamercovered{invisible} \usefonttheme{professionalfonts} %%% usual maths fonts ...
user avatar
  • 489
1 vote
0 answers
60 views

Stretch the glue within a breakable tcolorbox when \flushbottom is used

This question is related to my other one. In that question, I describe my attempt to replace tcolorbox with another frame drawing technique, which does not introduce problems described below, but ...
user avatar
  • 143
0 votes
0 answers
30 views

I have a white page that won't delete before chapter

Hello could somebody help me with this code thanks, edit: the \documentclass[a4paper, 12pt,openany]{report} solution doesnt work for whatever reason Also the bibliography doesn't show and i dont know ...
user avatar
0 votes
1 answer
92 views

Exam class: Each question on new page

I have an exam class document containing only questions (about 500 or so questions) using \begin{questions} \question[5] Question 1 text \question[10] Question 2 txt \question[10] Question 3 txt ... \...
user avatar
0 votes
0 answers
23 views

Conditional newpage inside longtable

Here MWE \documentclass{article} \usepackage{longtable} \usepackage{multirow, graphicx} \begin{document} \begin{longtable}{|p{0.5in}|p{1.2in}|p{1.7in}|c|} \caption{Data Dictionary}\label{tab:...
user avatar
0 votes
1 answer
42 views

large table starts on the second page

Why this table starts on the second page leaving a blank page? If I reduce its length it fits on the first page, but the page has the same size. I am puzzled % This file was converted to LaTeX by ...
user avatar
1 vote
0 answers
33 views

How to automatically add a mark showing that the section is continued on the next page?

I am wondering if there is a way to automatically set a symbol (eg. ►) somewhere at the end of an odd page every time a section is being continued on the following even page? Manually this could be ...
user avatar
  • 473
0 votes
0 answers
29 views

How can I make a table continue from page to page in MDPI template [duplicate]

I have a table from the MDPI journal template but it is too big and I need to break it down to the remaining pages. However, the template does not have this information. Having said that I need help ...
user avatar
0 votes
0 answers
34 views

How to determine vertical position of paragraph

I'd like to determine approximately how far down the page TeX's paragraph builder (i.e., tex.linebreak(...) in LuaTex) is when it starts. For example, in \begin{document}A\par B\end{document} when the ...
user avatar
  • 985
0 votes
0 answers
21 views

restrict 11 images on a page

I want to present 11 images on one page, 3 in a row. Then start new page with different set of 11 figures with 3 images per row. But i am getting 2 pages per row with 8 in total and rest are ...
user avatar
1 vote
1 answer
69 views

page break in eqnarray enviroment

I am going to write my thesis by including the List of symbols which are more than a page. I have written it as \begin{center} \begin{eqnarray*} \mbox{A} & - & \mbox{ Area of fin's surface ($m^...
user avatar
  • 13
0 votes
1 answer
37 views

Large space at break in tcolorbox

Consider this MWE: \documentclass[varwidth=3in, multi={my}, crop, ignorerest=true]{standalone} \usepackage{polyglossia, lipsum, forloop} \usepackage[most, magazine]{tcolorbox} \newtcolorbox{mybox}[2][...
user avatar
  • 2,345
0 votes
0 answers
21 views

Is this mystery page break related to sectioning somehow? [duplicate]

I am getting a page break in the middle of my document for reasons I cannot explain. I condensed the code down to the following extremely simple MWE that reproduces the issue. \documentclass{article} ...
user avatar
1 vote
0 answers
24 views

Print information when changing pages

Can I print some information when generating a new page? For example, in the following example, I want to print "new page!" or page number in a txt file every time a new page is generated. \...
user avatar
  • 149
4 votes
1 answer
52 views

tcolorbox extruded and broken through pages

I would create, with the tcolorbox package (maybe with some "ifthen-like" package...), a breakable box which is extruded of a positive amount, on the left in the even pages and on the right ...
user avatar
  • 1,318
1 vote
1 answer
49 views

How do I know that a new page has already occurred (LaTeX) [closed]

I am using article class with pdflatex and I wanted each section and subsection to begin on top of a new page. I used \newcommand{\sectionbreak}{\clearpage} \newcommand{\subsectionbreak}{\clearpage} ...
user avatar
1 vote
0 answers
51 views

Side by side two columns text, with one column overflow

First of all, full disclosure: this is my first question on this site, so apologizes in advance. The Problem: I would like to have a Latex command that accepts two documents and presents them in the ...
user avatar
0 votes
0 answers
40 views

multicols in enumitem itemize and enumerate using midpenalty

I am using the enumitem and multicol packages to make 2- and 3-column itemized lists. But when I combine this with the use of midpenalty=10000 to avoid pagebreaks in multi-column itemized lists, the ...
user avatar
  • 225
2 votes
1 answer
175 views

How to suggest pagebreak in tabularray longtblr?

I use large multirows and do not want it to break inside the multirows. I knew that the longtable package had functions for this, but I could not find many details about longtblr in the tabularray ...
user avatar
1 vote
1 answer
48 views

Frame for a box depending on the position in the page

I would like to write a command \begin{myFramedBox} ... \end{myFramedBox} such that: If the block inside \begin{myFramedBox} ... \end{myFramedBox} is at the beginning of the page, then it is printed ...
user avatar
  • 6,130
0 votes
1 answer
62 views

How to convert multiple tables in long table in multiple pages with continue tag?

I am working on a long table, the table data and format of the conference looks like this: \documentclass[manuscript,screen,camera-ready,acmlarge]{acmart} \usepackage{booktabs} \usepackage{makecell} \...
user avatar
0 votes
1 answer
54 views

How do I fix the text in the longtable that goes beyond the margins of the page?

I have a problem with a longtable where the text exceeds the page margin. Like the following image: I want the text to be redirected to the next page like the following image: I've tried \...
user avatar
  • 67
2 votes
0 answers
14 views

Pagebreak multiple (side-by-side) aligned equations inside the equation environment

I am putting three \aligned environments inside an \equation, so that they are displayed side by side: However, they have many lines and don't fit to the end of the page, and I am left with a large ...
user avatar
  • 121

1
2 3 4 5
42