>> 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'.

I�m sorry, but I think I�m too dummy. I�m not able to insert a \reaction inside the 
math
inset. The "\" doesn�t work.But writing "reaction" in Tex-red works fine. That�s 
exactly
what I needed.

Thanks a lot

Andi

Reply via email to