Re: Numbering

Abhilash G <abhilash-4GEYZ6cCHeOf0DUV/[email protected]>
Newsgroups gmane.comp.tex.tugindia
Message-ID <[email protected]>
On Fri, Mar 11, 2011 at 3:36 PM, Asha G <[email protected]> wrote:

> Could someone tell me how to number sections, subsections and
> subsubsections
> in a document class article. I believe these should appear automatically.
> But mine only appears as 1 and 2. I need it to give 2.1, 2.2,  3, 3.1.,
> 3.1.2 etc
>

The following commands worked for me.

\documentclass{article}

\begin{document}

This is a test document. $\alpha + \omega  = k^{2}$

\section{This is a section}

\subsection{This is a subsection}

\subsubsection{This is a sub sub section}

\end{document}

Please see section 2.2.3 (page 21) of the book: Leslie Lamport, "LaTeX,"
Pearson Education, 1994 (Third Indian Reprint 2002).

---------------
G Abhilash, National Institute of Technology, Calicut.
_______________________________________________
Home:        http://www.tug.org.in/
TeX FAQ:     http://www.tex.ac.uk/faq
unsubscribe: http://tug.org/mailman/listinfo/tugindia
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.