[Tex/LaTex] \renewcommand not working for IEEE subsection


I wanted to number sections with alphabets and subsections with roman numbers

I have added these two lines above \begin{document}:

\renewcommand \thesection {\Alph{section}} 
\renewcommand \thesubsection {\thesection.\Roman{subsection}}

It changes the section numbering to A, B, C, … from the default I, II, III, …, but the subsection numbering is still the default A, B, C, …

enter image description here

I have also tried this and it did not work either.

\renewcommand \thesubsection {\Roman{subsection}}

I have also tried to change the numbering of paragraphs, but there was no change from the default.

Can anyone please help me with this?

Best Answer

Since you are using the IEEEtran document class with no special options, you need to redefine the family of commands with a dis suffix, since in that case the class has

\else% not compsoc
  \def\thesectiondis{\thesection.}                   % I.
  \def\thesubsectiondis{\Alph{subsection}.}          % B.
  \def\thesubsubsectiondis{\arabic{subsubsection})}  % 3)
  \def\theparagraphdis{\alph{paragraph})}            % d)

So for subsections, subsubsections and paragraphs you need a redefinition of \thesubsectiondis, \thesubsubsectiondis and \theparagraphdis, respectively.

A complete example (adjust the redefinitions to suit your needs):




\section{Test section}
\subsection{Test subsection}
\subsubsection{Test subsubsection}
\paragraph{Test paragraph}


enter image description here

Related Question