%2C%20no%20ABC..png)
Mis secciones están numeradas en árabe. Quiero obtener la numeración de las subsecciones también en árabe como 1.1, 1.2, 1.3, etc. Busqué en muchos foros y obtuve estos códigos, pero no me funciona. La gente dice que funciona para nosotros. Estoy usando este código.
\def\thesection{\arabic{section}}
\def\thesubsection{\arabic{section}.\arabic{subsection}}
\def\thesubsubsection{\arabic{section}.\arabic{subsection}.\arabic{subsubsection}}
Sólo funciona la primera instrucción. También usé \renewcommand
en lugar de \def
.
Respuesta1
Hay clases que se utilizan \Alph
para subsecciones. Ejemplo revtex4-1
:
\documentclass{revtex4-1}
\begin{document}
\tableofcontents
\section{Section}
\subsection{Subsection}
\subsubsection{Subsubsection}
\end{document}
Sin embargo, redefinir la macro de contador \the<counter>
normalmente funciona como se esperaba:
\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}