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.
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).
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... .
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} .
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 .
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With