I finally found what I wanted, it is:
\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 ...
Search found 2 matches
- Thu Mar 05, 2009 6:38 pm
- Forum: Page Layout
- Topic: Problems with the numbering of subsections
- Replies: 1
- Views: 1905
- Thu Mar 05, 2009 3:09 pm
- Forum: Page Layout
- Topic: Problems with the numbering of subsections
- Replies: 1
- Views: 1905
Problems with the numbering of subsections
I am writing my notes of class in latex, and I would like to get the following result:
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 ...
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 ...