{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
30 views

pagebreak and amsmath theorem environment issue

In the example below, you'll notice that when a \pagebreak is used right after the theorem, an unwanted vertical blank space is added after the theorem environment while it should not. ...
3
votes
2answers
61 views

\columnbreak doesn't work

With the following code: \documentclass[a4paper]{report} \usepackage{multicol} \begin{document} \begin{multicols}{2} \noindent Vediamo un po' di testo a due colonne. Proviamo a cambiar colonna: ...
2
votes
2answers
83 views

How can you automatically continue a figure on to the next page?

Below is my code, I have 5 figures (a, b,c,d,e) under Figure 1.. i want them to continue on the next page and not stuck in the middle. I want them to be one under the other i.e. vertically like the ...
3
votes
0answers
25 views

Add vertical space only if there is no pagebreak

I'd like to define a new listings environment where the listing has an \hrule before and after the listing itself. In order to do this I've defined this environment: \lstnewenvironment{haskell}[1][] ...
1
vote
0answers
14 views

Linguex glosses and translation separating across page break

I use linguex and I don't want my examples to be separated from their interlinear gloss and translation by a page break. Currently I have to check the .pdf output and use the package {needspace}, but ...
6
votes
2answers
109 views

How can i add the abstract and acknowledgment on the same page?

I want to add my abstract and acknowledgment on the same page as they only fill the half of the page in total, so it looks foolish to have them split into two pages. ...
1
vote
1answer
43 views

longtable side by side

I've two longtables and I'd like to place them side by side. Tabular environments work very well, but I think it is not possible to place longtable side by side (why?). It needs to be a longtable or ...
2
votes
2answers
13 views

Can I configure bibtex.exe to insert the command \interlinepenalty=10000 in the .bbl file?

The following question-answers show a method of avoiding page-breaks in between references: How can I prevent page break between lines of a paragraph or bibliography entry? ...
0
votes
1answer
20 views

Break subfigures along 2 pages using the subfigure package

I am trying to add subfigures that are larger than one page. I am using the package subfigure that might be a bit obsolete, indeed, however I insist in using it because I have a very large documents ...
2
votes
1answer
40 views

Avoiding widows while keeping text height even across two-page spread

In The Elements of Typographical Style, the author notes (§2.4.8) that widows—single lines occurring at the top of a page—should be avoided. Yet the text height of two facing pages should be the same, ...
3
votes
2answers
29 views

Page break after each section with title

I'd like to have there be a page break in between each section, just like in this question, but I'd also like there to be no page break prior to the first section (that is, between the title and the ...
1
vote
1answer
35 views

How to prevent header being the last line of page?

Hi. How to prevent breaking of section header and section content? It is very strange behaviour for LaTeX, but it happened and I want to fix it. Code of this section is below: ...
1
vote
1answer
61 views

How can I prevent page breaks from occuring inside the body of a function?

Is it possible to tell the listings package not to insert page breaks inside the body of a function? For instance, void foo() { // Do not insert page break here } //But here is fine An ...
4
votes
2answers
76 views

Break Lines in minted environment

Usually when adding code in a LaTeX document, I use the listings package. When trying to modify and personalise styles in listings, @1010011010 suggested to use the minted package. To be quite frank, ...
4
votes
2answers
45 views

Two \maketitles in one page

If I wanted to include two titles in one page, what can I do? I've seen the titling package as this QA suggested, but the titles came out in separate pages. \documentclass[twocolumn]{article} ...
1
vote
1answer
42 views

Section Titles, not the crossing next page

It's my code, \documentclass[a4paper,twoside,openright,11pt]{scrbook} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage[svgnames]{xcolor} \usepackage{lipsum} ...
2
votes
1answer
63 views

How to switch from one sided to two sided document?

I have been writing a thesis that is currently in one sided layout, but I would like to switch everything except for contents, abstract, acknowledgement and dedication into two sided layout. Is it ...
1
vote
0answers
35 views

How do I keep a block of text on the same spread?

I am building a cookbook, and I need to keep each recipe's text on the same spread. I've wrapped each recipe in its own environment, so I can easily add commands at the beginning and end of each ...
3
votes
1answer
65 views

Increment counter only if no page break occurs

I'm trying to create a form that contains a series of test instructions, each of which are represented as minipages and take up between 1/3 - 1/2 of a standard A4 page. What I'd like is to be able to ...
9
votes
1answer
73 views

When does \nopagebreak work?

There are many examples where \nopagebreak doesn't work as expected: Nopagebreak nopagebreak nopagebreak - why won't LaTeX listen to me? How to make longtable respect \nopagebreak in the ...
4
votes
2answers
68 views

bclogo page breaks

I am using the Bclogo package http://www.ctan.org/pkg/bclogo. I have created environments for lemmas and proofs with it. The proof was too big to fit on the bottom of the page, so it just inserted a ...
3
votes
3answers
138 views

I need help on forcing a pagebreak in LaTeX

I am using LaTeX and trying to put the tables and figures at the end of the manuscript so that they occur on separate pages. I have tried \pagebreak, \newpage, \displaybreak before each of the ...
1
vote
0answers
34 views

How to attach section-title to corresponding text? [closed]

My title (\chapter, \section etc.) should always be attached to the corresponding, followed text. It happens that the title is squeezed into the last line of a page and the corresponding text on the ...
0
votes
0answers
32 views

Manually Split Bibliography in beamer

I'm doing a presentation in beamer. I have a total of 8 references and i want to display them as 2 references per slide. Does anyone knows how i can do this? my code: \documentclass[10pt]{beamer} ...
4
votes
2answers
47 views

How to keep an environment with the last line of the previous environment?

I quite often include attributed quotes in my documents, using something like: \begin{quote} Now I am become Death, the destroyer of worlds. Also, I like bananas! I like bananas so much ...
1
vote
0answers
30 views

Multicols leaving blank pages

I am trying to create a formula sheet which I am going to use for my exams. I was able to set up the layout as I like it, bit I am having a problem on pages 4, 6 and others (as you can see from the ...
2
votes
2answers
45 views

Page breaks inside titlesec section headings

I use LaTeX to generate contracts and agreements. In most cases, it works okay but, every so often, it causes problems with pagination; specifically, if I have too many subsections without an explicit ...
1
vote
1answer
44 views

longtable multirow problem with cmidrule and nopagebreak

I'm trying to reimplement the David Carlisle solution given here for breaking long tables over certain rows (breaking in \hline commnands instead \cline ones). This solution is complemented with the ...
1
vote
1answer
50 views

How to force section to not go to new page in article

I have a document like this: \documentclass{article} \begin{document} \include{sect1} \include{sect2} \end{document} Both files sect1.tex and sect2.tex begin with \section{...}. The output pdf ...
3
votes
2answers
20 views

Preventing an arbitrary block from being displayed on two different pages?

I have a collection of concert entries; two such entries are displayed below: \textbf{Modest Mouse, Jimmy Eat World, Angels and Airwaves}\\ \textit{LIVE105 Not So Silent Night}\\ Bill Graham Civic ...
0
votes
1answer
83 views

Problem, header location and different page in one page

My code is this \documentclass[a4paper,12pt]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{showframe} \usepackage{multicol} ...
3
votes
1answer
122 views

How do I test for a new page?

I need to know when I change pages. I thought I had a solution using everypage. It works using \newpage, but not using \vspace. \documentclass{article} \usepackage{everypage} ...
6
votes
1answer
72 views

Opposite of \allowdisplaybreaks

If i load the amsmath package it doesn't allows to break by default alignments across the pages in the multline, align, gather, alignat environments and their starred versions. Howewer it exists the ...
3
votes
1answer
63 views

Why do I get an extra white page before my TikZ picture?

I've created a little diagram in TikZ. Only problem is, it's quite big, so I figured I should use landscape mode for it. Only problem is, when I put it between \begin{landscape} ...
0
votes
1answer
79 views

Two tabulars in one Table but in different pages

I would like to ask you how could I have in one table two parts (tabulars) BUT in different pages? I tried bigskip or pagebreak but it does't work Thank you in advance
2
votes
1answer
47 views

mdframed environment not breaking over pages

I apologise in advance because I cannot provide an MWE. I am writing a book with a custom (Springer) format and I wish to use mdframed to provide an example environment. I adapted an example from the ...
3
votes
1answer
52 views

How to get the chapter title in a single page - titlesec

Because of my thesis report style, I want to have the chapter title in a single page. I'm working with titlesec package. I used \clearpage and \newpage to solve this, but doesn't work. I also used ...
1
vote
0answers
50 views

longtable next to longtable [no multicolumn]

I'd like to place multiple tables (two or three) next to each other, with the following requirements: They need to be able to span accross pages They need to be aligned next to each other I need to ...
2
votes
0answers
27 views

Page breaks and memory [duplicate]

Note the following passage in the TeXbook (p. 110) TeX breaks lists of lines into pages by computing badness ratings and penalties, more or less as it does when breaking paragraphs into lines. ...
0
votes
1answer
32 views

picture is delocated or an empty page before and after the picture

I have been having some troubles with the insertion of picture in my document(pdf) when using latex. At first, when I inserted the picture, the picture was delocating. this was the code. ...
2
votes
1answer
82 views

Iterate over pages and set variable

I am looking for a way to take the output of a pageref, iterating through, and assigning a property to each of those pages. Specifically, I want to take this: \documentclass{article} ...
8
votes
1answer
108 views

show “continued” for nested description list item on page break

I'm using enumitem to create a description list. These lists can sometimes be nested and can get very long. When a list item with a lot of description text breaks over a page it is difficult to ...
1
vote
1answer
52 views

Vertical bar appearing except on top of page

I want a command \shybar which prints a \textbar except if it would be the first character on the page. In this case, it should do nothing. Because of this question, I tried the following code: ...
2
votes
1answer
49 views

Pagefilling pictures resulting in blank page before the next chapter

I've got a question in regards to pictures and chapters. It happened a few times now to me (like in the example below) that I have 1 or 2 pictures that fill up a page that suddenly the chapter ...
1
vote
1answer
42 views

Removing one blank page between two chapters

How can I remove one of the blank page between two chapters. \documentclass[12pt,titlepage,a4paper]{book} \input{chapter1} \newcommand*\NewPage{\clearpage\thispagestyle{empty}\null} ...
2
votes
1answer
41 views

Scheduling a float to appear on a specific, later page?

Consider the following MWE - let's say it's called test.tex: \batchmode % \ifx\article\undefined % \documentclass[12pt,journal,onecolumn,twoside,draftcls,letterpaper]{IEEEtran} % \else % ...
1
vote
0answers
56 views

How to get rid of blank page after Appendix title

After I have my page which says Appendix my document has a blank page before the page starting Appendix A. How can I get rid of this. I have \include{appendix} in my main file and in my appendix ...
2
votes
2answers
130 views

Any way to check with a macro if an equation is too long to fit into a single line?

I have some very long equations which span a few lines. I'd like to Break lines automatically. Pagebreak. Have an equals sign both at the end of the first line and at the beginning of the second ...
2
votes
3answers
95 views

How to prevent a page break before an itemize or enumerate list? (continued)

My question is essentially the same as How to prevent a page break before an itemize list?. First, I don't undestand how the proposed solution (\par\nobreak\@afterheading) works. Why doesn't just ...
1
vote
0answers
53 views

Make paperheight (page length) same as section length

I'd like a document where each section is followed by a page-break but otherwise is one page. The sections have varying lengths, mainly due to the size of the picture(s) in each one. So far what I ...