Full Control Over Footnote Placement for memoir
This is a follow-up to LuaLaTeX Footnote Maze, which documented the long road to making memoir paragraph footnotes work inside breakable tcolorbox environments with hyperref. That solved half the problem. This post solves the rest of the problem: deciding exactly where on the page footnotes appear.
Downloads: memoir-fnqueue.sty · memoir-tcolorbox.sty · test-fn.tex · test-fn.py
The Remaining Gap #
After the earlier work, footnotes escaped their tcolorbox prisons and rendered as proper paragraph footnotes with working hyperref links. But placement was still automatic—footnotes released at the end of a box landed wherever TeX’s page builder decided, sometimes colliding with other content when the combined height of sidebar plus footnotes barely exceeded the page.
...