Closed Jinwen-XU closed 2 years ago
Yeah, that definitely shouldn't happen.
Normally when moving a footnote, lua-widow-control deletes the footnote text from the initial page, and then re-adds the footnote text to the moved page. When a footnote is so long that LaTeX splits it into two pages, lua-widow-control still deletes the first half of the footnote text from the initial page, but it does nothing about the second half already on the next page. Then, when it re-adds the footnote text, it adds the entire footnote, leading to the weird duplicated text.
As a temporary workaround, you can place
\interfootnotelinepenalty=10000
somewhere in your document's preamble to prevent any footnotes from splitting. I should hopefully have a proper fix for this out some time in the next week or two.
This should be fixed now with the latest commits. I'll get this pushed out to CTAN/TeX Live in a couple of days.
Issue
The footnote is displayed twice instead of simply moving to the next page with the corresponding line. This behavior appears to be different from that described in the "Known issue" section of the documentation.
Expected Behavior
I expected that
lua-widow-control
would move the paragraph and the footnote entirely to the next page.Reproduction
Log File
Format
LaTeX
Distribution
TeX Live
Distribution Version
2022
Lua-widow-control Version
2.2.1
Other Relevant Packages and Versions
No response
Other
No response