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

learn more… | top users | synonyms

15
votes
3answers
4k views

Easy chemical reactions

I'm trying to convert some of my lecture slides to LaTeX. What's the best way to convert a number of slides (similar to the one below) into nice notes? I am aware of mhchem and chemstyle, but I don't ...
13
votes
2answers
1k views

Chemistry molecular structure drawing programs

I am looking for chemical molecular drawing packages. There is mhchem which basically sets up a structure for including externally generated molecular structures. Also Chemfig, which is the ...
12
votes
1answer
765 views

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 ...
11
votes
4answers
1k views

Oxidation/reduction arrows, overhead and below, with oxidation numbers also

I want oxidation/reduction arrows, overhead and below, with oxidation numbers also. Like the one featured in the watermark background on this very page upper left corner. Unfortunately, chemexec ...
11
votes
1answer
469 views

text figures (old style numbers) and mhchem

How do I achieve lining figures with mhchem while maintaining text figures in the text (lualatex). My MWE is: \documentclass{minimal} \RequirePackage[paperwidth=70mm, paperheight=20mm, left=10pt, ...
9
votes
2answers
128 views

raising subscript with mhchem

I've tried to define a macro with staggered sub- and superscript and added a formula with mhchem to the superscript. the typesetting seems misaligned especially the subscript seems to be typeseted to ...
9
votes
4answers
1k views

Addition and subtraction of chemical equations

Is there a package that supports the addition or subtraction of chemical equations, perhaps with automatic tabbing and a alignment. Whilst it is obvious I could set up tables or use mathmode's align ...
8
votes
2answers
172 views

mhchem formatting interrupted

\documentclass[12pt,a4paper]{article} \usepackage[version=3]{mhchem} \begin{document} \ce{K_a \times K_b = K_w} \end{document} In \ce{} all text is supposed to be regularized. See how the K_a is ...
8
votes
1answer
264 views

\cee command (from mhchem package) doesn't allow \\[10pt]

when using \cee command (from mhchem package) within align environment, \\[10pt] doesn't work. It works in align environment without \cee. Is there a workaround? here is a MWE: ...
8
votes
2answers
417 views

old style numerals in mhchem equations

I use the Lucida font for my documents with its old style numerals in text and its lining figures in mathmode. But how can I get lining figures inside chemical eqautions with mhchem? Here is some ...
7
votes
2answers
6k views

\mbox does not draw a box inside align*

\mbox doesn't work inside align*: \begin{document} \usepackage{mhchem} \begin{align*} \ce{K_w} &= \ce{[H3O+][OH^-]} \\ -\log \ce{K_w} &= -\log ( \ce{[H3O+][OH^-]} ) \\ -\log ...
6
votes
2answers
673 views

Kröger Vink notation

This question led to a new feature in a package: chemformula How to properly typeset Kröger Vink notation? I can try something like \ce{V_O^{..}} (using mhchem) but the dots are not aligned ...
6
votes
1answer
339 views

Hyphenation of terms containing symbols other than letters

I'm trying to hyphenate a chemical name and have come into difficulty. The word I'm trying to hyphenate is poly(ethyeneglycol). I'm using babel and inputenc. I've tried specifying a custom ...
6
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 ...
6
votes
2answers
178 views

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 ...
6
votes
1answer
759 views

Why does mhchem complain about this?

Alright, I'm trying to make a command to insert a proton. This code works fine: \documentclass[12pt,letterpaper]{article} \usepackage{amssymb,mathtools} \usepackage[version=3]{mhchem} ...
6
votes
1answer
76 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 ...
6
votes
1answer
243 views

Package mhchem Gives an Error

I recently tried to use mhchem and it works for some commands, but not for some. Here is a sample code. \documentclass{article} \usepackage[version=3]{mhchem} \begin{document} \ce{X-X} ...
6
votes
1answer
613 views

Collision between mhchem and mathdesign

Maybe related to a package database update to last versions, I have a collision between the mchem package and other font-related packages such as mathdesign. Whenever I try to use the command \ce{} to ...
5
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 ...
5
votes
5answers
300 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 ...
5
votes
1answer
1k views

How can I get Lewis-like structures + illustrate electron transfer

I know about the existence of packages that allow Lewis structures but that is not the question. The question is how to illustrate radical reactions as depicted below. The solution would ideally be ...
5
votes
2answers
91 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, ...
5
votes
2answers
178 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 ...
5
votes
2answers
133 views

Line Break with mhchem

I use the mhchem package for setting chemical formulas. In some occasions the formula just hangs over the end of the line. Is there any solution to fix this? Für die Abscheidung von \ce{Al2O3} werden ...
4
votes
2answers
920 views

Drawing Kinetic Schemes in Latex

Do you think it would be possible to use the mhchem package and their arrows (e.g. <=>>) in drawing a cyclic kinetic scheme such as : or do you think it would be better to use a different ...
4
votes
2answers
55 views

How to redefine the \ce-command in oder to force a specific font?

Prologue I want to write a document that I can output in both blackletter and latin typefaces just by commenting out a few commands and removing the comment signs from others. Because German ...
4
votes
2answers
91 views

chemformula, height of plus sign

How do I get the plus sign to be aligned with the arrow i.e. change the height of the plus sign? \documentclass{scrreprt} \usepackage[english]{babel} \usepackage{chemformula} \begin{document} ...
4
votes
1answer
137 views

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} ...
4
votes
1answer
185 views

