1

The following code does not yield the correct references with cleveref, but it does work as desired with regular references. What is the easiest solution? (See also another question which highlights a similar problem but the solution provided there doesn't help here)

\documentclass{article}

\usepackage{amsmath}
\usepackage{cases}
\usepackage{cleveref}


\begin{document}
\begin{subnumcases}{}
 x=y, \label{eq:x=y}\\
 z=a  \label{eq:z=a}
\end{subnumcases}
Equations \cref{eq:x=y,eq:z=a}...  \cref{eq:x=y} doesn't work. But \ref{eq:x=y} works well.
\end{document}
JPi
  • 13,595
  • I know cases is not maintained and I shouldn't be using it, but I don't know of a ready alternative! – JPi Aug 30 '16 at 16:31
  • 1
    If this is just a cases with eq numbers, then empheq can do that as well. Don't know how it works with cleverref as I never use that package – daleif Aug 30 '16 at 16:47
  • It's cases with subequation numbers, so 1a, 1b, 1c. – JPi Aug 30 '16 at 17:04
  • 1
    Ah, http://tex.stackexchange.com/questions/165685/subequations-and-array-in-braces can be used! Problem solved. – JPi Aug 30 '16 at 17:09

0 Answers0