summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/luatex/lua-widow-control/lwc-sample.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-03-19 20:03:16 +0000
committerKarl Berry <karl@freefriends.org>2022-03-19 20:03:16 +0000
commite8be1d547a4b7dae051eb30aabd3fb75e754a1df (patch)
tree5ad26597f62fc62e1510e72a1f232076aa400800 /Master/texmf-dist/source/luatex/lua-widow-control/lwc-sample.tex
parent89104bb74c1962cf054486be01c1f2180591dec4 (diff)
lua-widow-control (18mar22)
git-svn-id: svn://tug.org/texlive/trunk@62811 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/luatex/lua-widow-control/lwc-sample.tex')
-rw-r--r--Master/texmf-dist/source/luatex/lua-widow-control/lwc-sample.tex6
1 files changed, 3 insertions, 3 deletions
diff --git a/Master/texmf-dist/source/luatex/lua-widow-control/lwc-sample.tex b/Master/texmf-dist/source/luatex/lua-widow-control/lwc-sample.tex
index 0ba9f17f76b..8df05999a52 100644
--- a/Master/texmf-dist/source/luatex/lua-widow-control/lwc-sample.tex
+++ b/Master/texmf-dist/source/luatex/lua-widow-control/lwc-sample.tex
@@ -37,10 +37,10 @@
\setuplanguage[en][spacing=packed]
\starttext
- \Lwc/ can remove most widows and orphans from a document, \emph{without} stretching any glue or shortening any pages.
-
+ \Lwc/ can remove most widows and orphans from a document, \emph{without} stretching any glue or shortening any pages.
+
It does so by automatically lengthening a paragraph on a page where a widow or orphan would otherwise occur. While \TeX{} breaks paragraphs into their natural length, \lwc/ is breaking the paragraph 1~line longer than its natural length. \TeX{}'s paragraph is output to the page, but \lwc/'s paragraph is just stored for later. When a widow or orphan occurs, \lwc/ can take over. It selects the previously-saved paragraph with the least badness; then, it replaces \TeX{}'s paragraph with its saved paragraph. This increases the text block height of the page by 1~line.
-
+
Now, the last line of the current page can be pushed to the top of the next page. This removes the widow or the orphan without creating any additional work.
\stoptext
\stopbuffer