Tell me more ×
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 want to have my sections numbered using Roman numerals. However, I can only get the section number to be a Roman numeral, not the subsection. Here is some code:

\renewcommand{\thesection}{\Roman{section}} 
\renewcommand{\thesubsection}{\Roman{subsection}}

This will print, e.g. I. , whereas it should be I.I. Commenting out the second line gives the result I.1, which is not demanded.

share|improve this question

2 Answers

up vote 6 down vote accepted

You need to append the section number to the subsection number using:

\documentclass{article}
\renewcommand{\thesection}{\Roman{section}} 
\renewcommand{\thesubsection}{\thesection.\Roman{subsection}}
\begin{document}
\section{First section}
\subsection{First subsection}
\subsection{Second subsection}
\section{Second section}
\subsection{First subsection}
\subsection{Second subsection}
\end{document}

Section and subsection numbering

share|improve this answer
\renewcommand{\thesection}{\Roman{section}
\renewcommand{\thesubsection}{\thesection.\Roman{subsection}}
share|improve this answer

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.