[Tex/LaTex] Section and chapter numbering

chapterssectioningtable of contents

My first chapter should not have a number next to it (not in the TOC nor in the chapter itself). The other chapters however should have a number. I can do this by using \chapter*{...} However, this will also remove the chapter number from the sections inside that chapter. The toc will look like this then:

My first chapter

.1 My first section

While it should look like this:

My first chapter

I.1 My first section

How can I do this? Note that this only applies to my first chapter.

Best Answer

I think this will look strange, but yes it is possible. The reason for the missing chapter number is that you use Roman numbering for the chapters, and if you don't number it the chapter is number 0. The number 0 does not exist in roman numbering (which by the way is a big drawback of the numbering system). To get the number you need to increment the chapter counter. Something like this:

\documentclass{book}
\renewcommand\thechapter{\Roman{chapter}}
\begin{document}
\tableofcontents

\chapter*{First un-numbered}
\addcontentsline{toc}{chapter}{First un-numbered}
\stepcounter{chapter}
\section{Section with strange numbering}
\section{Another section}

\chapter{First numbered}
\section{Section with numbering}
\section{Another section}

\chapter{Second numbered}
\section{A section}
\section{Another section}

\end{document}

enter image description here

But then the number in the section refers to a chapter number that does not exist. In this case I think it is better to completely remove the chapter numbering from the section numbers in the first chapter.

\documentclass{book}
\renewcommand\thechapter{\Roman{chapter}}
\begin{document}
\tableofcontents

\chapter*{First un-numbered}
\addcontentsline{toc}{chapter}{First un-numbered}
\renewcommand\thesection{\arabic{section}}
\section{Section with strange numbering}
\section{Another section}

\chapter{First numbered}
\renewcommand\thesection{\thechapter.\arabic{section}}
\section{Section with numbering}
\section{Another section}

\chapter{Second numbered}
\section{A section}
\section{Another section}

\end{document}

enter image description here

Of course, it would be even better to have also the first chapter numbered.

\documentclass{book}
\renewcommand\thechapter{\Roman{chapter}}
\begin{document}
\tableofcontents

\chapter{First un-numbered}
\section{Section with strange numbering}
\section{Another section}

\chapter{First numbered}
\section{Section with numbering}
\section{Another section}

\chapter{Second numbered}
\section{A section}
\section{Another section}

\end{document}

enter image description here

Related Question