Numeração no Lema

Numeração no Lema

Gostaria de criar uma numeração para um Lema usando (i), (ii), etc como em amarelo destacado na imagem a seguir.

insira a descrição da imagem aqui

Então, o código que criei da seguinte forma.

\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}

O resultado no verso com Tex Live 2022 é o seguinte.

resultado

Alguém pode sugerir o que precisa ser alterado no código para obter o estilo de numeração de (i), (ii), etc, por favor?

Obrigado.

Responder1

Sugiro usar o enumitempacote porque oferece (na minha opinião) uma forma mais limpa de redefinir o rótulo. Além disso, permite que as referências sejam impressas no mesmo formato. Dê uma olhada no exemplo a seguirsem 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}

Isso produz

sem enumitem

Se você usar o pacote acima, podemos conseguir o seguinte:

\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}

com enumitem

Se você não quiser que as referências se pareçam com os rótulos, isso também não é problema porque você pode especificar ref: Usando, por exemplo, \begin{enumerate}[label=(\roman*),ref=[\alph*-]você obterá rótulos como (i), (ii), mas referências como [a-, [b-(não faço ideia por que você deveria querer isso, mas é possível ).

Também é possível fazer essas alterações globalmente se você inserir \setlist[enumerate]{label=(\roman*)}o preâmbulo.

Responder2

Eu sugiro que você mude

\renewcommand{\labelenumi}{\Roman{enumi}}

para

\renewcommand{\labelenumi}{(\roman{enumi})}

Caso queira alterar o estilo de numeração de apenas um lemmaambiente, execute a diretiva logo após \begin{lemma}. Se você quiser que a mudança se aplique atodos enumerateambiente, certifique-se de executar a diretiva no preâmbulo do documento.

insira a descrição da imagem aqui

\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}

informação relacionada