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

learn more… | top users | synonyms

5
votes
1answer
37 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
59 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
49 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
98 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
73 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
34 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
54 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
28 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
55 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} ...
2
votes
1answer
64 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
85 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
72 views

mhchem doesn't work in equations properly [on hold]

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
58 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
132 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
36 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
67 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
58 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
52 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
19 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
640 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
566 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
97 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
267 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
51 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
173 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
57 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
147 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
144 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
78 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
179 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
334 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
530 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
172 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
182 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
205 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
133 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
178 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
284 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
256 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
652 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: ...
1
vote
0answers
278 views

Package for professional writing of electron configurations? [closed]

I am writing a paper that deals partly with X-ray photoelectron spectroscopy (XPS). XPS results are usually described with the respective elements and the electron configuration of the measured ...
1
vote
1answer
114 views

Conflict between mhchem and pdftooltip (pdfcomment package)?

I tried to hide some text into a pdftooltip, which was working fine up to now (when I used TeXLive 2011). I now upgraded to MacTeX 2014 and now I get an error, if there is a chemical formula in this ...
0
votes
1answer
233 views

Formatting NMR Data

Hi I am trying to write up some NMR data and would like to be able to make some of the formatting a little simpler to setup. Looking at this this link here I was able to go through and change the ...
4
votes
2answers
2k 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
5answers
353 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 ...
1
vote
0answers
250 views

Problem with mhchem subscript and superscript alignement [closed]

In the mhchem package, there is an example of writing CrO42- with the command \ce{CrO4^2-} which produce a formula where the 2- is not aligned with the 4, which is exactly what I want to reproduce. ...
0
votes
0answers
315 views

Error Undefined control sequence. <argument> \rightarrowfill@ [closed]

I got this error with latex: It seems that mchem doesn't work properly with iopart.cls . Unfortunately I didn't find the solution for this specific problem in any forum. I tried load manually ...
3
votes
2answers
162 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 ...