-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Hi Stephen,
first of all, many thanks for your great package! It's superior to any other solution for positioning margin notes.
I've noticed the following problem: when marginfix is used, margin notes render with the color which was active at the beginning of the page. This is different from the way regular \marginpar works, and may lead to some unexpected behavior. Consider the following example of three paragraphs, each typeset with a different color and each containing a margin note.
\documentclass{article}
\usepackage{blindtext}
\usepackage{color}
\usepackage{marginfix}
\begin{document}
\color{blue}
\blindtext
\marginpar{Blue Note}
\blindtext
\color{red}
\blindtext
\marginpar{Red Note}
\blindtext
\clearpage
\color{green}
\blindtext
\marginpar{Green Note}
\blindtext
\end{document}As illustrated above, the colors of margin notes don't match the paragraph colors. Instead, the notes display in a color which is "carried over" from a previous context. I believe in most cases this is not the desired behavior. Rather, one would expect the notes to use the color which was active when they were defined. When I comment out \usepackage{marginfix}, the margin notes have the same color as the color of the paragraph in which they appear.
Any thoughts on how this issue could be resolved? Any help is highly appreciated!
Thanks,
Andrzej
