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 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?

share|improve this question
3  
Does adding the command \renewcommand{\thesubsection}{\thesection.\arabic{subsection}} to your document preamble solve this problem? –  Werner Oct 16 '11 at 18:50
    
In Lyx you can access the preamble from menu: Document > Document Settings > LaTeX Preamble. –  Alexey Romanov Oct 16 '11 at 18:55
    
it still shows Roman letters –  Mike Oct 16 '11 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 '11 at 3:55
add comment

3 Answers 3

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.

share|improve this answer
add comment

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

So the correct remedy is

\renewcommand{\thesection}{\arabic{section}}
share|improve this answer
    
This seems to work for \section but not \subsection as per the OP. –  Peter Grill Oct 28 '11 at 22:24
1  
@PeterGrill The subsections are not numbered with Roman numbers as the OP says. –  egreg Oct 28 '11 at 22:27
add comment

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

share|improve this answer
    
I just realised that this has already been answered here. –  jsaven Dec 8 '13 at 2:26
add comment

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.