[LaTeX] duplicare equation

Claudio Belotti bel8@lilik.it
Mon Aug 2 17:56:52 CEST 2004


Franco Bagnoli, lunedì 02 agosto 2004:

> basta vedere come è definito \equation in 
> /usr/share/texmf/tex/latex/base/latex.ltx:
...
> ovvero prova qualcosa del genere: 
...
> \makeatletter
> \@definecounter{reaction}
> \def\reaction{$$\refstepcounter{reaction}}
> \def\endreaction{\eqno \hbox{\@reactnum}$$\@ignoretrue}
> \def\@reactnum{{\normalfont \normalcolor (\thereaction)}}
> \makeatother


va benissimo, grazie! Dato che volevo 
A + B -> C (r.1) 

con iltuo suggerimento e un po' di google ho fatto:
\makeatletter
\@definecounter{reaction}
\renewcommand\thereaction{r.\@arabic\c@reaction}
...

così anche nei riferimenti si distingue bene tra eq e reazioni

ciao
Claudio



More information about the latex mailing list