Page LayoutChange section number to lettering

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
LeonardH
Posts: 2
Joined: Fri Jun 28, 2019 6:40 am

Change section number to lettering

Post by LeonardH »

How do I change the default section numbering to the format below? I am using Miktex console 2.9 and Texmaker.

I. Section
a. Subsection
b. Subsection
i. Subsubsection
ii. subsubsection

I have tried searching and don't find exactly what I need. I am so new at Latex that I probably don't know what to search for.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Change section number to lettering

Post by Ijon Tichy »

A good solution would depend on the class you are using and several other design decisions, e.g., how references to section, subsection and subsubsection should be. A very simple solution for the standard class article (but usually not for the KOMA-Script class scrartcl) would be:
\documentclass{article}

\renewcommand*{\thesection}{\Roman{section}.}
\renewcommand*{\thesubsection}{\arabic{subsection}.}
\renewcommand*{\thesubsubsection}{\roman{subsubsection}.}

\begin{document}

\section{Section}
\subsection{Subsection}
\subsection{Subsection}
\subsubsection{Subsubsection}
\subsubsection{subsubsection}

\end{document}
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
LeonardH
Posts: 2
Joined: Fri Jun 28, 2019 6:40 am

Change section number to lettering

Post by LeonardH »

Perfect. That got me in the right direction. Saved me a lot of time.

I did change the arabic in: \renewcommand*{\thesubsection}{\arabic{subsection}.}

to alph: \renewcommand*{\thesubsection}{\alph{subsection}.}

to get letters instead of numbers.
Post Reply