Clash between mhchem and breqn. Any way to dodge or fix?

The use of breqn causes the subscript numbers in chemical expressions, formatted by mhchem, to be exlargened and perhaps moved slightly making it look ugly. Is there a way to avoid this or should I ...
4
votes
1answer
107 views

using \cancel within a mhchem command italicizes text (how to prevent?)

The text being cancelled is italicized when the following code is printed. How do I prevent this? Here is a minimum working example: \documentclass[11pt, oneside]{article} ...
4
votes
2answers
500 views

Text containing math above and below equilibrium sign won't compile (using mhchem)

Why won't this compile? I suspect the math inside the []s are preventing compilation. If so how do I make this work? Thanks. \documentclass[12pt]{article} \usepackage[version=3]{mhchem} ...
4
votes
1answer
40 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*} ...
4
votes
2answers
600 views

Side reaction arrows: in and out

I want side arrows coming in and out of the reaction, a ubiquitous convention in biochemistry yet astonishingly not supported by packages like mhchem. mychemistry supports it (see p26 of package ...
3
votes
3answers
752 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
1answer
158 views

uppercase and mhchem

How do I achieve a proper uppercase including chemical formulas typeset with mhchem, i.e. everything but chemical formulas are capital letters? MWE: \documentclass{minimal} ...
3
votes
2answers
98 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 ...
3
votes
3answers
174 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 ...
3
votes
1answer
366 views

Undefined control sequence error with mhchem and hyperref, \ce within \section{}

I get an "undefined control sequence" error when trying to use the mhchem and hyperref packages together, when \ce is within a \section{} label. A minimum example that demonstrates the problem: ...
3
votes
2answers
182 views

How to draw horizontal line within align and mhchem? [duplicate]

No matter what I do, I can't get the line to position properly. align* always wants to move it. and i can't use \noalignwithin \cee, or perhaps I'm not using it properly (beginner here)? Here's a MWE: ...
3
votes
2answers
1k 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
3answers
103 views

Displaying a Carbonate Ion with mhchem

I want to write out the formula for the aqueous carbonate ion using the mhchem package. If I write out CO3^{2-}, it looks the way it should be. (See image.) However, I want to write out: ...
3
votes
1answer
177 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: ...
3
votes
2answers
153 views

Since few days: Trouble with mhchem using \listoftables or \listoffigures

I'm having trouble with the mhchem package. When I have a figure with a separate TOC entry that involves a \ce{} environment, I get error messages saying that the control sequence \aaaa is not ...
3
votes
1answer
154 views

mhchem and beamer: use of `\ce` in title gives `Undefined control sequence.`

When I'm trying to use \ce{CH4} in the title with documentclass beamer, I get an Undefined control sequence error. The following is an (almost) minimum (not) working example: \documentclass{beamer} ...
3
votes
1answer
160 views

Rightarrow with a Delta on it (for use with the mhchem package)

I have a small problem with arrows. I need a \rightarrow with a \Delta on it. Can you help me, please? I use the chemistry package \usepackage[version=3]{mhchem}.
3
votes
2answers
327 views

mhchem reaction arrows seem to break when using a command in the \ce environment

I've tried making the command \newcommand{\aq}{_{(aq)}} to make the subscript to show that an ion is aqueous, but when used in the \ce command it breaks the reaction arrows \ce{2Cu(OH2)^{2+}_{6} + ...
3
votes
1answer
351 views

Mhchem overfull boxes

I am using the mhchem package in-line and the equations don't break lines and thus cause overfull boxes. Any way to force them to follow the rules for line breaks. i.e. the following sentence: ...
3
votes
1answer
298 views

Column format datatool

all. Suppose I have a csv file (let's call it data.csv): Solution,mol/L,Volume(mL),delta_v(mL),moles HNO3,16,5,0.2,3.125E-4 NaOH,6,20.2,0.2,3.367E-3 H2O,1;200,5,2.000E-1 H2SO4,6,5.2;0.2,8.667E-4 ...
3
votes
3answers
91 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}) + ...