
Ao usar enumitem, quero alterar os nomes dos rótulos da seguinte forma:
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{enumitem}
\begin{document}
\section{First section}
\begin{enumerate}[leftmargin=*,labelindent=\parindent,=itemsep=0pt,label=Part \arabic*.]
\item\label{part:1} append this;
\item\label{part:2} advance that;
\item\label{part:3} advance theother.
\end{enumerate}
Look at \ref{part:1} where we get the extra period. It's particularly bad if I refer to \ref{part:2}. This gives me ".." at the end of the sentence.
\end{document}
\ref{part:1}
me dá Part 1.
onde eu gostaria Part 1
. Como posso me livrar do ponto final quando me refiro a ele, mas mantê-lo quando exibido na lista?
Responder1
enumitem
também possui uma ref
chave projetada especificamente para isso:
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{enumitem}
\begin{document}
\section{First section}
\begin{enumerate}[leftmargin=*,labelindent=
\parindent,=itemsep=0pt,label=Part \arabic*., ref=Part \arabic*]
\item\label{part:1} append this;
\item\label{part:2} advance that;
\item\label{part:3} advance theother.
\end{enumerate}
Look at \ref{part:1} where we get the extra period.
\end{document}