Hi LaTeX friends.
First: Take a look at the attached file.
(1) Why does the subsubsection number becomes 1.1.0. instead of 1.1.1.?
(2) How do I fix the `problem' mentioned in (1)?
Text Formatting ⇒ subsubsection numbering
- svend_tveskaeg
- Posts: 478
- Joined: Sun Jul 12, 2009 5:31 am
subsubsection numbering
- Attachments
-
- algebra2.tex
- (716 Bytes) Downloaded 327 times
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
-- Zapp Brannigan, Futurama (season 1, episode 4)
NEW: TikZ book now 40% off at Amazon.com for a short time.

subsubsection numbering
Change your \test command to this:
Here's your code with slight modifications (the \test command modified as noted, and \label commands moved after sectioning commands):
But still, I don't understand why would you use a sectioning command (i.e. subsubsection) this way?
BTW, label goes after sectioning commands, not before.
Code: Select all
\newcommand{\test}[1]{\subsubsection{#1}}
Code: Select all
Code, edit and compile here:
\documentclass[a4paper,12pt]{article}\renewcommand\thesection{\arabic{section}.}\renewcommand\thesubsection{\thesection\arabic{subsection}.}\renewcommand\thesubsubsection{\thesubsection\arabic{subsubsection}.}\renewcommand\theequation{\thesubsection\arabic{equation}}\newcommand{\test}[1]{\subsubsection{#1}}\begin{document}\section{Polynomials II}%\label{sec:1}\setcounter{equation}{0}In this chapter we prove some properties of polynomials not discussedin [insert citation]. At one point we need the existence of f{}ields offractions. We therefore begin the chapter with their construction.\subsection{Fields of Fractions}%\label{sec:11}\setcounter{equation}{0}\test{}\test{}\end{document}
BTW, label goes after sectioning commands, not before.