Sidenotes do not avoid each other when called inside definition
dwarfmaster opened this issue · 1 comments
dwarfmaster commented
Description
When adding two sidenotes too close to each other, kaobook manages to place them so that they avoid each other. However, if they are placed inside a definition, it seems the floating behaviour is disabled.
Minimal Working Example
\documentclass{kaobook}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage{kaobiblio}
\usepackage[framed=true]{kaotheorems}
\usepackage{kaorefs}
\begin{document}
\begin{definition}
Some text\sidenote{Hello}\sidenote{World}
\end{definition}
\end{document}
Expected behavior:
I would expect Hello
and World
not to overlap.
Actual behavior:
Hello
and World
actually overlap.
dwarfmaster commented
Turns out it is linked to the mdframed
environment, it works as expected with framed=false
.