I'm a little confused by your question because \ref{}
will produce 1
with emphasis, but without brackets (1)
, whereas \eqref{}
produces (1)
without emphasis. That is, neither of them will lead to (1)
being typeset with emphasis... perhaps this is a function of the other packages that you are using? (This is one of the reasons why it is good to always supply a minimal working example .)
As \eqref{}
already does what you want I'll show one way of making \ref{}
print 1
without using emphasis. You said that you were using AMS packages so I have used amsart
as the documentclass. In this case theorem are, ultimately, produced by \@begintheorem
so I redefine this so that it defines \ref
to remove (or rather add) emphasis inside a theorem-ike environment.
Here is some example output:
and here is the code:
\documentclass{amsart}
\makeatletter% we need this to change the definition of \@begintheorem
\let\real@begintheorem=\@begintheorem% save real AMS theorem environment
\let\real@ref=\ref
\def\@begintheorem#1#2[#3]{%
\real@begintheorem{#1}{#2}[#3]% start the theorem
\def\ref##1{\emph{\real@ref{##1}}}% overwrite \ref INSIDE a theormem
}
\makeatother
\newtheorem{Theorem}{Theorem}
\begin{document}
\begin{Theorem}\label{T:One}
This is an important result.
\end{Theorem}
\begin{Theorem}
This result is not as important as~\ref{T:One}.
\end{Theorem}
Here is a normal \ref{T:One}.
\end{document}
Of course, we could instead use the \patchcmd
from etoolbox to change \@begintheorem
but this will end up doing much the same thing as above (after first loading a lot of the commands).
\documentclass...\begin{document}...\end{document}
, it should compile and contain close to the minimal amount of code needed to explain/demonstrate what you are asking. This saves a lot of time for everyone.\eqref{}
without()
. It will be automatically inserted.