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

learn more… | top users | synonyms

2
votes
1answer
30 views

How to make mhchem work with \bgroup and \egroup satements? [duplicate]

I am trying to create a table in which a column consists entirely of chemical formulae. I would like to use the array package to automatically insert the \ce{...} command, taking the cell's content as ...
3
votes
2answers
60 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 ...
3
votes
2answers
94 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 ...
3
votes
1answer
82 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
51 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
2answers
45 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} %...
2
votes
1answer
80 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
68 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
196 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
57 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
70 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
111 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
181 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
127 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, ...
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
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 ...
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
93 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
136 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
134 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
98 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
101 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{...
3
votes
1answer
237 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
58 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
91 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
79 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=...
4
votes
1answer
60 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
22 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
1k 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} ...
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 ...
1
vote
1answer
141 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
346 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
67 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
243 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
70 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
182 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
199 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
88 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
271 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-}_{...
1
vote
1answer
441 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
2answers
837 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{...
9
votes
2answers
200 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
219 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} \usepackage{...
3
votes
0answers
254 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
166 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} \ch[...