With the Memoir
document class the vertical position of margin notes specified via \marginpar
is flexible so that adjacent notes are prevented from overlapping:
\documentclass{memoir}
\usepackage{lipsum}
\begin{document}
\lipsum[1][1]%
\marginpar{Hello, world!}%
\marginpar{Bonjour, monde!}%
\lipsum[1][2-4]
\end{document}
Contrary to this, with the KOMA-Script
document classes adjacent margin notes specified via \marginnote
(of the marginnote
package) overlap:
\documentclass{scrartcl}
\usepackage{lipsum}
\usepackage{marginnote}
\begin{document}
\lipsum[1][1]%
\marginnote{Hello, world!}%
\marginnote{Bonjour, monde!}%
\lipsum[1][2-4]
\end{document}
(Note: the KOMA-Script
code needs to be compiled twice in order to work properly. And, by the way, I use LuaLaTeX.)
How can the non-overlapping behavior of margin notes exhibited by the Memoir
document class be emulated in the context of the KOMA-Script
document classes?
marginnote
rather thanmarginpar
because of this problem. It would have been better if I'd comparedmarginnote
's behavior tomarginpar
's behavior in the context ofKOMA-Script
rather than comparingmarginnote
's behavior in the context ofKOMA-Script
tomarginpar
's behavior in the context ofMemoir
.