[Tugindia] Numbering

Abhilash G abhilash at nitc.ac.in
Fri Mar 11 12:09:03 CET 2011


On Fri, Mar 11, 2011 at 3:36 PM, Asha G <dendron.15 at gmail.com> 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.


More information about the tugindia mailing list