I'm trying to write chemical equations with mhchem, but I can't compile the code when I insert vertical bars (||) in the formula.
\usepackage[version=4]{mhchem}
.
.
\begin{center}
\ce{|M_{x}(H2O)_{\gamma}|[Al_{x}Si_{t-x}O_{2t}]-IZA}
\end{center}
When I write ||, the code don't compile, but if I replace it by [] it works fine.
Any suggestions?


\begin{center} \ce{|M_{x}(H2O){\gamma}|[Al{x}Si_{t-x}O_{2t}]-IZA} \end{center}
I need write || in the formula. I wouldn't like replace it by [ ] because IUPAC rules don't allow.
– Valeria García Melgarejo Jan 02 '16 at 21:24\documentclass{...}, the required\usepackage's,\begin{document}, and\end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. – samcarter_is_at_topanswers.xyz Jan 02 '16 at 21:30\celike so:|\ce{M_{x}(H2O)_{\gamma}}| \ce{[Al_{x}Si_{t-x}O_{2t}]-IZA}– Rico Jan 02 '16 at 21:52c.t.t.. – Johannes_B Jan 02 '16 at 22:25|withchemformula– cgnieder Jan 03 '16 at 12:46