We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [mhchem]

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

Filter by
Sorted by
Tagged with
18
votes
3answers
5k 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 ...
14
votes
2answers
2k 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
4answers
3k 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 ...
12
votes
1answer
1k 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
3k 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 ...
10
votes
1answer
8k 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 ...
10
votes
1answer
577 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
10k 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 ...
9
votes
3answers
4k 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 ...
8
votes
3answers
4k 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 ...
8
votes
2answers
192 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
2answers
294 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 ...
8
votes
1answer
896 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: \documentclass{...
8
votes
2answers
722 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
3answers
3k 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 <=&...
7
votes
3answers
468 views

mhchem vs expl3 bug

Does anybody know how to fix this problem with mhchem package? ! Undefined control sequence. <argument> \l__mhchem_cg_isScript_bool Recently I've found this part of mhchem.sty code: \...
7
votes
2answers
3k views

Chemical Equations

I need to include chemical equations in my thesis project. However, when I render my thesis with all the equations included, LaTeX cannot seem to process what seems to be such a 'big' file and the '...
7
votes
2answers
844 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 ...
6
votes
1answer
2k 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 ...
6
votes
2answers
419 views

Presenting a nuclear reaction in LaTeX

I wanted to know what is the best way to present a nuclear reaction with the exponents and index of the atoms A and Z being in front of the element? Thanks in advance.
6
votes
2answers
2k 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 well ...
6
votes
2answers
232 views

Curved double arrow in tikz?

High all, this is related to a previous question I asked (see here). I would like to make the double arrow between the alcohol and the amine curved (annotated with blue nodes above and below the arrow)...
6
votes
3answers
5k 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: CO3^{2-}_{...
6
votes
2answers
266 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 ...
6
votes
1answer
492 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
1answer
224 views

Unexpected result from trying to use \ce{} from mhchem package with a command defined by \DTLgetvalue from the datatool package

I have a CSV file with a list of chemical compounds I would like to have parsed through the \ce{} from the mhchem which converts them to nice chemical notation. While using the raw string as an ...
6
votes
1answer
1k 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} \newcommand{\...
6
votes
2answers
3k 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} \ce{C\bond{...
6
votes
1answer
705 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 ...
6
votes
1answer
1k 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} \...
5
votes
2answers
380 views

How to use `MathJax mhchem \pu{}` command in LaTex?

As title says I would like to use MathJax mhchem \pu{} command in my LaTeX document. FYI it is widely used in chemistry stackexchange for putting units. But when used I get the error: Undefined ...
5
votes
3answers
124 views

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{...
5
votes
2answers
14k views

Align equilibrium arrows with mhchem

I have the following code made with the mhchem package: \begin{align} \ce{CH3COOH + NaOH <=> CH3COONa + H2O} \\ \ce{H2O <=> H^{+}_{(aq)} + OH^{-}_{(aq)}} \end{align} Which ...
5
votes
1answer
3k 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} ...
5
votes
3answers
2k 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)-...
5
votes
2answers
349 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 ...
5
votes
1answer
147 views

Comma in chemical formula

I am using the \usepackage[version=3]{mhchem} package, and would like to write the formula for Dolomite in my report: (Ca,Mg)CO3 So far I haven't found a way to get that comma right in my formula ...
5
votes
1answer
2k 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: \...
5
votes
3answers
121 views

Difficulties obtaining math (italic) style in mhchem aligned equations with unicode-math

This looks like a unicode-math bug to me, but perhaps an expert here can confirm this. I am presently using the Libertinus math font family with luatex for my PhD thesis. For chemical equations, I am ...
5
votes
1answer
963 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 ...
5
votes
1answer
504 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, ...
5
votes
1answer
579 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 ...
5
votes
1answer
114 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 ...
5
votes
1answer
493 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: ...
4
votes
5answers
667 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 ...
4
votes
3answers
285 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)_{\...
4
votes
2answers
136 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
2k 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
146 views

Alignment within enumerate environment and mhchem

I'm trying to create a question sheet for pupils in which they fill out the proton and atomic numbers of elements after they undergo radioactive decay. I have succeeded in using the mhchem ...
4
votes
2answers
542 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={...