Page Layout ⇒ Problems with the numbering of subsections
Problems with the numbering of subsections
1. Algorithm (this is a section)
1.1 Newton's Method (this is a subsection of Method)
...
1.1 Example (this is a subsection of Example)
...
1.2 Example (another subsection of Example)
1.2 Lagrange Method (this is a subsection of Method)
Basically it is to have different counters depending whether you are making a reference to a Method or an Example. So maybe the numbers are repeated but they are referring to different contents.
Thank you.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Problems with the numbering of subsections
\newcounter{section_examples} % add a new counter
\newcounter{subsection_examples}[section_examples]
\stepcounter{section_examples} % increase the counter
\stepcounter{subsection_examples}
\subsection*{Example \arabic{section_examples}.\arabic{subsection_examples}}
The example 1.1
...
\stepcounter{subsection_examples}
\subsection*{Example \arabic{section_examples}.\arabic{subsection_examples}}
The example 1.2
If you do it in this way, you will always be able to handle your own counter.
I think it is pretty and elegant.
If someone find another way to do it, just post it, ^-^.
See you