
이것은 간단한 질문일지도 모르지만 저는 LaTeX를 처음 접했고 이 작업을 수행하는 방법을 찾을 수 없었습니다.
\newtheorem
자연수를 통해 번호를 매기고 싶지만 모든 하위 섹션을 재설정하고 싶습니다.
다음과 같이 설정하면:
\newtheorem{example}{Example}[subsection]
a.b.c
나는 그것을 으로만 원하는 반면 그것은 으로 주문합니다 c
.
본질적으로 나는 예제를 주문하고 각 하위 섹션을 재설정하기를 원합니다.
어떤 해결책이라도 대단히 감사하겠습니다. 미리 감사드립니다.
답변1
name
를 갱신하여 일부 정리의 번호 매기기 스타일을 변경할 수 있습니다 \thename
. 다음에 대한 MWE는 다음과 같습니다 example
.
\documentclass{article}
\newtheorem{example}{Example}[subsection]
\renewcommand{\theexample}{\alph{subsection}}
\begin{document}
\subsection{This is the subsection}
\begin{example}
Here is the example.
\end{example}
\end{document}
다른 번호 매기기 스타일은 , \roman
및 입니다 . 다음과 같이 혼합할 수도 있습니다.\Roman
\arabic
\Alph
\renewcommand{\theexample}{\arabic{section}.\alph{subsection}}
답변2
\theexample
다음의 슬레이브가 되도록 환경을 정의한 후 을 재정의하려고 합니다 subsection
.
\newtheorem{example}{Example}[subsection]
\renewcommand{\theexample}{\alph{example}}