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 have an idea how my code could be adapted to get brackets like above ?

user99432
  • 137

0 Answers0