1

I have the following code:

\begin{equation}

   \ce e^- + ^{40}_{19}K -> ^{40}_{18}Ar^* + \Pgne -> ^{40}_{18}Ar + \Pgne + \gamma

\end{equation}

but in my document -> is not connected for a full arrow. Wrong arrows

I have:

\usepackage[version=4]{mhchem}

\usepackage[italic]{hepnames}

in my document.

So i'm wondering what is wrong.

I have tried adding {} around the equation ( { is before e^- and } is after \gamma) but it looks like this: Also wrong which is even worse.

1
  • First of all, start with removing the empty lines in the equation environment. You should get an error message from this.
    – leandriis
    Apr 25 '20 at 15:14
2

Remove the empty lines in the equation environment, place the whole chemical equation inside of the argument of \ce and surround \Pgne by a set of {}:

enter image description here

\documentclass{article}

\usepackage[version=4]{mhchem}
\usepackage[italic]{hepnames}

\begin{document}

\begin{equation}
   \ce {e^- + ^{40}_{19}K -> ^{40}_{18}Ar^* + {\Pgne} -> ^{40}_{18}Ar + {\Pgne} + \gamma}
\end{equation}
\end{document}
2
  • Added {} like you said and that fixed it, thanks! Apr 25 '20 at 15:20
  • 1
    @MarcusJohnson that is the documented escape mechanism for input mhchem doesn't know what to do with
    – cgnieder
    Apr 25 '20 at 15:35

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.