Skip to content

Color of margin notes not properly set #13

@aoles

Description

@aoles

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}

marginfix

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions