Directory macros/luatex/latex/lua-typo
Lua-typo
Description
This package tracks common typographic flaws in LuaLaTeX documents, specially widows, orphans, hyphenated words split over two pages, consecutive lines ending with hyphens, paragraphs ending on too short lines, etc.
Documentation
For the impatient: have a look at files demo.tex and demo.pdf to see a short example of how some flaws are highlighted.
Then read the documentation in English (file lua-typo.pdf) or in French (file lua-typo-fr.pdf).
License
Released under the LaTeX Project Public License v1.3c or later See http://www.latex-project.org/lppl.txt for the details of that license.
Installation
This bundle is meant to be included in most TeX distributions, but if you really need to install it by yourself
- run "luatex lua-typo.dtx" to strip the comments and create lua-typo.sty, lua-typo.cfg, lua-typo.ltx and lua-typo-fr.ltx;
- run "lualatex lua-typo.ltx" to get the full documentation (lua-typo.pdf) in English;
- run "lualatex lua-typo-fr.ltx" to get the French documentation (lua-typo-fr.pdf, without documented code).
Recommended locations for installation:
- TDS:tex/lualatex/lua-typo/lua-typo.sty
- TDS:tex/lualatex/lua-typo/lua-typo.cfg
- TDS:doc/lualatex/lua-typo/lua-typo.pdf
- TDS:doc/lualatex/lua-typo/demo.pdf
- TDS:doc/lualatex/lua-typo/demo.tex
- TDS:doc/lualatex/lua-typo/README.md
- TDS:source/lualatex/lua-typo/lua-typo.dtx
On Debian based systems, the "TDS:" prefix can be replaced by "$HOME/texmf/" for a single user installation.
Changes
- First release version: 0.30, March 2021.
- v.0.32: bug fixes
- better protection against nil nodes,
- new page detection corrected,
- homeoarchy detection improved.
- v.0.40 (not released): bug fixes
- in some cases parlines count was wrong, fixed;
- partial improvement of short pages detection.
- v.0.50: new implementation, May 2021
- callback change:
pre_shipout_filter
instead ofpre_output_filter
this change requires latex release 2021-06-01; - rollback enabled in case
pre_shipout_filter
is missing; - footnotes are scanned now;
- overfull box detection fixed (works for equations and tt fonts now);
- short pages detection fixed;
- coloration of faulty lines improved;
- all flaws found are now recorded into file "
\jobname
.typo".
- callback change:
- v.0.51 (not released): bug fix
- in some cases orphans were not detected.
- v.0.60: new implementation, Feb. 2023
- this version should do a better job on two columns documents;
- debugging stuff added.
- v.0.61:
- bug fixes and documentation enhanced;
- colours
mygrey
andmyred
renamed asLTgrey
andLTred
.
- v.0.65:
- new option
ShortFinalWord
to detect short end-of-sentence word on top of next page; - code cleaning.
- new option
- v.0.70:
- options handled via
ltkeys
instead ofkvoptions
; - Code cleaning, bug fixes.
- options handled via
- v.0.80:
- config file
lua-typo.cfg
changed (new colours added, all colour numbers are shifted by 1); - colours no longer override each other, a special colour has been added for lines affected by multiple flaws (f.i. widow+overfull);
- bug fix (file
.typo
): in footnotes, line numbers for homeoarchy were not reset.
- config file
- v.0.85:
- a warning is issued if some pages fail to be checked properly;
- margin notes checking added (over/underfull lines, position);
- code cleaning, bug fixes.
- v.0.86:
- corrected typo in the
signature
function; - compatibility with package
stfloats
added.
- corrected typo in the
- v.0.87:
- improved page body detection.
- warning about incompability with the
reledmac
package added.
– Copyright 2020–2024 Daniel Flipo E-mail: daniel (dot) flipo (at) free (dot) fr
Download the contents of this package in one zip archive (342.4k).
lua-typo – Highlighting typographical flaws with LuaLaTeX
Prints the list of pages on which typographical flaws were found (i.e. widows, orphans, hyphenated words split across two pages, consecutive lines ending with hyphens, paragraphs ending on too short or nearly full lines, homeoarchy, etc). Customisable colours are used to highlight these flaws.
Package | lua-typo |
Version | 0.87 2024-04-18 |
Licenses | The LaTeX Project Public License 1.3c |
Copyright | 2020–2024 Daniel Flipo |
Maintainer | Daniel Flipo |
Contained in | TeX Live as lua-typo MiKTeX as lua-typo |
Topics | Text layout LuaTeX |