3
votes
2answers
46 views

Preventing page break after the first or before the last list item

Is there a way to globally prevent all lists from having a page break inserted between the first and second items or between the last and second-last item? I'm fine with page breaks that are after the ...
3
votes
1answer
63 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
74 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} ...
2
votes
1answer
81 views

Prevent page from overflowing

Occasionally document overflows into the next page by few words or line. Though this can be adjusted manually by changing a font size or spacing, can it be automatically done? By automatic, I mean if ...
6
votes
1answer
116 views

How do \widowpenalty and \clubpenalty interact for a 2-line paragraph?

Sometimes \\* does not suffice to prevent a linebreak. Adding {\widowpenalty10000 \par} or {\clubpenalty10000 \par} helps if the separated line is paragraph-final and stranded at the top of a page ...
4
votes
1answer
89 views

Bleed into margins automatically to prevent orphans?

When I set my papers, it sometimes happens that the last line of a paragraph is very short, in extreme cases just a single word, perhaps a page number. I have set \clubpenalty to 10000, of course, ...
2
votes
0answers
57 views

How to avoid widows-orphans with mdframed?

I have a document with a lot of mdframed boxes ; which option can I set to avoid 'widow' lines at the end of the box (that is, avoid to have small parts of boxes on new pages)? ...
6
votes
2answers
138 views

Widow Orphan lstlisting

I have a listing of 6 lines. The listing box does not seem to fit on one page (it is on the bottom of the page) so the rest of the box is printed on the next page. There is nothing actually in the box ...
2
votes
1answer
142 views

How to avoid widows and orphans in ToC?

I want the chapter's author name being shown in the ToC. So I have modified the chapter to add the author there and use it in the page header as follows: \documentclass[10pt,twoside]{memoir} ...
4
votes
1answer
368 views

Widow penalty not working

It seems my Widowpenalty is not working, as nothing changes, even with a value of 10000. Is there some contradictory commands anywhere which may cause this problem? This is what I have ...
2
votes
2answers
126 views

How to handle unnecessary whitespace leading to widows/orphans?

I'm working on my paper using TexMaker and this is what's happening: I'm getting unnecessary whitespace before paragraph 'B'. As a result of the unnecessary whitespace I have a widow/orphan of an ...
44
votes
3answers
1k views

Why no vertical-mode Knuth-Plass?

I have only basic knowledge of the TeX internals, so I hope what I am saying here is not complete nonsense. If I understand correctly, in TeX, horizontal positioning / line breaking is done using a ...
11
votes
2answers
317 views

How to avoid orphan or widow when using tcolorbox?

My MWE below should not be simplified anymore to avoid breaking my real scenario. The settings are tightly coupled. \documentclass{article} \usepackage[a6paper,vmargin=15mm,hmargin=5mm]{geometry} ...
6
votes
2answers
303 views

How to not have widows and orphans without using raggedbottom

I know I can set \clubpenalty and \widowpenalty to 10 000 to make them “really bad”, but then TeX sees it equally bad to cut the page short when there is no vertical stretch (i.e. \parskip=0pt), and ...
1
vote
0answers
73 views

Avoiding widows by increasing the page size [duplicate]

Two related questions: I think atm I feel that the best and easiest way to avoid widows and orphans is to let the affected pages differ a little in size. Almost no one would recognise it and -- even ...
10
votes
1answer
518 views

Using mdframed after a section heading

The following is a very contrived example, but it illustrates a problem I am unable to solve with the mdframed package. When the mdframed environment follows a section heading but there is ...
2
votes
1answer
354 views

Adding floating space between main text and footnotes

I have to typeset a text with several widows and lots of footnotes. The editor told me to leave an additional blank line between the main text and the footnotes and to use this space to print the ...
8
votes
1answer
319 views

Avoid widowed signature lines

I have documents created in XeLaTeX with signature lines appearing at the end of the document. Sometimes these signatures appear on pages by themselves i.e. without preceding content. I would like to ...
3
votes
1answer
194 views

How to avoid widow lines in Table of contents (TOC)

I have a Table of Contents page (the last page, page 3) which just has one line on it. Is there a way of manually editing it so, say, Chapter 3 starts on page 2, as opposed to straddling pages 1 and ...
3
votes
1answer
571 views

automatically to apply \enlargethispage{\baselineskip} when single-word-widow occurs

Sometimes I encounter this single word widows instance very often, please find the right hand page, topline scoundrel. My design strategy is to leave enough white space at the bottom margin, so when ...
0
votes
1answer
103 views

How to adjust last text on last page dynamically? [closed]

I am writing report and now improving look and feel of the report. I found that last section appears in last of page and its remaininng part on next page which does not look good. How can i move ...
6
votes
1answer
68 views

Force hardspace in multiple citations

To cite multiple references, I'm using \cite{foo, bar}. Unfortunately, the second citation appears on a new page. Is there a way to force a hardspace between the two citations? This is primarily a ...
2
votes
1answer
157 views

Supress page breaks before headings, allow orphans

I am trying to create a simple outline document (based on scrbook), that contains just headings (chapter, section, ...) and a few notes inbetween. For that, I removed the clearpage before a new ...
6
votes
1answer
297 views

Orphans when using the SIGCHI LaTeX style

The current SIGCHI template does contain some instructions to prevent orphans (\clubpenalty and \widowpenalty) but for some reason that isn't working for me. I tried increasing the penalties but that ...
8
votes
1answer
140 views

Remove/hide content if it would appear as an orphan [duplicate]

