Typesetting chemical reaction equations
![](https://secure.gravatar.com/avatar/ba39713919d7892615fd6559523b80e3.jpg?s=120&d=mm&r=g)
I would need to typeset some rather simple reaction equations. I do not need the structural capabilities of PPCHTeX, just something simpler. The thing I am writing has something to do with physical chemistry, so I need mathematical equations, as well. Of course, the natural way to do this: \placeformula \startformula \rm NH_3(g) + H^+(aq.) + Cl^-(aq.) \rightarrow NH_4^+(aq.) + Cl^-(aq.) \stopformula This gives rather pleasant-looking results. However, is this the right (i.e. kosher) way of doing things, or do I run into trouble at some later point with this? What are you chemists using? And how do I switch off the equation numbering for the chemical reactions (I'd like to have the mathematical formulae still numbered)? TIA, - Ville
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Ville Voipio wrote:
I would need to typeset some rather simple reaction equations. I do not need the structural capabilities of PPCHTeX, just something simpler. The thing I am writing has something to do with physical chemistry, so I need mathematical equations, as well.
Of course, the natural way to do this:
\placeformula \startformula \rm NH_3(g) + H^+(aq.) + Cl^-(aq.) \rightarrow NH_4^+(aq.) + Cl^-(aq.) \stopformula
This gives rather pleasant-looking results. However, is this the right (i.e. kosher) way of doing things, or do I run into trouble at some later point with this? What are you chemists using?
And how do I switch off the equation numbering for the chemical reactions (I'd like to have the mathematical formulae still numbered)?
\usemodule[chemic] \placeformula[-] \startformula \chemical{NH_3(g),+,H^+(aq.),+,Cl^-(aq.),->,NH_4^+(aq.),+,Cl^-(aq.)} \stopformula ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Ville Voipio wrote:
\usemodule[chemic]
\placeformula[-] \startformula \chemical{NH_3(g),+,H^+(aq.),+,Cl^-(aq.),->,NH_4^+(aq.),+,Cl^-(aq.)} \stopformula
Dank u!
Graag gedaan btw, this is documented in the ppchtex manual ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/ba39713919d7892615fd6559523b80e3.jpg?s=120&d=mm&r=g)
And how do I switch off the equation numbering for the chemical reactions (I'd like to have the mathematical formulae still numbered)?
Stupid me. Just by leaving the \placeformula out. (Maybe I should go and get something to eat, my brain seems to be in some sort of energy-saving mode.) By the way, is there a simple way to have two separate numbering schemes? If I wanted to have chemical formulae numbered with 1,2,3,4... and maths with i, ii, iii, iv, ... , how should I do it? It must be documented with \placeformula, but is \placeformula documented anywhere apart from the code itself? (Yes, I am lazy.) - Ville
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Ville Voipio wrote:
And how do I switch off the equation numbering for the chemical reactions (I'd like to have the mathematical formulae still numbered)?
Stupid me. Just by leaving the \placeformula out. (Maybe I should go and get something to eat, my brain seems to be in some sort of energy-saving mode.)
By the way, is there a simple way to have two separate numbering schemes? If I wanted to have chemical formulae numbered with 1,2,3,4... and maths with i, ii, iii, iv, ... , how should I do it? It must be documented with \placeformula, but is \placeformula documented anywhere apart from the code itself? (Yes, I am lazy.)
well, i can make a \defineformulaplacement; remind me Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Ville Voipio