Customizing Chapter and Section Numbering in LaTeX
📂WritingCustomizing Chapter and Section Numbering in LaTeX
Code
The LaTeX code \setcounter{section}{n}
sets the current section number to n. Since this counter increases by 1 with each added section, the order of the section created next becomes n+1.
\documentclass{book}
\begin{document}
\chapter{Limits and Derivatives}
\section{Continuity}
\end{document}
|  |
\documentclass{book}
\begin{document}
\setcounter{chapter}{1}
\chapter{Limits and Derivatives}
\setcounter{section}{4}
\section{Continuity}
\end{document}
|  |