feat: use \autoref in latex
\autoref automatically adds the prefix and also makes the whole reference ("Figure 3" instead of just "3") clickable.
This looks promising. We probably also want to add \def\sectionautorefname{\S} to generated documents preserve how we refer to sections. We also need to ensure that the hyperref package is being used.
We probably also want to add \def\sectionautorefname{\S} to generated documents preserve how we refer to sections.
I think it's actually better to let each template decide how they want to render sections.
We also need to ensure that the hyperref package is being used.
All templates in this repo import it. Is there another way to ensure that a package is there?
We probably also want to add
\def\sectionautorefname{\S}to generated documents preserve how we refer to sections.
Fwiw, I'm using
\makeatletter
\renewcommand{\sectionautorefname}{\S\@gobble}
\makeatother
(which I got from Stack Overflow). The gobble is necessary because autoref adds a space after the ref name and we don't want it