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

learn more… | top users | synonyms

3
votes
2answers
55 views

arrows=pgf in mhchem with TeXLive 2016

After updating to TeXLive 2016 (MacTeX 2016), I have trouble with TeX files previously correctly compiled under TeXLive 2015. Namely, using \usepackage[version=4, arrows=pgf]{mhchem} gives the error : ...
0
votes
0answers
31 views

\emph and \ce in titles with ClassicThesis

I have to use the \emph command (for a latin word) and the \ce command (for chemical formulas and compounds) in titles but the result with ClassicThesis is awful! In particular the \emph command in ...
5
votes
3answers
1k views

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 ...
3
votes
2answers
82 views

Document font instead of math font in chemical formula (mhchem package)

I would like to write all chemical formulas in my document using the mhchem package which facilitates the use of the document font. It works quite nicely so far, but it fails for the letter "x". This ...
1
vote
2answers
42 views

Aligning labelled reactions in mhchem

Okay, i have asked this question a long time ago before, but i never got it solved, so i will try my luck again. I have the following code. \documentclass{report} \usepackage[version=3]{mhchem} %...
3
votes
2answers
2k views

How do I properly display chemical compounds within \equation? (mhchem won't do what I need)

I am trying to programmatically convert a very large number of documents that have chemical compounds represented within math equations. I am converting from some flavor of RUNOFF (I think..it isn't ...
3
votes
1answer
67 views

Formatting redox reactions with chemmacros and mhchem; arrows aren't drawn correctly

I'm using the chemmacros package to format redox reactions using its redox module to get the nice arrows that indicate which atoms are changing oxidation state as illustrated in the package manual. I ...
4
votes
1answer
45 views

How to write chemical formulas from Python variables?

I would like to store/read chemical names from some Python code, and pretty-print them using the mhchem package. However, the following code doesn't work. I expect it has something to do with when the ...
7
votes
3answers
2k views

Unequal equilibrium arrows with overhead text

\documentclass[12pt]{article} \usepackage[version=3]{mhchem} \begin{document} \ce{CH2OH + ATP <=>>[\text{Hexokinase}] + \text{glucose 6-phosphate} + ADP + H+} \\ \ce{CH2OH + ATP <=&...
2
votes
1answer
77 views

Down arrow with many lines using mhchem package

I am using mhchem package for a chemistry chapter in my document. I have a section in which there is a down arrow with many lines, as shown in image below. The code for this that I've wrote so ...
2
votes
2answers
66 views

Aligning chemical equations in a table

I have a table containing some chemical equations, some with more than one line. Can I align all of them at their reaction arrows without some much space around it? Dividing the reactions into parts ...
1
vote
0answers
27 views

uppercase greek letters in mhchem formulas gives error when compiling [duplicate]

I tried compiling a ~1 year old document today and noticed that I got an error when using a uppercase greek letter in a chemical reaction. Here's an MWE (with an example from the mhchem manual): \...
3
votes
1answer
164 views

mhchem ver.4 not working after update! Control sequence undefined

I updated MikTex 2.9 Monday, and now can't compile while loading 'mhchem'. I'm using pdflatex [Version 3.14159265-2.6-1.40.16 (MiKTeX 2.9 64-bit)] to compile the following: \documentclass{article} \...
5
votes
2answers
55 views

mhchem/amsmath seems to change the @eqnnum macro so I can't change equation number colors globally. How would I fix this issue?

Thanks to cfr How would I get custom-colored equation numbers as simply as possible? for providing a hint on how to do this without the mhchem/amsmath packages installed. To see what I mean, Here is a ...
5
votes
1answer
62 views

Trouble with commas in subscript of chemical formula (using mhchem)

I'm writing a thesis on clay materials which have rather unusual chemical formulas with commas in the subscript. For intance I try to write the following chemical formula in LaTeX: \begin{document} \...
4
votes
1answer
99 views

Aligning chemical elements in a reaction equation

As pictures tell the issue better than I could I'm just gonna insert a screenshot of the problem right off the bat. My problem is concerning the undesired whitespace between the second column of ...
3
votes
1answer
214 views

Match chemfig arrow with mhchem arrow style

I really need to have all arrows set as the TikZ stealth arrow, or similar, by default for the whole document. The arrow style must be consistent, the length and spacing aren't a real problem. Most of ...
2
votes
0answers
166 views

mhchem wants expl3

I am on Ubuntu using TexLive and I cannot compile this .tex file: \documentclass[ letter, 12pt %% set default font size to 12 point ]{scrartcl} %% article, see KOMA documentation (scrguide....
4
votes
3answers
126 views

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. \usepackage[version=4]{mhchem} . . \begin{center} \ce{|M_{x}(H2O)_{\...
5
votes
1answer
82 views

How does mhchem print its superscripts and subscripts?

I need to replicate mhchem's way of typesetting sub- and superscripts. It's different from what $X^y$ and $Z_w$ do: \documentclass{article} \usepackage[version=4]{mhchem} \usepackage[dvipsnames, ...
1
vote
1answer
40 views

How can I write underset tag properly in the reaction?

I am using mhchem package for writing chemical reactions in my blog. How shall I use the underset tag properly so that the text hydrogen ion will come just below the product? Code I have tried is ...
0
votes
0answers
16 views

How can I set the underset tag in the reaction below? [duplicate]

I should write the text ferresoferic oxide just below Fe2O3. How shall I write? The code I have tried is given below. $$\ce{2Cu + H2O-> H2 + \underset{Ferrosoferic oxide}}{\ce{Fe2O3}}$$
1
vote
1answer
139 views

Writing chemical reaction with WP-QuickLaTeX?

I want to show series of some chemical reactions on wordpress with QuickLaTeX using the popular chemfig and mhchem packages. However, I always encounter some problem. For example I want to show ...
2
votes
1answer
65 views

Aligning amsmath and mhchem equtions

I am using the amsmath & mhchem package to get the two equations below which should be aligned properly using the \begin{align} command. However after trying several constellations of &, I ...
0
votes
0answers
42 views

mhchem wrong subscript

Using mhchem version 4 (ubuntu 15.10), the simple \ce{CH2O} inserted in a report document results in CH[t]2O with "[t]2" being in subscript. Am I missing something obvious (cant' see nothing related ...
0
votes
1answer
25 views

How can I write underset tag properly in the reaction below?

I am using mhchem tools for writing chemical reaction in my blog. How should I rewrite the code in the reaction below so that the text Rust appears just below the product? And this is the code I have ...
3
votes
1answer
86 views

Using mhchem and chemfig: how to make image smaller and let it fit vertically?

Code \documentclass[10pt, a4paper]{article} \usepackage{lipsum} \usepackage[utf8]{inputenc} \usepackage{chemfig,stackengine,graphicx} \usepackage{xcolor,tikz} \usepackage[version=3]{mhchem} \...
3
votes
1answer
122 views

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 (4.02) \documentclass{report} ...
2
votes
1answer
122 views

Chemical equation with radiation arrow

I would like to to write the following equation in my document in latex. I am using \usepackage[version=3]{mhchem}. How can I write that in latex to get a similar outcome? (The arrow can be shorter ...
1
vote
0answers
95 views

mhchem doesn't work in equations properly [closed]

From what I understand (page 11 in mhchem documentation), this MWE should be ok \documentclass{report} \usepackage[version=4]{mhchem} \usepackage{amsmath} \begin{document} \begin{align*} ...
3
votes
1answer
990 views

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} ...
1
vote
1answer
86 views

aligning numerized reactions in mhchem

Okay, so i use mhchem package, and i've used the preamble for numerizing each equation, but this gives me trouble aligning the equations. I want my equations aligned like this: \documentclass{...
4
votes
1answer
58 views

Upper case using mhchem and glossaries

I'm having the following trouble using mhchem in my glossaries. I'd like to not have to worry about whether I've used an acronym already when I start out a sentence, but I'm finding that \Gls does not ...
0
votes
1answer
52 views

adding a lable to a newcommand in the preamble using mhchem and fancyref

I'm using [version=4]{mhchem} and fancyref as packages. In mchem's manual there is a code given for the preamble that allows easily to enumberate the chemical equations like the normal equations: \...
0
votes
1answer
85 views

How to make an oplus in mhchem

I would like to have an oplus and an ominus in LaTeX. \documentclass{article} \usepackage{amsmath, amssymb} \usepackage[version=4]{mhchem} \begin{document} \ce{A^\oplus + A^\ominus} \end{document}
1
vote
1answer
75 views

Bond > in Functional Group

I'd like to get a bond represented by >. As an example, see the table where the ketone group is represented by >C=O (nonring). Is there a better way to write that other than the following? >\ce{C=...
0
votes
0answers
21 views

mhchem and Miktex Problem [duplicate]

I write my PhD thesis using mhchem. After updating MikTex my document won't compile any more. MWE: \documentclass{article} \usepackage{mhchem} \begin{document} Test \end{document} The error I get ...
8
votes
1answer
1k views

Command already defined - IOP publication with mhchem

I am using iopart class for IOP publication, and I want use the mhchem package for writing chemical equations. I ran into the same problem as here and there, old topics without answer. I compile with ...
8
votes
3answers
2k views

Number mhchem reactions and create a \listofreactions

Is there a way to create an environment for reactions defined with mhchem that behaves similarly to equation in terms of numbering the reactions (including a \nonumber command)? Can I get a list of ...
3
votes
3answers
339 views

Drawing chemical reactions

I am trying to draw reactions like this I tried it like this \documentclass[11pt]{article} \usepackage[version=4]{mhchem} \usepackage{chemfig} \begin{document} \ce{ \chemfig{CH_3-CH (-[2]OH)-...
1
vote
1answer
62 views

Mhchem extension question involving chemical structure [duplicate]

Is it possible to typeset complex chemical structures such as the structure for carboxylic acid or aromatic compound using mhchem?
3
votes
3answers
226 views

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(\...
4
votes
1answer
68 views

mhchem macro in subscript

Consider the following MWE \documentclass{article} \usepackage[version=3]{mhchem} \begin{document} \begin{equation*} % c_\ce{CO2} not working c_{\ce{CO2}} \quad c_\text{working} \end{equation*} ...
5
votes
2answers
173 views

To print Glossary of Chemical symbols correctly

Code \documentclass{article} \usepackage{glossaries} % Load the package \makeglossaries % Generate the glossary \usepackage{mhchem} \begin{document} \newglossaryentry{co2}{name=CO2, description={...
3
votes
2answers
190 views

Why does mhchem italicize macro text?

I am using the package mhchem in order to typeset chemical formulas and equations. If I directly insert a state of aggregation into an mhchem \ce command, it appears as upright. If I insert it via a ...
5
votes
2answers
209 views

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 ...
1
vote
1answer
420 views

Installing STY linux mint texlive not working

I'm strying to install the mhchem package on my linux machine and it's not working. So far I've tried putting it in /usr/share/texlive/texmf-dist/tex/latex/mhchem and then running texhash on that ...
3
votes
1answer
327 views

Using the mhchem and chemfig packages in conjunction

I am trying to write a chemical reaction in which I want to include a chemical structure. I am having some trouble regarding alignment and bond length. Here is a minimal working example: \...
2
votes
1answer
152 views

Typesetting molecular transition lines, like CO 5-4

The mhchem lets me typeset molecules. But, I do not know how to properly typeset the energy levels important in spectroscopy. For example, in this paper, section 2.1, we find the following: H_2O(2_{...
5
votes
5answers
386 views

Display a sequence of materials with chemical symbols

I frequently have to describe a sequence of materials in a layer stack such as the following: Ta/Cu/Ta/Cu/Co−Fe−B/MgO/Co−Fe−B/Ta/Ru/Au The dash indicates an alloy of unspecified composition. My ...