Closed ghost closed 1 year ago
footmisc contains an updated output routine (that will eventually make it into the LaTeX kernel, even if not quite in that form) and marginfix patches low-level into the old one. Both packages try to do their thing in a way that other packages aren't effected, but footmisc is actually somewhat more successful :-)
So if you change the loading order (marginfix first) your problem vanishes.
I could change footmisc to anticipate the patching of \@combinefloats
even if it happens later (and I may do so, but mid-term it would be best if fixmargin is not patching internals of the OR whether old or new) --- for this the kernel version will get apprpriate hooks so that such issues will not happen in the future if every package uses the right interfaces.
@FrankMittelbach Thank you! Indeed, changing the order of loading gets rid of the bug:
\documentclass{article}
\usepackage{marginfix}
\usepackage{footmisc}
\usepackage{todonotes}
\begin{document}
\todo{test}
\end{document}
I've just pinged the marginfix maintainer on this and updated the two remaining bug reports (todonotes now excluded) with information you provided.
@FrankMittelbach Since your message implies that marginfix is now less successful than footmisc concerning patching the output routine, does marginfix still work as originally intended? Or, if it no longer works properly, could marginfix be dropped?
@AlMa0r nothing like that was implied, that was kind of a midnight joke.
@FrankMittelbach I see you've just adapted footmisc; thanks a lot! Will be looking forward to test it as soon as it gets into TeX Live!
Feeding
or
to
pdflatex
leads to a compilation error:Unfortunately, the explanation of “lost some margin notes” in § 13 of the documentation of marginfix says nothing to me. Having a bit more text, say,
doesn't help.
Used versions:
pdfTeX, Version 3.141592653-2.6-1.40.24 (TeX Live 2022/Debian)
LaTeX2e <2022-11-01>
L3 programming layer <2022-11-02>
article 2022/07/02 v1.4n
footmisc 2022/03/08 v6.0d
marginfix 2020/05/06 v1.2
todonotes 2021/06/04 v1.1.5
These versions were in TeX Live in Debian-testing this spring.
Who is the culprit? Any more permanent bugfix than
\usepackage{footmisc}[=v5]
(thx to David Carlisle) or loading marginfix before footmisc (thx to Frank Mittelbach)?Crossposts: http://github.com/shicks/marginfix/issues/19 and http://github.com/henrikmidtiby/todonotes/issues/71 .
Old version of the same bug: https://tex.stackexchange.com/questions/652835/footmisc-marginfix-todonotes-error .
Probably related: http://github.com/shicks/marginfix/issues/18 .