Possible Duplicate: prevent “action” if top of page I have some blocks of text, separated by a \hline. Because the LaTeX code is generated automatically from user-entered data, ...
5
votes
1answer
136 views

How to keep last n lines together in listing?

I have a large listing defined with lstlisting (listins-package). Now the listing reaches over three pages. On the last page there is only one line (the last line) of the listing. I looks not very ...
12
votes
2answers
1k views

Is there a distinct command for \widowpenalty and \clubpenalty in footnotes?

I have found that setting \widowpenalty=10000\clubpenalty=10000 in the main document has not prevented widows and clubs from appearing occasionally in footnotes in a long and complex document I am ...
5
votes
1answer
270 views

Can I set an adjustable line spacing to avoid orphans and widows?

I have a relatively simple question. I'm compiling a large document and finding that I have a lot of pages that start with the last two lines of a paragraph. Is there a way to allow the line-spacing ...
4
votes
4answers
535 views

How can I avoid widows and orphans after displayed equations?

Edit: The original title of this question was "How can I avoid widows and orphans with the geometry package?" However, as egreg pointed out, the geometry package was not the cause of the problem. ...
19
votes
1answer
435 views

Finding all widows and orphans

There have been several questions about how to avoid widows and orphans, so let me first state that that is not the question here. I know I can try and tweak the settings but that it's still possible ...
6
votes
2answers
442 views

bigfoot: only break footnotes across double-page spread

The bigfoot handles the breaking of footnotes across pages quite well, but personally I don't like it if I have to turn the page to read a complete footnote. Therefore my question: Is it possible to ...
2
votes
0answers
616 views

XeLaTeX, hyperref and page breaking [closed]

Using XeLaTeX, loading the hyperref package apparently changes the way in which (reconfigured) widow and orphan penalties work — so they reappear, just as if I had not altered the values for the ...
7
votes
2answers
185 views

dblfnote.sty with musuos.cls causes unbalanced footnotes

I’m the author of musuos.cls and while writing a paper with it I noticed that the dblfnote-package leads to unbalanced footnote columns You can see that the left colum has one line less than the ...
7
votes
1answer
480 views

marginpar and orphans

How can I avoid orphan lines if I use \marginpar? For example, here is a two-page document that does not have any orphans: \documentclass[letterpaper]{article} \usepackage{lipsum} \clubpenalty=10000 ...
4
votes
1answer
815 views

Quote environment with long reference at the end right – without widows

I need a quote-environment to end with source-references in a new line, flush right. Simply using \begin{quote} QUOTED TEXT \begin{flushright} SOURCE \end{flushright} \end{quote} ...
6
votes
3answers
653 views

An unexpected value of \clubpenalty

In the following MWE, \clubpenalty has the expected default value of 150 at the begin of the document. However, a combination of a) a \section b) a paragraph c) a quote environment – in this ...
2
votes
1answer
299 views

Section headers not sticking with first paragraph

I'm seeing lots of section/subsection headers getting split up from their paragraphs across page and column boundaries. I've never seen this before, but I'm also using a class file that's new to me, ...
18
votes
2answers
1k views

Vertical spacing, pagination and ideal results

I found that the best way to avoid widows and orphans is setting penalties and using rubber lengths between paragraphs, for instance, \setlength{\parskip}{1pt plus 1pt minus 1pt}. When I shared this ...
2
votes
1answer
2k views

Heading at the bottom of the page

I'm typesetting a large document (phdthesis) with pdflatex and I'm using KOMAscriptand the scrreprtdocument class. I was very surprised as I saw a heading (\subsubsection) standing at the bottom of a ...
11
votes
3answers
335 views

Avoiding orphans at the start of quote/quotation environments

To me, orphans -- page breaks after the first line of a paragraph -- are tolerable in the normal text body, and so I leave TeX's default settings (\clubpenalty=150) alone. On the other hand, I want to ...
6
votes
1answer
788 views

Large gaps between paragaphs VS avoiding widows / orphans

How to avoid widow and orphan lines, while also avoiding too large gaps appearing between the paragraphs on the previous page? I figure that to strongly discourage widows and orphans, one would use a ...
2
votes
2answers
2k views

How to avoid heading orphan?

I want to get rid of pages ending with a heading title only. I want at least 2 text rows following the heading title to make a better look. What is the exact value to be passed to \Needspace*{} to ...
2
votes
2answers
524 views

How to avoid orphan line of multipage tabular?

There is an orphan line on page 2. How to get rid of it? Minimal Code \documentclass{article} \usepackage[a4paper,margin=5cm,landscape]{geometry} \usepackage{longtable,array} ...
7
votes
2answers
1k views

LaTeX produces bad, widowed line

I just found a widowed line in my PDF document, created by LaTeX. It looks something like this, see "sion" on the second page: | blah blah expres- | | 8 | --------------------- ...
27
votes
4answers
9k views

How do I prevent widow/orphan lines?

How do I prevent a line from appearing by itself: Orphan: at the bottom of the page, or Widow: at the top of the page?
24
votes
3answers
902 views

How to avoid widow lines after displayed equations

If a displayed equation is close to the bottom of the page, TeX likes to insert a page break even if the current paragraph contains only one more line after the equation, as e.g. in ... it follows ...
27
votes
2answers
2k views

Widow word on a page? I thought LaTeX wouldn't do that

Just had a surprise. I have a section in an article followed by a figure. The text flows over a page and ... one more word on the next page (which also includes the figure). Yes, I added a ~ before ...