5

In my document I have a tagged equation, something that goes like

\begin{equation}\tag{$\dagger$}\label{whatever}  \end{equation}

Then latter I want to refer to it using \eqref{whatever}. But instead of a desired output ($\dagger$) I get something like (3). How do I fix this? (I also use hyperref and amsrefs in addition to cleveref.)

Werner
  • 603,163
  • Welcome to TeX.SE.

    Please keep in mind that it is always best to compose a fully compilable MWE that illustrates the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it. Even though it may be trivial, any time you can save of those trying to help is appreciated.

    – Peter Grill Feb 14 '12 at 01:43
  • when I compile your code snippet, and change dagger to \dagger everything works as (I think) expected. you mention cleveref in your title, but your code snippet doesn't use it – cmhughes Feb 14 '12 at 01:47

1 Answers1

5

Note that there's a load order preference when dealing with hyperref and cleveref, answered in Which packages should be loaded after hyperref instead of before? cleveref should be loaded after hyperref.

Since the only information at hand indicates the use of hyperref, cleveref and amsmath (due to \tag), the following load order works:

enter image description here

\documentclass{article}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\usepackage{hyperref}% http://ctan.org/pkg/hyperref
\usepackage{cleveref}% http://ctan.org/pkg/cleveref
\begin{document}
See~\eqref{whatever} \ldots 
\begin{equation}
  f(x)=ax^2+bx+c \tag{$\dagger$}\label{whatever}
\end{equation}
\end{document}
Werner
  • 603,163