I can't give you an answer for how to get \autoref
to show "Subtask" instead of "Item". Fortunately, it's straightforward to provide a solution that uses the cleveref package and its \cref
cross-referencing command. With \cref
, it's also easy to create multiple cross-references with a single command. (In the MWE, hyperref
is loaded only to create hyperlinks, not to create cross-references.)
\documentclass{article}
\usepackage{enumitem}
\newlist{subtask}{enumerate}{1} % this creates a dedicated counter named 'subtaski'
\setlist[subtask,1]{label=\arabic*} % set form of enumeration label here
\usepackage[colorlinks=true]{hyperref}
\usepackage[nameinlink]{cleveref} % 'nameinlink' option emulates look of \autoref
\crefname{subtaski}{subtask}{subtasks} % set prefix for items of type 'subtaski'
\begin{document}
\begin{subtask}
\item Uno \label{subtask:1}
\item Dos \label{subtask:2}
\item Tres\label{subtask:3}
\end{subtask}
A cross-reference to \cref{subtask:2}.
As stated in \cref{subtask:3,subtask:1}, \dots
\end{document}