我在使用 IEEEtran 软件包时遇到了一个奇怪的问题。我使用\renewcommand\thesection{\arabic{section}}
等来更改章节、子章节和子子章节的编号。正如标题所述,我看到了目录中的更改,但没有看到文档正文中的更改。MWE 如下:
\documentclass[]{IEEEtran}
\renewcommand\thesection{\arabic{section}}
\renewcommand\thesubsection{\thesection.\arabic{subsection}}
\renewcommand\thesubsubsection{\thesubsection.\arabic{subsubsection}}
\begin{document}
\tableofcontents
\section{Introduction}
Words, words, all words
\section{Big section}
\subsection{Section Three}
\subsubsection{SubSection Three}~\\ texty text
\subsubsection{title}~\\ texty text
\end{document}
答案1
要更改主文本标题的编号(与目录中使用的编号相反),您必须重新定义\thesectiondis
、\thesubsectiondis
和\thesubsubsectiondis
。
\documentclass[]{IEEEtran}
\renewcommand\thesection{\arabic{section}}
\renewcommand\thesubsection{\thesection.\arabic{subsection}}
\renewcommand\thesubsubsection{\thesubsection.\arabic{subsubsection}}
\renewcommand\thesectiondis{\arabic{section}}
\renewcommand\thesubsectiondis{\thesectiondis.\arabic{subsection}}
\renewcommand\thesubsubsectiondis{\thesubsectiondis.\arabic{subsubsection}}
\begin{document}
\tableofcontents
\section{Introduction}
Words, words, all words
\section{Big section}
\subsection{Section Three}
\subsubsection{SubSection Three}~\\ texty text
\subsubsection{title}~\\ texty text
\end{document}