TUGboat 43:1 (2022)
The Communications of the TeX Users Group

Title: Automatically removing widows and orphans with lua-widow-control

Summary: automated removal of widow and orphan lines, without stretching, in all Lua formats.

Full text of article: publicly available now.

Author: Max Chernoff

Publication: TUGboat volume 43, number 1 (2022), pages 28-39

DOI (this page): 10.47397/tb/43-1/tb133chernoff-widows
(previous doi - next doi)

Category: Methods

Difficulty: Advanced

Abstract: The lua-widow-control package, for plain LuaTeX/LuaLaTeX/ConTeXt/OpTeX, removes widows and orphans without any user intervention. Using the power of LuaTeX, it does so without stretching any glue or shortening any pages or columns. Instead, lua-widow-control automatically lengthens a paragraph on a page or column where a widow or orphan would otherwise occur.

To use lua-widow-control, all that most users need do is place \usepackage{lua-widow-control} in their preamble. No further changes are required.

References:

  1. G. Ambrose, P. Harris. The Layout Book. Advanced Level Series. Bloomsbury Academic, 2007.
  2. R. Bringhurst. The Elements of Typographic Style. Hartley & Marks, 3rd ed., 2004.
  3. K. Brown. The typographical widow. Bulletin of the New York Public Library 52(1):3–25, Jan. 1948. hdl.handle.net/2027/uc1.b3310084
  4. K. Brown. The typographical widow: Encore. Bulletin of the New York Public Library 52(9):458–466, Sept. 1948. hdl.handle.net/2027/uc1.b3310084
  5. R. Hunt. Advanced Typography: From Knowledge to Mastery. Bloomsbury Publishing, 2020.
  6. P. Isambert. Strategies against widows. TUGboat 31(1):12–17, 2010. tug.org/TUGboat/tb31-1/tb97isambert.pdf
  7. jeremie. Paragraph callback to help with widows/orphans hand tuning, August 2017. tex.stackexchange.com/q/372062
  8. D.E. Knuth. The new versions of TeX and Metafont. TUGboat 10(3):325–328, Nov. 1989. tug.org/TUGboat/tb10-3/tb25knut.pdf
  9. D.E. Knuth. The TeXbook. Addison–Wesley, 2021.
  10. F. Mittelbach. A general framework for globally optimized pagination. Computational Intelligence 35(2):242–284, Mar. 2018. doi.org/10.1111/coin.12165
  11. F. Mittelbach. Managing forlorn paragraph lines (a.k.a. widows and orphans) in LaTeX. TUGboat 39(3):246–251, 2018. tug.org/TUGboat/tb39-3/tb123mitt-widows.pdf
  12. F. Mittelbach. The widows-and-orphans package, March 2021. ctan.org/pkg/widows-and-orphans
  13. J. Moxon. Mechanick exercises, vol. 2, 1683. archive.org/details/mechanickexercis00moxo_0
  14. Oxford English Dictionary. line at end of paragraph. www.oed.com/view/th/class/195380
  15. Oxford English Dictionary. club, n., Sept. 2021. www.oed.com/view/Entry/34788
  16. Oxford English Dictionary. widow, n., Dec. 2021. www.oed.com/view/Entry/228912
  17. M.F. Plass. Optimal pagination techniques for automatic typesetting systems. Ph.D. thesis, Stanford University, 1981. tug.org/docs/plass/plass-thesis.pdf
  18. I. Saltz. Typography Essentials Revised and Updated. Rockport Publishers, 2019.
  19. Hàn Thế Thành. Micro-typographic extensions to the TeX typesetting system. TUGboat 21(4):317–317, Dec. 2000. tug.org/TUGboat/tb21-4/tb69thanh.pdf
  20. The NTS Team. The ε-TeX manual, Feb. 1998. ctan.org/pkg/etex
  21. U. Wermuth. Experiments with \parfillskip. TUGboat 39(3):276–303, 2018. tug.org/TUGboat/tb39-3/tb123wermuth-parfillskip.pdf

TUGboat 43:1, 2022 (issue 133)   [generated 2022-09-12]
TUG home page; join TUG/renew membership; webmaster; facebook; x; mastodon.