Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>A quick fix without the hassles of renewing the section command is to use addtocounter.</p> <p>Everytime you use the \section*{} command, right after that you can say \addtocounter{section}{1}</p> <pre><code>\chapter{} \section*{Preliminaries} \addtocounter{section}{1} \subsection{Banach Algebras} \section*{Preliminaries} \addtocounter{section}{1} \subsection{Banach Algebras} </code></pre> <p>This will give you a result of,</p> <pre><code>Chapter 1 Preliminaries 1.1.1 Banach Algebras Preliminaries 1.2.2 Banach Algebras </code></pre> <p>Essentially, it is just adding 1 to your section counter whenever you create a section so when the subsection checks the section counter, it has the updated counter.</p> <p>And the advantage is that if you add another section now which needs to be numbered like,</p> <pre><code>\chapter{} \section*{Preliminaries} \addtocounter{section}{1} \subsection{Banach Algebras} \section*{Preliminaries} \addtocounter{section}{1} \subsection{Banach Algebras} \section{Preliminaries} </code></pre> <p>You will get the correct section number (i.e. 1.3)</p> <pre><code>Chapter 1 Preliminaries 1.1.1 Banach Algebras Preliminaries 1.2.2 Banach Algebras 1.3 Preliminaries </code></pre> <p>The main drawback is that you will have to remember to add to the counter everytime you created a \section*{}</p> <p>You can add \setcounter{subsection}{0} everytime you create one of those sections to reset the subsection counter... sorry I missed that one. Thanks for clarifying.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload