[Tex/LaTex] How to make the equilibrium double arrow longer

mhchem

\documentclass{article}

\usepackage{mhchem}

\begin{document}  

\ce{H^+ (\textit{aq}) + HCO3^- <=> H2CO3 (\textit{aq}) <=> H2O (\textit{l}) + CO2 (\textit{g})}

\ce{2H2(\textit{g}) + O2(\textit{g}) <=> 2H2O(\textit{l})}

\end{document}

I am new to Latex and doing some chemistry reports and while MS equation editor is a pain, it decently works even by using mixed fractions to get ion charges with subscripts for atoms, but I digress. I cannot do the double harpoon-like symbol for chemical equilibrium "longer" as I like the arrows to be stretched out more than it is. Is this even possible?

Best Answer

Your original version didn't work for me, hence \expandafter's:

\documentclass{article}

\usepackage{mhchem}

\begin{document}

%\ce{H^+ (\textit{aq}) + HCO3^- <=> H2CO3 (\textit{aq}) <=> H2O (\textit{l}) + CO2 (\textit{g})}

\ce{2H2( \expandafter\textit{g}) + O2( \expandafter\textit{g}) <=> 2H2O( \expandafter\textit{l})}

\ce{2H2( \expandafter\textit{ g}) + O2( \expandafter\textit{g}) <=>[\hspace{1cm}][] 2H2O( \expandafter\textit{l})}


\end{document}

enter image description here

Related Question