Tagged Questions

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

1
vote
0answers
15 views

Can TeX tell me where it is breaking the lines and pages?

I am looking for TeX to tell me where in the TeX file it has broken the lines and pages. I put \label in every word or even character and then it does tell me something but sometimes it is still ...
1
vote
1answer
13 views

Page-breaking of long tables with tabularx and booktabs in scrreprt documentclass

within my thesis I want to have a page break within tables that are very long, and which are created with tabularx and booktabs packages. Surprisingly I could not find any applicable solution for my ...
3
votes
1answer
38 views

Floating lstlisting - Getting it to split if longer than a page

When I put a long code in my file using a floating lstlisting, it is forced to be in only one page at the end of the chapter, and then some of the code is truncated and outside of the page. If I ...
2
votes
2answers
57 views

How can I prohibit page break at `\\`?

How can I prohibit page break at \\? I tried \\* and it sometimes worked but sometimes not. Here is a non-working example: \documentclass{article} \usepackage{geometry} \geometry{textheight=2cm} ...
0
votes
0answers
30 views

Widesplit newbie problem

newbie here. We're trying to make sense of these widesplit examples, but can't make it work... Am i missing something simple? we want the table to page-break horizontally since this report is columnar ...
5
votes
1answer
33 views

longtable sometimes starts new page when we are near the top of the page

Most of the time longtable does exactly what is required, but sometimes it starts a new page when it is near the top of the page and there is plenty of space for the entire table on the current page. ...
3
votes
1answer
39 views

linebreak and pagebreak wherever I want with justified margins

I am looking for two commands: \mylinebreak \mypagebreak The first is supposed to break a line at the very position where the command is set and make the previous line justified (and not ...
4
votes
3answers
199 views

How do you make text flow to another part of a page?

I have a nasty paragraph with tables, long math and enums which I want to flow between two regions of my page. Here is an example of what I am trying to accomplish: I figured I could somehow do it ...
3
votes
1answer
24 views

`multicol`: Forcing column breaks depending on remaining column space

I'm sure I'm not the first one to run into this problem, but I couldn't find any other question that quite answered this in a way that worked for me. I would like to insert a section heading in the ...
3
votes
1answer
33 views

Create page break for entire frame without breaking the text flow

I'm including a large, one page box using framed package, with simplest example being: \documentclass{report} \usepackage{framed} \begin{document} Some text ...
5
votes
1answer
42 views

Double column layout, left side for text, right side for listings

For a documentation I am having a special chapter where there are a lot of code listings, compared to the amount of prose text. What I would like to end up with is a two column layout, where the left ...
3
votes
1answer
69 views

using gb4e keeping interlinear glosses together on the same page

I am using gb4e for several hundred interlinear glosses in my dissertation. Several of the examples span more than one page, that is, the vernacular and gloss will be on one page, while the free ...
1
vote
2answers
85 views

Why does LaTeX move my section to a new page?

I'm using LaTeX to create a CV, however, parts of my table move to another page. The following 'experience' bit of the tabular thing goes to a new page. How do I stop this?! ...
6
votes
1answer
83 views

Difference between \newpage and \vfill\eject

I think I understand the difference between newpage and pagebreak. My question mostly comes out os curiosity. I came across this way to get a new page: \vfill\eject. What is the difference between ...
2
votes
0answers
37 views

Blank pages with horizontal line and header [closed]

I am writing my thesis paper in LaTeX. I wrote the main program like below, but whenever I compile the .tex file one extra blank page is added after every chapter, and it doesn't take into account if ...
3
votes
1answer
27 views

Help for a complicated macro: breaking pages at custom places and itemize environment

In this answer, there is a macro that allows one to have a precise control of the page lengths of a document. This macro is too complicated for me and I have found a problem with it. It behaves ...
2
votes
1answer
43 views

suppress page break before chapter title in LyX

I'm using LyX and need to have the chapters to start soon after the end of the previous chapter. A LyX solution will be most appreciated. Document class report and I am not to change the document ...
5
votes
1answer
74 views

vspace gets extremely large

I'm just writing my bachelor thesis and i got into some problems with vspace. To seperate definitions, theorems and so on, from the rest of the text i defined the following environment: ...
0
votes
0answers
28 views

Split algorithm over two pages, inside a for loop [duplicate]

I have found questions similar to mine, but none of the solutions given solves my problem. Because my algorithm is too long to fit on one page, I want it to be split on two pages. Solutions I've ...
2
votes
0answers
41 views

Defining a screenplay dialog environment for breaking across pages

Edit: consider this a followup to the answer here http://tex.stackexchange.com/a/63847/64528 I'm trying to create a LaTeX/XeTeX template for screenwriting, specifically to output from an Emacs major ...
2
votes
0answers
34 views

Framed theorem environment spread across pages

I wanted to put a vertical line in front of examples to make them easier to distinguish from the regular text. For this I used mdframed, and it mostly seems to work. However, if an example happens to ...
0
votes
0answers
19 views

Multicolumn custom float

I use these package and bunch of instruction to get a custom ruled float named "example" \usepackage{float} \floatstyle{ruled} \newfloat{example}{tbh}{exam} \floatname{example}{\textsc{Exemple}} ...
4
votes
1answer
40 views

How to nicely split proofs into different parts?

I often break long proofs into smaller pieces, in order to make it easier to read and understand. I'm doing that by adding a fbox with "Part X: ...". However, this doesn't work out very well all the ...
4
votes
1answer
33 views

How to prevent my theorems from breaking off at a pagebreak?

I styled the theorems in my document a bit, using the mdframed package. I'm glad with the result, but the frame sometimes breaks off incorrectly. I've created a sample to show you what's going wrong. ...
2
votes
1answer
38 views

How to change text arrangement on page

Currently I'm using pdflatex to print content on page with width of 6 in and height of 9 in. It's printing in standard print orientation as mentioned in the diagram below "Current Printing format". ...
2
votes
0answers
40 views

How to put something on a page without disturbing the main vertical list?

I'd like to put something on an arbitrary place on a page. I'm using \begin{tikzpicture}[remember picture,overlay] ... \end{tikzpicture} inside \nointerlineskip\vbox to 0pt{\vss ...
3
votes
1answer
52 views

How to suggest reasonable places for pagebreaks

I am currently typesetting a bilingual Afrikaans-English bible. I sometimes end up with ugly orphans and widows. Is there any way to mark the beginning of verses as friendly page-break places. In my ...
1
vote
0answers
33 views

In row table page break

I want to generate a report automatically. I use python to replace placeholders inside a LaTeX template. The report contains large complex tables that span multiple pages. I have found a packet cals ...
0
votes
1answer
45 views

Not to start the bibliography in a new page

I'm using thebibliography in order to do the bibliography of my text. Here is what I have written: \begin{thebibliography}{99} \addcontentsline{toc}{section}{Bibliografia} ...
1
vote
1answer
43 views

Figure disappears if a new page is added before it

In the experimental section of my Master's thesis in chemistry, I'm using chemnum to numbering chemical coumpounds. The problem is that the figures disappears when adding a \newpage in front; see ...
2
votes
1answer
73 views

Page break problem after \subsection in LNCS format

I am using LNCS template to author a paper. But, weirdly at random point, if I add a \subsection a page break appears between 'Abstract' and 'First Section': ...
2
votes
1answer
39 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
88 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
95 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
33 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][] ...
2
votes
0answers
26 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
128 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
55 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
26 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
28 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
61 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
43 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
48 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
69 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
149 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
64 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
48 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
79 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
39 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
82 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 ...