[Tugindia] Re: Equation Numbering

Ashis Kumar Mal akmal at ece.iitkgp.ernet.in
Tue Oct 21 19:35:56 CEST 2003


> Dear all
> How can I do the equation nos  in  article style
> 
> e.g   (1.1) 
>        ( 2.1)
> 
>  etc.
> ashok kumar khanda

Check this:

http://www.educat.hu-berlin.de/~voss/LaTeX/mathstuff/numbering.phtml

And use Dr. Herbert's code.


\documentclass{article}

\makeatletter
\@addtoreset{equation}{section}
\makeatother
\renewcommand{\theequation}{\thesection.\arabic{equation}}
\makeatletter
\renewcommand\@eqnnum{\hb at xt@.01\p@{}%
\rlap{\normalfont\normalcolor
   \hskip -\displaywidth[\theequation]}%
}
\makeatother

\begin{document}
\section{Code of Herbert Voss}
\begin{equation}
x+y=z
\end{equation}

\end{document}


-Ashis
Kharagpur



More information about the tugindia mailing list