Why won't this compile? I suspect the math inside the []s are preventing compilation. If so how do I make this work? Thanks.

\ce{E + S <=> [$k_1$][$k_{-1}$] ES <=>[$k_2$] E + P}


! Missing $ inserted. $ l.34 ...k_1$}][\ce{$k_{-1}$}] ES <=>[$k_2$] E + P} ?

  • 2
    set it without using math mode: \ce{E + S <=> [k_1][k_{-1}] ES <=>[k_2] E + P} – user2478 Jun 17 '11 at 15:00
  • Very good, I also discovered the space between <=> and [k_1][... is not allowed. :| Thanks! – ptrcao Jun 17 '11 at 15:09
  • 1
    @Herbert: since you answered first, post your comment as an answer, and I'll delete mine. – Gonzalo Medina Jun 17 '11 at 15:09
  • A gentleman huh? ;) – ptrcao Jun 17 '11 at 15:11
  • 1
    It also works with \ensuremath{k_1}, if you wish to have math mode for the common italic math font. – Stefan Kottwitz Jun 17 '11 at 15:30

set it without using math mode:

\ce{E + S <=> [k_1][k_{-1}] ES <=>[k_2] E + P}

The arguments of mhchem's arrows already are in math mode. So wrapping them in $...$ must go wrong.

\ce{A ->[\Delta] B} % default: math mode

If you would want or need text mode you'd have to use \text{} or mhchem's shortcut:

\ce{A ->T[text mode] B} = \ce{A ->[\text{text mode}] B}

Also there is a second shortcut for "chemistry mode", i.e. using the \ce macro:

\ce{A ->C[H2O] B} = \ce{A ->[\ce{H2O}] B}

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.