
다음 스크린샷에서 노란색으로 강조 표시된 것처럼 (i), (ii) 등을 사용하여 기본 정리에 대한 번호 매기기를 만들고 싶습니다.
그럼 제가 작성한 코드는 다음과 같습니다.
\documentclass[journal]{IEEEtran}
\newtheorem{lemma}{Lemma}
\begin{document}
\begin{lemma}\label{lemma:min_req_time}
The new sequence has following properties.
\renewcommand{\labelenumi}{\Roman{enumi}}
\begin{enumerate}
\item The minimum required time of the robot operation is $(n-1)w + nv$ in between the processing and cleaning states, including vice versa, of every step.
\item In addition, the minimum required time of the robot operation is $(n+1)w + (n+2)v$ after finishing the processing or cleaning for the first time and repeating the same cycle for the next cleaning or processing.
\end{enumerate}
\end{lemma}
\end{document}
Tex Live 2022의 뒷면 결과는 다음과 같습니다.
(i), (ii) 등의 번호 매기기 스타일을 얻기 위해 코드에서 수정해야 할 사항을 제안할 수 있는 사람이 있습니까?
감사합니다.
답변1
enumitem
(제 생각에는) 라벨을 재정의하는 더 깔끔한 방법을 제공하므로 패키지를 사용하는 것이 좋습니다 . 또한 참조를 동일한 형식으로 인쇄할 수 있습니다. 다음 예를 살펴보십시오.없이 enumitem
:
\documentclass[journal]{IEEEtran}
\begin{document}
\renewcommand{\labelenumi}{(\roman{enumi})}
\noindent The new sequence has following properties.
\begin{enumerate}
\item The minimum\ldots\label{item:one}
\item In addition\ldots\label{item:two}
\end{enumerate}
Here are references to \ref{item:one} and \ref{item:two}.
\end{document}
이는
위 패키지를 사용하면 다음을 달성할 수 있습니다.
\documentclass[journal]{IEEEtran}
\usepackage{enumitem} % <- load enumitem
\begin{document}
%\renewcommand{\labelenumi}{(\roman{enumi})} % <- not needed anymore
\noindent The new sequence has following properties.
\begin{enumerate}[label=(\roman*)] % <- specify label format
\item The minimum\ldots\label{item:one}
\item In addition\ldots\label{item:two}
\end{enumerate}
Here are references to \ref{item:one} and \ref{item:two}. % <- produce matching references
\end{document}
참조가 레이블처럼 보이지 않도록 하려면 다음을 지정할 수 있으므로 문제가 되지 않습니다.ref
\begin{enumerate}[label=(\roman*),ref=[\alph*-]
참조 가 레이블 가 (i)
되지 않습니다 . ).(ii)
[a-
[b-
\setlist[enumerate]{label=(\roman*)}
프리앰블을 넣으면 전역적으로 이러한 변경을 수행하는 것도 가능합니다 .
답변2
바꾸시길 권합니다
\renewcommand{\labelenumi}{\Roman{enumi}}
에게
\renewcommand{\labelenumi}{(\roman{enumi})}
하나의 환경에 대해서만 번호 매기기 스타일을 변경하려면 lemma
바로 뒤에 있는 지시문을 실행하십시오 \begin{lemma}
. 변경 사항을 적용하려면모두 enumerate
환경에서는 문서 서문의 지시문을 실행해야 합니다.
\documentclass[journal]{IEEEtran}
\newtheorem{lemma}{Lemma}
\usepackage{newtxmath} % Times Roman math font (optional)
\begin{document}
\begin{lemma}\label{lemma:min_req_time}
\renewcommand{\labelenumi}{(\roman{enumi})}
The new sequence has following properties.
\begin{enumerate}
\item The minimum required time of the robot operation is $(n-1)w + nv$ in between the processing and cleaning states, including vice versa, of every step.
\item In addition, the minimum required time of the robot operation is $(n+1)w + (n+2)v$ after finishing the processing or cleaning for the first time and repeating the same cycle for the next cleaning or processing.
\item \dots\dots
\item \dots\dots
\item \dots\dots
\item \dots\dots
\item \dots\dots
\end{enumerate}
\end{lemma}
\end{document}