CCL: Referencing Reactions Latex ?



 Sent to CCL by: Mariusz Radon [mariusz.radon:_:gmail.com]
 Roger Kevin Robinson r.robinson^-^imperial.ac.uk wrote:
 > Anyone got any ideas how you reference reactions in latex ?
 > Say I want to write the reaction as such
 >
 > A+C->C+D (1)
 >
 > and later reference it as reaction (1)
 >
 > how do I do this presumably I need a \label{reaction1} and later write
 > \ref{reaction1}
 >
 > But how do I stop it referencing the section ?
 >
 Hi Roger:
 The `mhchem' package might be useful. It is as simple as: \ce{A + B2X4
 -> C + D+} (as in the exaple above: you even don't need to specify
 sub/superscripts explicitly in typical cases).
 Why not to treat reactions as ordinary mathematical equations
 (\begin{equation}\label{reaction1} ... \end{equation})? You will than
 take advantage of automatic numbering and referencing, which is what you
 want. Or eventually, you can  create a simple, custom environment
 `reaction' based on the environment `equation' (use \newenvironment).
 best regards,
 Mariusz Radon