# How do I change the subsection by Roman letter to number in Lyx?

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?

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

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:

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

-
\renewcommand{\thesection}{\arabic{section}}

This seems to work for \section but not \subsection as per the OP. –  Peter Grill Oct 28 '11 at 22:24