Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.)

share|improve this question
    
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 1: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 1:47
add comment

1 Answer

up vote 4 down vote accepted

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}
share|improve this answer
    
For me your code compiles to "See (1)..." (i.e., same problem as with my code). I'm using TeXShop under MacOS X. –  LaTeX dominator Feb 14 '12 at 13:31
    
@LaTeXdominator: Then could have an outdated distribution or outdated packages. Add \listfiles before \documentclass and post the contents after **File List** in your .log file via an edit to your question. –  Werner Feb 14 '12 at 14:13
    
I've updated my system and it works now. Thanks! –  LaTeX dominator Feb 14 '12 at 23:15
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.