Does anybody know how to draw an equilibrium arrow with overpic (into a picture)?

With equilibrium arrow I mean the arrows in a chemical equilibrium equation:

equilibrium equation

In the code I would like to put an equlibrium arrow, where %\put(30,11)\ce{<=>} stands.

enter image description here





\usepackage[top=3cm, left=3.0cm,right=2cm,bottom=2.5cm]{geometry}




\setlength{\parindent}{0pt} % ein neuer Paragraph hat keinen Einzug in der ersten Zeile
\setlength{\parskip}{6 pt}

% Overpic dient der nachträglichen Beschriftung von Grafiken in der gewählten Schriftart von Latex




\newcommand{\C}{$^\circ \text{C}$}


    \begin{overpic}[width=0.4\textwidth, grid,tics=5
        %   \put(11,10){p}

  • Welcome to TeX.SX! Can you please expand the code snippet that you have posted to a full minimal working example. A MWE should compile and be as small as possible to demonstrate your problem. it's much easier to help you if we have full working code to start from. Also, what is an "equilibrium arrow"? – Andrew Dec 6 '17 at 13:24
  • Hi Andrew, thanks for the tipps! I changed it! – Sophie Dec 6 '17 at 14:19

I would suggest something like the following:



    \begin{overpic}[width=0.4\textwidth, grid,tics=5]{example-image}
        \put(11,10){\parbox{0.4\textwidth }{\ce{OH2+ <=> OH}}}


I have enclosed the \ce{} command from mhchem in a parbox, so it is displayed correctly using overpic. The result is shown in the following image:

enter image description here

Please note that I have deleted packages and commands that are not nessesary for the MWE. Additionally, I have replaced the deprecated class options liststotoc and bibtotoc by their up to date replacements listof=totoc and bibliography=totoc respectively.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.