Not start a new page with scanty number of words, lines [duplicate]How do I prevent widow/orphan lines?Index...
How to format long polynomial?
meaning of に in 本当に?
Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?
Watching something be written to a file live with tail
NMaximize is not converging to a solution
Did Shadowfax go to Valinor?
How much of data wrangling is a data scientist's job?
How to determine what difficulty is right for the game?
Languages that we cannot (dis)prove to be Context-Free
What's the point of deactivating Num Lock on login screens?
Rock identification in KY
"You are your self first supporter", a more proper way to say it
Convert two switches to a dual stack, and add outlet - possible here?
Approximately how much travel time was saved by the opening of the Suez Canal in 1869?
Are the number of citations and number of published articles the most important criteria for a tenure promotion?
Arrow those variables!
Revoked SSL certificate
Why doesn't Newton's third law mean a person bounces back to where they started when they hit the ground?
What would happen to a modern skyscraper if it rains micro blackholes?
What defenses are there against being summoned by the Gate spell?
Replacing matching entries in one column of a file by another column from a different file
Java Casting: Java 11 throws LambdaConversionException while 1.8 does not
Does an object always see its latest internal state irrespective of thread?
Can a Cauchy sequence converge for one metric while not converging for another?
Not start a new page with scanty number of words, lines [duplicate]
How do I prevent widow/orphan lines?Index shouldn't start new pageSection should automatically start new page if the whole section does not fit on current pageNew page at end of subsection (not start!)Why do I get an extra white page before my TikZ picture?How to force section to not go to new page in articleTwo maketitles in one pageNot to start the bibliography in a new pageStart new page with each partTest for number of lines left on a pageHow to avoid new pages in the middle of a sentence?
This question already has an answer here:
How do I prevent widow/orphan lines?
6 answers
This script
documentclass{article}
usepackage{lipsum}
begin{document}
lipsum[1-5]
lipsum[6][1-2]
end{document}
produces the output
How can I avoid starting page 2 with such a scanty number of words, lines?
page-breaking
marked as duplicate by Skillmon, JouleV, Kurt, Phelype Oleinik, Stefan Pinnow 6 hours ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
How do I prevent widow/orphan lines?
6 answers
This script
documentclass{article}
usepackage{lipsum}
begin{document}
lipsum[1-5]
lipsum[6][1-2]
end{document}
produces the output
How can I avoid starting page 2 with such a scanty number of words, lines?
page-breaking
marked as duplicate by Skillmon, JouleV, Kurt, Phelype Oleinik, Stefan Pinnow 6 hours ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
How do I prevent widow/orphan lines?
6 answers
This script
documentclass{article}
usepackage{lipsum}
begin{document}
lipsum[1-5]
lipsum[6][1-2]
end{document}
produces the output
How can I avoid starting page 2 with such a scanty number of words, lines?
page-breaking
This question already has an answer here:
How do I prevent widow/orphan lines?
6 answers
This script
documentclass{article}
usepackage{lipsum}
begin{document}
lipsum[1-5]
lipsum[6][1-2]
end{document}
produces the output
How can I avoid starting page 2 with such a scanty number of words, lines?
This question already has an answer here:
How do I prevent widow/orphan lines?
6 answers
page-breaking
page-breaking
asked 8 hours ago
ViestursViesturs
1,93141127
1,93141127
marked as duplicate by Skillmon, JouleV, Kurt, Phelype Oleinik, Stefan Pinnow 6 hours ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by Skillmon, JouleV, Kurt, Phelype Oleinik, Stefan Pinnow 6 hours ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You can use TeX's looseness
parameter. If you say looseness=<number>
for a paragraph, TeX will try to make it <number>
lines longer than what would have been done otherwise, without exceeding the current tolerance
. <number>
may be negative, so in your case, setting looseness=-1
for one of the paragraphs does the trick:
documentclass{article}
usepackage{lipsum}
begin{document}
looseness=-1 % make the next paragraph one line shorter than usual
lipsum[1-5]
lipsum[6][1-2]
end{document}
According to the TeXbook, looseness
is reset to zero at the same time as hangindent
, hangafter
, and parshape
are reset to their normal values, which is
at the end of every paragraph, and (by local definitions) whenever it
enters internal vertical mode.
(TeXbook p. 103)
Therefore, the looseness=-1
in the above example affects only the first of the five paragraphs produced by lipsum[1-5]
. There is no need to do this assignment in a group.
If I remember correctly, the TeXbook also mentions a trick to spread some looseness among several paragraphs. I could probably find it if you're interested.
As suggested in Skillmon's comment, another way would be to play with penalties, in particular with widowpenalty
(to avoid page breaking before the last line of a paragraph) and linepenalty
(to make TeX's line breaking algorithm more reluctant to add lines to a paragraph: this penalty defines the “base cost” of each line).
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can use TeX's looseness
parameter. If you say looseness=<number>
for a paragraph, TeX will try to make it <number>
lines longer than what would have been done otherwise, without exceeding the current tolerance
. <number>
may be negative, so in your case, setting looseness=-1
for one of the paragraphs does the trick:
documentclass{article}
usepackage{lipsum}
begin{document}
looseness=-1 % make the next paragraph one line shorter than usual
lipsum[1-5]
lipsum[6][1-2]
end{document}
According to the TeXbook, looseness
is reset to zero at the same time as hangindent
, hangafter
, and parshape
are reset to their normal values, which is
at the end of every paragraph, and (by local definitions) whenever it
enters internal vertical mode.
(TeXbook p. 103)
Therefore, the looseness=-1
in the above example affects only the first of the five paragraphs produced by lipsum[1-5]
. There is no need to do this assignment in a group.
If I remember correctly, the TeXbook also mentions a trick to spread some looseness among several paragraphs. I could probably find it if you're interested.
As suggested in Skillmon's comment, another way would be to play with penalties, in particular with widowpenalty
(to avoid page breaking before the last line of a paragraph) and linepenalty
(to make TeX's line breaking algorithm more reluctant to add lines to a paragraph: this penalty defines the “base cost” of each line).
add a comment |
You can use TeX's looseness
parameter. If you say looseness=<number>
for a paragraph, TeX will try to make it <number>
lines longer than what would have been done otherwise, without exceeding the current tolerance
. <number>
may be negative, so in your case, setting looseness=-1
for one of the paragraphs does the trick:
documentclass{article}
usepackage{lipsum}
begin{document}
looseness=-1 % make the next paragraph one line shorter than usual
lipsum[1-5]
lipsum[6][1-2]
end{document}
According to the TeXbook, looseness
is reset to zero at the same time as hangindent
, hangafter
, and parshape
are reset to their normal values, which is
at the end of every paragraph, and (by local definitions) whenever it
enters internal vertical mode.
(TeXbook p. 103)
Therefore, the looseness=-1
in the above example affects only the first of the five paragraphs produced by lipsum[1-5]
. There is no need to do this assignment in a group.
If I remember correctly, the TeXbook also mentions a trick to spread some looseness among several paragraphs. I could probably find it if you're interested.
As suggested in Skillmon's comment, another way would be to play with penalties, in particular with widowpenalty
(to avoid page breaking before the last line of a paragraph) and linepenalty
(to make TeX's line breaking algorithm more reluctant to add lines to a paragraph: this penalty defines the “base cost” of each line).
add a comment |
You can use TeX's looseness
parameter. If you say looseness=<number>
for a paragraph, TeX will try to make it <number>
lines longer than what would have been done otherwise, without exceeding the current tolerance
. <number>
may be negative, so in your case, setting looseness=-1
for one of the paragraphs does the trick:
documentclass{article}
usepackage{lipsum}
begin{document}
looseness=-1 % make the next paragraph one line shorter than usual
lipsum[1-5]
lipsum[6][1-2]
end{document}
According to the TeXbook, looseness
is reset to zero at the same time as hangindent
, hangafter
, and parshape
are reset to their normal values, which is
at the end of every paragraph, and (by local definitions) whenever it
enters internal vertical mode.
(TeXbook p. 103)
Therefore, the looseness=-1
in the above example affects only the first of the five paragraphs produced by lipsum[1-5]
. There is no need to do this assignment in a group.
If I remember correctly, the TeXbook also mentions a trick to spread some looseness among several paragraphs. I could probably find it if you're interested.
As suggested in Skillmon's comment, another way would be to play with penalties, in particular with widowpenalty
(to avoid page breaking before the last line of a paragraph) and linepenalty
(to make TeX's line breaking algorithm more reluctant to add lines to a paragraph: this penalty defines the “base cost” of each line).
You can use TeX's looseness
parameter. If you say looseness=<number>
for a paragraph, TeX will try to make it <number>
lines longer than what would have been done otherwise, without exceeding the current tolerance
. <number>
may be negative, so in your case, setting looseness=-1
for one of the paragraphs does the trick:
documentclass{article}
usepackage{lipsum}
begin{document}
looseness=-1 % make the next paragraph one line shorter than usual
lipsum[1-5]
lipsum[6][1-2]
end{document}
According to the TeXbook, looseness
is reset to zero at the same time as hangindent
, hangafter
, and parshape
are reset to their normal values, which is
at the end of every paragraph, and (by local definitions) whenever it
enters internal vertical mode.
(TeXbook p. 103)
Therefore, the looseness=-1
in the above example affects only the first of the five paragraphs produced by lipsum[1-5]
. There is no need to do this assignment in a group.
If I remember correctly, the TeXbook also mentions a trick to spread some looseness among several paragraphs. I could probably find it if you're interested.
As suggested in Skillmon's comment, another way would be to play with penalties, in particular with widowpenalty
(to avoid page breaking before the last line of a paragraph) and linepenalty
(to make TeX's line breaking algorithm more reluctant to add lines to a paragraph: this penalty defines the “base cost” of each line).
edited 7 hours ago
answered 7 hours ago
frougonfrougon
756611
756611
add a comment |
add a comment |