Linked Questions

2 votes
1 answer

What are exactly those \widowpenalties and what are they doing precisely? [duplicate]

In this answer, the author is using the command \widowpenalties=3 10000 10000 150. While I can understand what \widowpenalty is doing, I found no documentation for \widowpenalties3 nor for \...
Watson's user avatar
  • 870
1 vote
0 answers

Suppressing pagebreaks within paragraphs [duplicate]

Possible Duplicate: How to avoid page-breaks inside paragraphs? The style spec for a document requires that pagebreaks come between paragraphs or list items, so paragraphs are never split across ...
SevenSidedDie's user avatar
61 votes
5 answers

Typesetting limitations of LaTeX

What are the typesetting limitations of LaTeX? In other words what are the things that desktop publishing and word processing programs do better than LaTeX? I am not really interested in things that ...
StrongBad's user avatar
  • 20.5k
47 votes
7 answers

Avoiding page breaks shortly after section/subsection headings

By default, LaTeX allows a page break after the first two lines of paragraphs following section/subsection headings. How can I enlarge this minimum to, say, three lines or 10 percent of the value of \...
lockstep's user avatar
  • 250k
31 votes
3 answers

Typesetting poems

I have ~250 poems to typeset, consisting of ~40 verses each. 99% are in this form: line 1 line 2 line 3 line 4 line 5 line 6 line 7 line 8 ... The "source" of each poem is a PDF file which I use ...
topskip's user avatar
  • 37k
8 votes
1 answer

How do I forbid pagebreaks inside urls without forbidding linebreaks?

Consider the document \documentclass{article} \usepackage{lipsum} \usepackage{hyperref} \begin{document} \edef\l{Lorem,ipsum,dolor,sit,amet,, consectetur,adipiscing,elit,,sed,do, eiusmod,tempor,...
Jason Gross's user avatar
  • 2,125
7 votes
2 answers

Line Overflow and Page Breaks in References (Bibliography in RMarkdown PDF Pandoc)

Update I rewrote the post providing a MWE according to the suggestions by the comments below. Problem When generating the list of references at the end of my paper, the PDF output has two issues ...
Toaditoad's user avatar
6 votes
1 answer

Using needspace for every paragraph with LyX

I am using on a windows XP OS. I have MikTeX 2.9 installed. I am trying to use the needspace package. As such I have opened MikTex installed it , then refreshed FNDB via the 'Settings' in ...
barsil sil's user avatar
4 votes
1 answer

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 ...
leviathan's user avatar
  • 495
3 votes
1 answer

prevent page break inside a sentence

I am asked to not break sentences so that they are on two pages. Is there a way to globally and automatically prevent sentences to be split into two pages? It should look like it would be a new ...
aquila's user avatar
  • 149
0 votes
1 answer

How to prevent a page break in a bib item?

I'm making an annotated bibliography like the following MWE, thanks to moewe's answer. I would like to prevent a page break in a bib item, though the page break between the items is tolerable. A ...
Carlos Luis Rivera's user avatar
5 votes
2 answers

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 ...
sapi's user avatar
  • 571
1 vote
2 answers

How to avoid pagebreak, and properly group <surname> <name1><name2><name3> with imakeidx?

I am using imakeidx. How do I group entries in the (person) index in a way that they do not get split across page boundaries? My goal here is to have groups of surnames "Smith" and a group ...
Hans's user avatar
  • 11
0 votes
0 answers

How can I control the minimum number of lines in last page?

How can I control the minimum number of lines(5 lines) in last page? \documentclass{article} \begin{document} Hello, here is some text without a meaning. This text should show what a printed text ...
Uvaraj's user avatar
  • 31
1 vote
1 answer

Avoid pagebreaks inside paragraph using while obeylines

Is there a way to stop pagebreaks inside paragraphs in a document with \obeylines? I have found this question: How to avoid page-breaks inside paragraphs?, but none of the solutions suggested there ...
aky-her's user avatar
  • 229