FrankMittelbach / fmitex-footmisc

The footmisc package originally developed and mainted by Robin Fairbairns
7 stars 2 forks source link

footmisc: The `perpage` option will add two extra spaces at the end of the last paragraph #4

Closed tanukihee closed 2 years ago

tanukihee commented 4 years ago

MWE:

\documentclass{article}
\usepackage[showframe]{geometry}
\usepackage[perpage]{footmisc}
\begin{document}
\hfill lorem

\hfill ipsum
\end{document}

Compiled by either pdflatex, xelatex or lualatex, we get image

I changed the length of \spaceskip and found there were two spaces added at the last; I added a % at the end of the last paragraph and the spaces did not disappear; I added one more new blank line before \end{document} and the spaces finally disappeared.

I also reported it to CTeX-org and they may have found the reason.

FrankMittelbach commented 4 years ago

I opened an issue on latex2e https://github.com/latex3/latex2e/issues/385.

If that gets resolved the problem here vanishes. The missing %should get added nevertheless but I'm reluctant to make a CTAN release for that alone es it is effectively harmless. So instead I intend to combine that with some other updates I plane for later this year.

In the meantime a workaround is to simply add a blank line before \end{document} (which I would do anyway for readability of the source).

FrankMittelbach commented 2 years ago

not sure since when it is resolved, but it is resolved :-)