Todd Denniston wrote:

Hello,
I am using the article class for my document.
LyX/LaTeX outputs section numbering as:
1    first top level section
1.1    first subsection
1.1.1    first subsubsection
2    second top level section

what I need is (I am required to use it, I do not like it though as it adds
confusion by making top levels look like subsections):
1.0    first top level section
1.1    first subsection
1.1.1    first subsubsection
2.0    second top level section

I found in a TeX FAQ{1}
[EMAIL PROTECTED]
  \csname the#1\endcsname.0\quad
}

which gives me
1.0    first top level section
1.1.0    first subsection
1.1.1.0    first subsubsection
2.0    second top level section

I have tried [EMAIL PROTECTED]@section}[1]{%
\csname the#1\endcsname.0\quad
}
which fails because [EMAIL PROTECTED]@section is not defined???


%the following one does nothing to my output.
[EMAIL PROTECTED]@section}[1]{%
  \csname the#1\endcsname.\quad
}

I can't figure out (this bit of LaTeX is truly beyond me) why putting the
\let... bit of code from the FAQ{1} in my document gives at least one error
for every section+subsection+subsubsection I have.

Can someone here help me get the incantation correct please?
Or if you know of a convincing bit of documentation indicating doing the
toplevel sections as X.0 is bad (makes you look like an idiot)
psychologically/professionally, please point it out so I can use it to
request a change to the standard I have to follow.

Thanks.

{1} http://www.tex.ac.uk/cgi-bin/texfaq2html?label=seccntfmt

Try adding this to the preamble:

\def\thesection{\arabic{section}.0}
\def\thesubsection{\arabic{section}.\arabic{subsection}}
\def\thesubsubsection{\arabic{section}.\arabic{subsection}.\arabic{subsubsection}}

-- Paul



Reply via email to