wspr / breqn

Automatic line breaking in LaTeX equations
18 stars 2 forks source link

Problem with breqn and mathtools #33

Closed Volker-Weissmann closed 4 years ago

Volker-Weissmann commented 4 years ago

The following code does not compile:

\documentclass{article}
\usepackage{breqn}
\usepackage{mathtools}
\begin{document}\end{document}

but the following code compiles just fine

\documentclass{article}
\usepackage{mathtools}
\usepackage{breqn}
\begin{document}\end{document}

It would be a nice improvement, if you could either make sure that the first version also compiles or outputs an error message that says that you should switch the order of the usepackages.

FrankMittelbach commented 4 years ago

see also https://github.com/latex3/latex2e/issues/209 (closed there)

wspr commented 4 years ago

Ah, this isn't anything to do with mathtools; here is a further reduced minimal example:

\documentclass{article} \usepackage{breqn} \AtBeginDocument{\RequirePackage{graphicx}} \begin{document}\end{document}

I guess I could fix this just by loading graphicx inside of breqn!