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

learn more… | top users | synonyms

3
votes
1answer
36 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
34 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 ...
1
vote
1answer
26 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} ...
1
vote
1answer
68 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
57 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
90 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
47 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
51 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
80 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 ...
2
votes
0answers
117 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 ...
4
votes
3answers
115 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} ...
5
votes
1answer
78 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, ...
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
37 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 ...
2
votes
1answer
63 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
38 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
23 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
79 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
93 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
106 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
90 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*} ...
1
vote
1answer
78 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: ...
3
votes
1answer
167 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 ...
0
votes
1answer
43 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
76 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
69 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? ...
4
votes
1answer
55 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
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 ...
3
votes
1answer
825 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} ...
7
votes
1answer
878 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 ...
1
vote
1answer
126 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 ...
3
votes
3answers
303 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 ...
1
vote
1answer
58 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
202 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}) + ...
4
votes
1answer
63 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
162 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, ...
3
votes
2answers
176 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 ...
4
votes
2answers
85 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 ...
3
votes
3answers
230 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: ...
1
vote
1answer
381 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 ...
6
votes
1answer
658 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} ...
9
votes
2answers
187 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 ...
1
vote
1answer
201 views

Cannot line break in chemical equation in flowchart using mhchem and TikZ

I can't seem to get a line break mid equation; in this example, to fit in a box (and not change the size of the box). my usual method of \\ is not working. \documentclass[12pt]{report} ...
3
votes
0answers
230 views

Missing chemical sub- and super-scripts in html file compiled with htlatex

Current problem is typesetting with the chemical packages. As would be expected, the PDF is produced without any problems but distinct issues arise with the html production using tex4ht. The HTML ...
4
votes
2answers
147 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} ...
5
votes
2answers
199 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 ...
3
votes
1answer
324 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
308 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: ...
4
votes
1answer
745 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: ...