Questions tagged [mhchem]

mhchem is a bundle for typesetting chemical formulae and Risk and Safety Phrases.

The mhchem bundle consists of two packages: mhchem and rsphrase. The mhchem package provides two commands: one for typesetting chemical molecular formulae and one for typesetting chemical equations with these formulae. The rsphrase package contains the text of all official Risk and Safety (R and S) Phrases that are used to label chemicals. At the time being, these phrases are available in Danish, English, French, German (current spelling), and Spanish.

218 questions
12
votes
1 answer

mhchem for titles

I'm using mhchem for chemical formulas. In the body of the text it is fine, but it is given me nasty outputs for the titles on the index of my pdf reader. I have tried different ones and the result comes to be the same. Instead of \ce{IrO2} it…
ziulfer
  • 333
9
votes
3 answers

Chemical equation with heat of formation

I'm new to Latex and I'm having some trouble with a simple chemical equation. I have the following code: \documentclass{article} \usepackage[version=3]{mhchem} % Package for chemical equation…
6
votes
1 answer

Why does mhchem complain about this?

Alright, I'm trying to make a command to insert a proton. This code works…
Canageek
  • 17,935
6
votes
2 answers

Typesetting transition metal cluster in mhchem?

I would like to use mhchem's \ce command to typeset a transition metal cluster. If I use \ce{[Ru(cod)($2\text{-}$methylallyl)2]}, I get the correct output, but it is very much a hack. I have tried to use \ce{[Ru(cod)(2-methylallyl)2]} but this…
5
votes
3 answers

mhchem - bold part of equation typeset with \ce{}

I'm trying to typeset a chemical equation using the mhchem package, and I want to bold just one part of the equation (to emphasize the product, in this case). If I type \ce{a A + b B -> c \textbf{C} + d D}, then that produces a A + b B → c C + d D.…
5
votes
1 answer

How to put chemical formula into subscript with mhchem

I would like to put chemical formulas into subscripts/superscripts. For example, $M_\ce{H}$ should denote mass of H atom. However, this fails in recent version of mhchem…
rouckas
  • 260
5
votes
2 answers

Macro's in mhchem?

I want to write hydroxyl radicals quite frequently, so I thought of making a small macro. But with the macro, the text is not processed as chemical compounds in the mhchem package. Consider the following…
Holene
  • 6,920
5
votes
1 answer

Mhchem with decimal ratios

Without using full math-mode, does anyone know how to use the mhchem package with non-integer atomic subscripts. Consider the following: \documentclass{article} \usepackage[version=3]{mhchem} \begin{document} %Works \ce{Fe98C2} …
4
votes
1 answer

mhchem creates an infinite loop, never finishes

I have a document with mhchem and the compile process never ends. What is causing this? How can I fix this? \documentclass{report} \usepackage[version=4]{mhchem} \begin{document} \ce{H2O + } \end{equation} \end{document}
mhchem
  • 3,485
  • 12
  • 37
4
votes
3 answers

Vertical bars in chemical equation

I'm trying to write chemical equations with mhchem, but I can't compile the code when I insert vertical bars (||) in the formula.…
4
votes
1 answer

Undefined control sequence with mhchem

Using pdflatex [Version 3.14159265-2.6-1.40.16 (MiKTeX 2.9 64-bit)] to compile the following: \documentclass{article} \usepackage[version=4]{mhchem} \begin{document} Hello, world! \end{document} throws the following…
4
votes
3 answers

How to make the equilibrium double arrow longer?

\documentclass{article} \usepackage{mhchem} \begin{document} \ce{H^+ (\textit{aq}) + HCO3^- <=> H2CO3 (\textit{aq}) <=> H2O (\textit{l}) + CO2 (\textit{g})} \ce{2H2(\textit{g}) + O2(\textit{g}) <=> 2H2O(\textit{l})} \end{document} I am new…
4
votes
1 answer

Reaction arrows with reaction rates with subscripts with mhchem and Sphinx

I am using Sphinx 1.1.3 to document a reaction rate with an underscore. \ce{A + $h$\nu ->[k_A] B} It works perfectly when I make html documentation, using MathJax and a template file containing the following: {% extends "!layout.html" %} {% block…
3
votes
1 answer

Incompatibility of Nexus Style Class and mhchem

I was very impressed with the nexus style class on the latex showcase (see here). Unfortunately when I tried to implement it, I needed to load the mhchem package and when doing so, the tabs at the bottom fail to render properly: Normal: When…
sab hoque
  • 2,627
3
votes
1 answer

Second symbol on arrows in the package mhchem

Why does the following formula have problem? $\ce{A ->[k''] B}$ It doesn't have any problem with prime symbol but with second symbol it won't be compiled. Any idea about how to use second symbol in this package?
1
2