
enumitem을 사용할 때 레이블 이름을 다음과 같이 변경하고 싶습니다.
\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}
Part 1.
내가 원하는 곳을 알려준다 Part 1
. 참조할 때 마침표를 없애고 목록에 표시될 때는 그대로 유지하려면 어떻게 해야 하나요?
답변1
enumitem
ref
또한 이를 위해 특별히 설계된 키 도 있습니다 .
\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}