숫자 대신 소문자를 사용하여 장의 속성 번호를 다시 매기는 방법

숫자 대신 소문자를 사용하여 장의 속성 번호를 다시 매기는 방법

나는 두 번째 섹션에 몇 가지 새로운 제안을 삽입하고 이름을 'Prop s','Prop t'로 지정하고 싶습니다. 누군가가 나를 도울 수 있기를 바랍니다 :) 여기 내 코드가 있습니다.

\documentclass{article}
\usepackage{amsthm}

\theoremstyle{definition}
\newtheorem{prop}{Prop}[section]

\begin{document}
\section{Intro}
\begin{prop}
First one.
\end{prop}
\section{Background}
\begin{prop}
Second one.
\end{prop}
\end{document}

예

답변1

다음 예에서는 환경의 번호 지정 시스템을 1.1, 1.2 등에서 a, b 등으로 전환하는 방법과 초기 번호 지정 시스템으로 되돌리는 방법을 보여줍니다.

여기에 이미지 설명을 입력하세요

\documentclass{article}
\usepackage{amsthm}
\theoremstyle{definition}
\newtheorem{prop}{Prop}[section]

\begin{document}
\section{Intro}
\begin{prop} First one. \end{prop}

\section{Background}
\let\origprop\theprop  % save the current style
\renewcommand\theprop{\alph{prop}} % change style
\setcounter{prop}{18} % just for this example
\begin{prop} Second one. \end{prop}
\begin{prop} Third one. \end{prop}
\begin{prop} Fourth one. \end{prop}

\section{Analysis}
\renewcommand\theprop{\origprop} % revert to orig. style
\begin{prop} Fifth one. \end{prop}

\end{document}

관련 정보