%EC%97%AC%EC%95%BC%20%ED%95%A9%EB%8B%88%EB%8B%A4..png)
내 섹션에는 아랍어로 번호가 매겨져 있습니다. 하위 섹션 번호도 아랍어로 1.1, 1.2, 1.3 등으로 지정하고 싶습니다. 많은 포럼을 검색하여 이러한 코드를 얻었지만 작동하지 않습니다. 사람들은 그것이 우리에게 효과가 있다고 말합니다. 이 코드를 사용하고 있습니다.
\def\thesection{\arabic{section}}
\def\thesubsection{\arabic{section}.\arabic{subsection}}
\def\thesubsubsection{\arabic{section}.\arabic{subsection}.\arabic{subsubsection}}
첫 번째 명령만 작동합니다. 나는 \renewcommand
또한 \def
.
답변1
하위 섹션에 사용하는 클래스가 있습니다 \Alph
. 예 revtex4-1
:
\documentclass{revtex4-1}
\begin{document}
\tableofcontents
\section{Section}
\subsection{Subsection}
\subsubsection{Subsubsection}
\end{document}
그러나 카운터 매크로를 재정의하는 것은 \the<counter>
일반적으로 예상대로 작동합니다.
\documentclass{revtex4-1}
\makeatletter
\renewcommand*{\thesection}{\arabic{section}}
\renewcommand*{\thesubsection}{\thesection.\arabic{subsection}}
\renewcommand*{\p@subsection}{}
\renewcommand*{\thesubsubsection}{\thesubsection.\arabic{subsubsection}}
\renewcommand*{\p@subsubsection}{}
\makeatother
\begin{document}
\tableofcontents
\section{Section}
\label{sec}
\subsection{Subsection}
\label{subsec}
\subsubsection{Subsubsection}
\label{subsubsec}
References: \ref{sec}, \ref{subsec}, and \ref{subsubsec}.
\end{document}