Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Need to change section to Roman, but keep Arabic for for subsection and subsubsection

I need to change my section numbering from Arabic, to Roman, beet keep the Arabic numbering in subsections and subsubsections. For example:

I. Section

1.1. Subsection

1.1.1. Subsubsection

II. Section

2.1 Subsection

...

So I know that with sections i can do "\renewcommand \thesection{\roman{section}}", but this command changes also subsections and subsubsections, like that:

I. Section

I.1. Subsection

I.1.1. Subsubsection

II Section

II.1. Subsection

...

So I need to keep subsections ans subsubsections from Roman numbering.

like image 340
Hiro Protagonist Avatar asked Apr 10 '11 16:04

Hiro Protagonist


People also ask

How do you change section numbers in LaTeX?

LaTeX lets you change the appearance of the sectional units. As a simple example, you can change the section numbering to upper-case letters with \renewcommand\thesection{\Alph{section}} in the preamble (see \alph \Alph \arabic \roman \Roman \fnsymbol : Printing counters).

How do you do Roman numerals in LaTeX?

The \roman command causes lower case roman numerals, i.e., i, ii, iii... , while the \Roman command causes upper case roman numerals, i.e., I, II, III... .

How do you make a section without numbers in LaTeX?

You can use \section*{} which create a section without the numeration. However, it will not be present in the table of content. You can manually add it with \addcontentsline{toc}{section}{\protect\numberline{}Your section name} .

How do you enumerate Subsubsection in LaTeX?

By default, the \subsubsection heading has no numbering and it is also not shown in the Table of Contents. To put numbering and to show the subsubsection in table of contents, we need to define the counter value of tocdepth and secnumdepth in the preamble of your LaTeX document using \setcounter .


1 Answers

These two lines did it for me:

\renewcommand \thesection{\roman{section}}
\renewcommand \thesubsection{\arabic{section}.\arabic{subsection}}

Subsubsection also works, I assume because it takes its section number from subsection.

like image 127
cohensh Avatar answered Oct 13 '22 02:10

cohensh