gutenberg / latex-awesomebox

A package to draw attention boxes in your documents, illustrated with FontAwesome icons (Mirror)
https://git.umaneti.net/latex-awesomebox/about/
Do What The F*ck You Want To Public License
52 stars 6 forks source link

Equation numbers in document class amsart appear in the margin #20

Open AlexanderZeilmann opened 2 years ago

AlexanderZeilmann commented 2 years ago

A picture probably explains the bug best: awesomebox

Everything is respecting the margin - like normal equation numbers (green box), or text in the awesome box - except for equation numbers in awesome boxes (red box). It would be nice if the equation number would also respect the margin. For the document class article the bug does not appear.

\documentclass[reqno]{amsart}
\usepackage{awesomebox}
\usepackage{showframe}
\usepackage{mwe}

\begin{document}
    \lipsum[1][1-4]
    \begin{equation}
        a^2+b^2=c^2
    \end{equation}
    \notebox{
        \lipsum[2][1-4]
        \begin{equation}
            a^2+b^2=c^2
        \end{equation}
        \lipsum[3][1-4]
    }
    \lipsum[4][1-4]
\end{document}

Thank you for the nice package btw :)