On Wed, May 09, 2001 at 06:01:57PM +0200, Andreas D?ring wrote:
> During writing my thesis I ran into this problem:
> I use chemical reactions and numerical equations in the text. The
> problem is, to number the different equations in a different way, like:
> 
> 1+1=2                (2.1)
> 1+2=3                (2.2)
> 
> but for chemical reaction something like
> 
> C+O2->CO2    (R. 2.1)
> 
> The equations and reactions are written in math-mode and the automatic
> numbering was done
> by using M-m n.

1. Put the following line in the preamble

\newcounter{reaction}
\numberwithin{reaction}{chapter}
\newcommand{\reaction}{\addtocounter{reaction}{1}\tag{R. \thereaction}}

2. Select "Use ams math" in the document dialog (in "extra" tab in 1.1.6).

3. At each reaction, write \reaction at the end (inside the math inset).

Note that when you reference a reaction, you will get 'R. 2.1'.

Reply via email to