gucci-on-fleek / gucci-on-fleek/lua-widow-control

`lineno` makes `lua-widow-control` think there are many nonexistent pages in the output

Open
#41 8 comments 0 reactions 1 assignee Claimed by @gucci-on-fleek View on GitHub
LaTeX Minor Bug
Dominant language
TeX
Stars
21
Forks
2
PR merge metrics
No merged PRs in 30d

Description

### Issue

`lineno` seems to trick `lua-widow-control` into thinking there are (many) nonexistent pages in the output. In the MWE below, `lua-widow-control` complains about stuff on page 65 whereas the output has only 2 pages.

### Expected Behavior

I expected that `lua-widow-control` wouldn’t have this weird interaction with `lineno`. Unfortunately, I can’t say if this is just a false alarm or if it actually prevents `lua-widow-control` from doing its job. (It definitely seems to be doing _some_ job still.)

### Reproduction

```TeX
\documentclass[a4paper,11pt]{article}

\usepackage[american]{babel}

\usepackage[debug=true]{lua-widow-control}

\usepackage{lineno}%
\linenumbers{}

\usepackage{lipsum}

\begin{document}
\lipsum{}
\end{document}
```

### Log File

```plain text
Running `LaTeX' on `lineno+lua-widow-control' with ``lualatex --jobname=lineno\+lua-widow-control -file-line-error -shell-escape --synctex=1 -interaction=nonstopmode lineno\+lua-widow-control.tex''
This is LuaHBTeX, Version 1.16.0 (TeX Live 2023)
system commands enabled.
(./lineno+lua-widow-control.tex
LaTeX2e <2022-11-01> patch level 1
L3 programming layer <2023-03-30>
($TEXMFDIST/tex/latex/base/article.cls
Document Class: article 2022/07/02 v1.4n Standard LaTeX document class
($TEXMFDIST/tex/latex/base/size11.clo))
($TEXMFDIST/tex/generic/babel/babel.sty
($TEXMFDIST/tex/generic/babel/luababel.def)
($TEXMFDIST/tex/generic/babel/luababel.def)
($TEXMFDIST/tex/generic/babel-english/american.ldf
($TEXMFDIST/tex/generic/babel-english/english.ldf)))
($TEXMFDIST/tex/generic/babel/locale/en/babel-american.tex)
($TEXMFDIST/tex/lualatex/lua-widow-control/lua-widow-control.sty)
($TEXMFDIST/tex/latex/lineno/lineno.sty
($TEXMFDIST/tex/latex/etoolbox/etoolbox.sty)) ($TEXMFDIST/tex/latex/lipsum/lipsum.sty
($TEXMFDIST/tex/latex/l3packages/l3keys2e/l3keys2e.sty
($TEXMFDIST/tex/latex/l3kernel/expl3.sty
($TEXMFDIST/tex/latex/l3backend/l3backend-luatex.def)))
($TEXMFDIST/tex/latex/lipsum/lipsum.ltd.tex))
($TEXMFDIST/tex/latex/microtype/microtype.sty ($TEXMFDIST/tex/latex/graphics/keyval.sty)

($TEXMFDIST/tex/latex/microtype/microtype-luatex.def)
($TEXMFDIST/tex/latex/microtype/microtype.cfg)) (./lineno+lua-widow-control.aux)
($TEXMFDIST/tex/latex/base/ts1cmr.fd)
($TEXMFDIST/tex/latex/microtype/mt-LatinModernRoman.cfg)
($TEXMFDIST/tex/generic/hyph-utf8/loadhyph/loadhyph-la.tex UTF-8 Latin hyphenation patterns
($TEXMFDIST/tex/generic/hyph-utf8/patterns/tex/hyph-la.tex))
Module lua-widow-control Warning: Widow/Orphan/Broken Hyphen NOT removed on page 1 on input line 13

Module lua-widow-control Warning: Widow/Orphan/Broken Hyphen NOT removed on page 11 on input line 13

Module lua-widow-control Warning: Widow/Orphan/Broken Hyphen NOT removed on page 13 on input line 13

Module lua-widow-control Warning: Widow/Orphan/Broken Hyphen NOT removed on page 19 on input line 13

Module lua-widow-control Warning: Widow/Orphan/Broken Hyphen NOT removed on page 21 on input line 13

Module lua-widow-control Warning: Widow/Orphan/Broken Hyphen NOT removed on page 29 on input line 13

Module lua-widow-control Warning: Widow/Orphan/Broken Hyphen NOT removed on page 31 on input line 13

Module lua-widow-control Warning: Widow/Orphan/Broken Hyphen NOT removed on page 36 on input line 13

Module lua-widow-control Warning: Widow/Orphan/Broken Hyphen NOT removed on page 38 on input line 13
[1{$TEXMFSYSVAR/fonts/map/pdftex/updmap/pdftex.map}]
Module lua-widow-control Warning: Widow/Orphan/Broken Hyphen NOT removed on page 48 on input line 13

Module lua-widow-control Warning: Widow/Orphan/Broken Hyphen NOT removed on page 50 on input line 13

Module lua-widow-control Warning: Widow/Orphan/Broken Hyphen NOT removed on page 56 on input line 13

Module lua-widow-control Warning: Widow/Orphan/Broken Hyphen NOT removed on page 58 on input line 14

Module lua-widow-control Warning: Widow/Orphan/Broken Hyphen NOT removed on page 65 on input line 14
[2] (./lineno+lua-widow-control.aux))
439 words of node memory still in use:
4 hlist, 1 vlist, 1 rule, 4 glue, 3 kern, 1 glyph, 8 attribute, 48 glue_spec, 5 attribute_list, 1 write nodes
avail lists: 1:5,2:542,3:181,4:111,5:329,6:10,7:7856,9:299,10:52,11:856
<$TEXMFDIST/fonts/opentype/public/lm/lmsans8-regular.otf><$TEXMFDIST/fonts/opentype/public/lm/lmroman10-regular.otf>
Output written on lineno+lua-widow-control.pdf (2 pages, 14287 bytes).
SyncTeX written on lineno+lua-widow-control.synctex.gz.
Transcript written on lineno+lua-widow-control.log.

TeX Output finished at Tue Apr 4 10:07:20
```

### Format

LaTeX

### Distribution

TeX Live

### Distribution Version

2023

### Lua-widow-control Version

v3.0.0

### Other Relevant Packages and Versions

_No response_

### Other

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.