I have an issue when using cases
, breqn
and hyperref
together. This is my MWE
\documentclass[preview]{standalone}
\usepackage{cases}
\usepackage{breqn} % For line breaks in some really long equations in another part of the document
\usepackage{hyperref}
\begin{document}
\begin{subnumcases}{\label{eq:case} x =}
a+b, & example 1\\
c+d, & example 2.
\end{subnumcases}
This text refers to \ref{eq:case}.
\end{document}
When compiling my thesis with breqn
loaded I get the image below, where apparently the label isn't set and x has disappeared.
When I don't load breqn
I get the behaviour I want but at the expense of the equations that do require breqn
later on in my thesis:
And when I don't load hyperref
I also get useable output but with the links in the final PDF. Is there a way to keep breqn
and hyperref
without breaking my subnumcases
environments?
amsmath
environments, as discussed in this question.breqn
is loaded or not). Like Andrea, I recommand you to take a look at theamsmath
package, in particular the environment split, cases and subequations.breqn
and doing as you say as it appears to be interfering with somepgfplots
I have.