[texhax] help with equation numbers in latex

Hartmut Henkel hartmut_henkel at gmx.de
Thu Jan 19 00:47:24 CET 2006


On Wed, 18 Jan 2006, John Carew wrote:

> I need to change the standard format of equation numbers in latex so
> that they appear as [12] instead of the standard (12).  Can you please
> help me or point me to a reference?

like this:

\documentclass{article}
% the following re-defines one line from latex.ltx
% original:
% \def\@eqnnum{{\normalfont \normalcolor (\theequation)}}

\makeatletter
\def\@eqnnum{{\normalfont \normalcolor [\theequation]}}
\makeatother

\begin{document}
\begin{equation}
a^2+b^2=c^2
\end{equation}
\end{document}

but maybe there is a fancy package for doing this.

Regards, Hartmut



More information about the texhax mailing list