When I use autoref for subsection, I want the in-text to be section 1.1
instead of subsection 1.1
. How to do that. I tried to write it with ref
as:
section \ref{sec:subsection}
But the problem is that I want my references to be clickable (using hyperref
) and with ref the word section
becomes un-clickable (only the number portion) while with autoref
the whole word section 1.1
becomes clickable. Can you help?
\documentclass[sigconf]{acmart}
\usepackage{hyperref}
\begin{document}
\title{Title Here}
\begin{abstract}
Abstract here.
\end{abstract}
\maketitle
\section{First}\label{sec:section}
\subsection{Sub}\label{sec:subsection}
\autoref{sec:section} and \autoref{sec:subsection}
\end{document}
Best Answer
Just put like this below: