1

I want use autoref to reference equations like this:

Equation (8.19), but my output is: Equation 8.19

I tried to proceed as in (search for "Einstein" )

autoref and braces around equation number

This is my code

\newcommand{\mynewtheorem}[2]{
  \newaliascnt{#1}{definition}
  \newtheorem{#1}[#1]{#2}
  \aliascntresetthe{#1}
  % maybe we will squish some autoref defaults, but who cares?
  \expandafter\def\csname #1autorefname\endcsname{#2}
}
\def\alignautorefname#1#2\null{%
  Equation #1(#2\null)%
}

Does anybody has an idea how my code could be adapted to get brackets like above ?

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.