Not start a new page with scanty number of words, lines [duplicate]
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 10 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 10 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 12 hours ago
ViestursViesturs
1,93141227
1,93141227
marked as duplicate by Skillmon, JouleV, Kurt, Phelype Oleinik, Stefan Pinnow 10 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 10 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 11 hours ago
answered 12 hours ago
frougonfrougon
756611
756611
add a comment |
add a comment |