CTAN Comprehensive TeX Archive Network

CTAN update: lua-widow-control

Date: November 23, 2022 10:49:10 AM CET
Max Chernoff submitted an update to the lua-widow-control package. Version: 3.0.0 2022-11-22 License: other-free cc-by-sa-4 Summary description: Automatically remove widows and orphans from any document Announcement text:
- Add new TUGboat and Zpravodaj articles. - Add and document the public Lua interfaces. - Change \parfillskip settings for lengthened paragraphs to more strongly prevent short last lines. **May affect page breaks.** - Add the ability to configure the horizontal offset for the paragraph costs printed in draft mode. - Add support for LuaMetaLaTeX and LuaMetaPlain. All features should work identically to the LuaTeX-based version, although there are a few minor bugs. (#40) - Fully support inserts/footnotes in LuaMetaTeX (#38). - Add support for presets in ConTeXt. - Add support for node colouring in ConTeXt and OpTeX (#39).
The package’s Catalogue entry can be viewed at https://ctan.org/pkg/lua-widow-control The package’s files themselves can be inspected at https://mirrors.ctan.org/macros/luatex/generic/lua-widow-control/
Thanks for the upload. For the CTAN Team Petra Rübe-Pugliese
CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs

lua-widow-control – Automatically remove widows and orphans from any document

Unmodified has very few ways of preventing widows and orphans. In documents with figures, section headings, and equations, can stretch the vertical glue between items in order to prevent widows and orphans, but many documents have no figures or headings. 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 Lua and LuaMeta-based formats. All that is required is to load the package at the start of your document. To load:

  • Plain Lua: \input lua-widow-control
  • Lua: \usepackage{lua-widow-control}
  • Cont: \usemodule[lua-widow-control]
  • Op: \load[lua-widow-control]

Packagelua-widow-control
Version3.0.0 2022-11-22
Copyright2021–2022 gucci-on-fleek
MaintainerMax Chernoff

Announcements

more

Guest Book Sitemap Contact Contact Author