\documentclass[12pt]{article}
\usepackage[version=3]{mhchem}
\begin{document}
\ce{CH2OH + ATP <=>>[\text{Hexokinase}] + \text{glucose 6-phosphate} + ADP + H+} \\
\ce{CH2OH + ATP <=>> + \text{glucose 6-phosphate} + ADP + H+}
\end{document}
See the resulting Latex output, and compare. In [1] the difference between the two arrows of the unequal equilibrium sign becomes less perceptible because the sign has been stretched by the text. Compare to the same sign without the text [2]. I want the the differences between the upper and lower arrows to be exacerbated a bit more. How can I achieve this in LaTEX?
Best Answer
Another answer because I misunderstood your question. Digging around in the source code there are several macros which affect the length of the arrows.
From
mhchem.sty
we haveIt's basically a front end to
amsmath
's\ext@arrow
macro:So playing around with the arguments to
\ext@arrow
in lines 3-4 will affect the length of the lower arrow. I could not grok the\ext@arrow
code enough to figure out how.Instead I tried the option of drawing arrows with
pgf
. You have to putin the preamble. Then the relevant macro is:
From this you can see that the bottom arrow is 1em shorter than the top one. To make it even shorter, change the last line to something like:
This will make the bottom arrow 1.5em shorter.
To make this configurable, define a key and invoke it. Here's the complete example: