Announcements for lua-widow-control
- 2024-03-12 CTAN update: lua-widow-control
- 2022-11-23 CTAN update: lua-widow-control
- 2022-08-25 CTAN update: lua-widow-control
- 2022-07-29 CTAN update: lua-widow-control
- 2022-06-19 CTAN update: lua-widow-control
- 2022-05-28 CTAN update: lua-widow-control
- 2022-05-21 CTAN update: lua-widow-control
- 2022-05-15 CTAN update: lua-widow-control
- 2022-04-25 CTAN update: lua-widow-control
- 2022-04-15 CTAN update: lua-widow-control
- 2022-04-08 CTAN update: lua-widow-control
- 2022-03-30 CTAN update: lua-widow-control
- 2022-03-22 CTAN update: lua-widow-control
- 2022-03-20 CTAN update: lua-widow-control
- 2022-03-09 CTAN update: lua-widow-control
- 2022-02-23 CTAN update: lua-widow-control
- 2022-02-16 CTAN update: lua-widow-control
- 2022-02-05 CTAN update: lua-widow-control
- 2022-02-01 CTAN update: lua-widow-control
- 2021-10-11 New on CTAN: lua-widow-control
lua-widow-control – Automatically remove widows and orphans from any document
Unmodified TeX has very few ways of preventing widows and orphans.
In documents with figures, section headings, and equations, TeX can
stretch the vertical glue between items in order to prevent widows
and orphans, but many documents have no figures or headings.
TeX can also shorten the page by 1 line, but this will give each
page a different length which can make a document look uneven.
The typical solution is to strategically insert \looseness=1
,
but this requires manual editing every time that the document is edited.
Lua-widow-control is essentially an automation of the
\looseness
method: it uses Lua callbacks to find
“stretchy” paragraphs, then it lengthens them to remove widows and orphans.
Lua-widow-control is compatible with all LuaTeX and LuaMetaTeX-based formats. All that is required is to load the package at the start of your document. To load:
- Plain LuaTeX:
\input lua-widow-control
- LuaLaTeX:
\usepackage{lua-widow-control}
- ConTeXt:
\usemodule[lua-widow-control]
- OpTeX:
\load[lua-widow-control]
Package | lua-widow-control |
Version | 3.0.1 2024-03-11 |
Copyright | 2021–2022 gucci-on-fleek |
Maintainer | Max Chernoff |
Atom Atom 1.0 feed with announcements for package lua-widow-control.
RSS RSS 2.0 feed with announcements for package lua-widow-control.