4

I am using one IEEE template to write one two column paper, after converted into pdf format, the subsection is identified with Roman letters, such as I, II, III, IV, etc. I want to change it to numbers like: 1, 2, 3, 4, etc.

How can I do that?

4
  • 3
    Does adding the command \renewcommand{\thesubsection}{\thesection.\arabic{subsection}} to your document preamble solve this problem?
    – Werner
    Oct 16, 2011 at 18:50
  • In Lyx you can access the preamble from menu: Document > Document Settings > LaTeX Preamble. Oct 16, 2011 at 18:55
  • it still shows Roman letters
    – Mike
    Oct 16, 2011 at 19:24
  • 1
    @Mike: Please add a minimal working example (MWE) that illustrates your problem. Remember, keep it minimal, so just include your \documentclass, the required packages, and some sectional headings, so we can see your Roman subsection letters.
    – Werner
    Oct 21, 2011 at 3:55

3 Answers 3

10

Indeed, the IEEEtran class defaults to upper case Roman numerals for sections and upper case letters for subsections, and adding \renewcommand{\thesubsection}{\thesection.\arabic{subsection}} seems to have no effect.

However, there is a [compsoc] class option that is intended to mimic the format of the IEEE Computer Society's publications, and one those adjustments that is made with this is that Arabic numerals are used exclusively for sections and subsections. So the following MWE produces the desired results:

enter image description here

\documentclass[compsoc]{IEEEtran}
\begin{document}
\section{Section One}
\subsection{First Subsection}
\end{document}

There are other things that this option effects so is best to refer to the package documentation.

4

The IEEEtran class numbers sections with Roman numbers and subsections with letters.

So the correct remedy is

\renewcommand{\thesection}{\arabic{section}}
2
  • 1
    This seems to work for \section but not \subsection as per the OP. Oct 28, 2011 at 22:24
  • 1
    @PeterGrill The subsections are not numbered with Roman numbers as the OP says.
    – egreg
    Oct 28, 2011 at 22:27
3

Looking through the IEEEtrans.cls file, you'll see that they use:

\def\thesectiondis{\thesection.} % I.

\def\thesubsectiondis{\Alph{subsection}.} % B. \def\thesubsubsectiondis{\arabic{subsubsection})} % 3) \def\theparagraphdis{\alph{paragraph})} % d)

for non comsoc papers. To change the section numbering simply redefine the above four lines according to you requirements. For example, if you want full arabic separated by full stops (as is the case for comsoc) then use:

\def\thesectiondis{\thesection.} \def\thesubsectiondis{\thesectiondis\arabic{subsection}.} \def\thesubsubsectiondis{\thesubsectiondis\arabic{subsubsection}.} \def\theparagraphdis{\thesubsubsectiondis\arabic{paragraph}.}

1
  • I just realised that this has already been answered here.
    – jsaven
    Dec 8, 2013 at 2:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .