TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


 \ce{PH &= -\log  \ce{[H+]}} \\
 -\ce{PH} &= \log \ce{[H+]} \\
 10^{-\ce{PH}} &= \ce{[H+]} \\


! Incomplete \ifx; all text was ignored after line 11.
<inserted text> 
l.11 \end{align*}

What is wrong?

share|improve this question

closed as too localized by Werner, egreg, diabonas, lockstep, Stefan Kottwitz Sep 30 '11 at 19:22

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

this question was closed as too localized, but it actually helped me – simona Apr 19 '13 at 15:36
up vote 8 down vote accepted

The first \ce is missing a }, while the second one has one too much. So you should have

 \ce{PH} &= -\log  \ce{[H+]} \\
 -\ce{PH} &= \log \ce{[H+]} \\
 10^{-\ce{PH}} &= \ce{[H+]} \\
share|improve this answer

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