Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm having a strange issue with the IEEEtran package. I'm using \renewcommand\thesection{\arabic{section}} and so on to change the section, subsection, and subsubsection numbering. As mentioned in the title, I see the changes in the TOC, but not in the body of the document. MWE is below:

\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}

enter image description here

share|improve this question
2  
An IEEE journal paper is not supposed to have a ToC. So it's protecting its headings but not caring about the ToC. –  percusse Jul 24 '13 at 10:11
1  
Yeah, I'm aware that I'm mangling the IEEE journal format a bit - it's actually for a university report, and they want IEEE guidelines to be followed in some areas (e.g. the bibliography/reference formats/figure caption locations), but not all (they'd still like a TOC) –  Matt Taylor Jul 24 '13 at 10:14

1 Answer 1

up vote 4 down vote accepted

To change the numbering of the main text headings (as opposed to those used in the ToC), you have to redefine \thesectiondis, \thesubsectiondis, and \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}

enter image description here

share|improve this answer
    
Beautiful! Thank you so much –  Matt Taylor Jul 24 '13 at 10:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.