Questions tagged [mhchem]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
35 views

Which package would produce a chemical equation hierarchy like this?

Trying to replicate this style of yield arrows I saw in a paper for when more than one product can be produced. Specifically the multiple dropped yield arrows. How would I do that in Tex? I have the ...
1
vote
1answer
28 views

Chemical formulae with dopants / Formulae containing ”:“ [duplicate]

I'm trying to write some substances with dopants in them, e. g. ”InO2:Sn.“ Although I could split up the formula every time it contained a dopant, this wasn't really smart to do and I'd also get in ...
0
votes
1answer
37 views

How to write chemical formula in the bibliography entry?

I am trying to include a paper in my .bib file such as: Example paper I used the mhchem package so I have amended the entry in Mendeley to read: XPS investigation on the corrosion behavior of 13Cr ...
0
votes
0answers
29 views

old versions mhchem chemfig

Could someone help to advise how to install older versions of mhchem and chemfig? I just want to go back to the old system that worked. No upgrade please. The latest version create error code: ...
0
votes
0answers
24 views

Chemical packages bug fontspec mhchem siunits

Example: \documentclass[10pt]{beamer} \usetheme{Singapore} \setbeamertemplate{navigation symbols}{} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{helvet} \usepackage{natbib} \...
0
votes
0answers
21 views

What is the best way to typeset a chemical formula using old IUPAC group numbers (roman numerals)?

I am using mhchem. I want to typeset Cu-III-VI2. Some ideas: \ce{Cu-III-VI2} Cu-III-\ce{VI2} Cu-III-$\textrm{VI}_2$ What's the right way?
0
votes
0answers
37 views

Error in running latex file with chemgreek.sty

I'm trying to compile my Latex file but I'm getting the following error ! Undefined control sequence. <argument> Chem\str_uppercase:f {\tl_head:n {alpha}}\str_lowercase:f {\tl_ta... l.584 \...
2
votes
1answer
34 views

mhchem exponent - missing

I want to write the following formula: SeO_4^(2-). When I write it as suggested in the documentation of the LATEX package then the formula is worng and doubled and when I write it with extra brackets, ...
1
vote
1answer
22 views

Biblatex-apa problem with mhchem

I discovered a problem when using BibLaTeX' cite-style apa together with mhchem when the bib-file contains chemical formulas with subscripts/superscripts. The MWE is \documentclass{article} \...
1
vote
1answer
40 views

Using mhchem in align environment

The list of chemical reactions are written using align environment \begin{align} \ce{ Ca(OH)_{2} + 2 HCl &\rightarrow CaCl$_2$ + 2 H_{2}O \nonumber \\ ...
1
vote
1answer
55 views

How to eliminate the space after chemical formula in mhchem enviornment

It's very convenient to use mhchem to typeset chemical formulas. It works very good in English writing, but when using Chinese (ctex), every chemical formula is followed by a space, which makes the ...
7
votes
2answers
349 views

Align in chemistry

Is there any way to align link this?(+ and <=> in the middle) I used this code. % !TEX program = xelatex \documentclass[a4paper,12pt]{article} \usepackage{polyglossia} \usepackage{amsmath} \...
3
votes
1answer
88 views

Write crystals using mhchem properly

Usually I use the package mhchem for writing chemical formulas, but until now I was not able to find a solution for writing crystals such as Nd^{3+}:YAG properly with this package. When simply writing ...
0
votes
0answers
93 views

Mhchem and chemgreek error

Having problems with the mhchem package, which I have not used before. Simply including the package and creating an otherwise blank document yields several errors regarding the chemgreek package, ...
0
votes
0answers
135 views

Convert .tex to .docx using pandoc when using the mchem package

I use pandoc to convert .tex file to .docx. However, the document is not converted properly when it uses the package mhchem. Indeed, I then get this error: unexpected "{" expecting "%", "\\label"...
0
votes
3answers
98 views

what is wrong in this reaction?

\documentclass{article} \usepackage[version=4]{mhchem} \usepackage{siunitx} \usepackage{isotope} \begin{document} \section{Decay mode of \ce{Be isotope}} $\ce{^4_2Be -> [5x10^3}{ns}][{1.37 MeV}] ^...
1
vote
1answer
103 views

LyX gives undefined control sequence in expl3 with mhchem

I've recently started to use LyX with mhchem to typeset chemical formula, and everything works fine when using pdflatex from the command line, but for some reason LyX will throw an error about a bad ...
0
votes
1answer
279 views

What does this error message mean, and what is causing it?

immediately after I added the mhchem package (version 4) into my document on overleaf, this error message popped up. Does anyone have any ideas as to why this error occurring, and what it's saying? (...
5
votes
3answers
198 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{...
0
votes
1answer
49 views

How can I align all my mhchem v4 reactions in LaTeX to the left of the page rather than have them centred

so i have a whole bunch of reactions that i want to align to the left of the page rather than in the center, now it looks like this: . I do still need the reactions to be numbered So I would like ...
4
votes
1answer
131 views

Chemical reaction

Good morning, everyone, I am a Bachelor of Science in Physics student, and I would like to be able to reproduce the routing of this example here on Latex, not necessarily draw the molecules, I learn ...
3
votes
1answer
48 views

Incompatibility of Nexus Style Class and mhchem

I was very impressed with the nexus style class on the latex showcase (see here). Unfortunately when I tried to implement it, I needed to load the mhchem package and when doing so, the tabs at the ...
6
votes
2answers
415 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)...
3
votes
1answer
291 views

Drawing a Chemical Reactions Flow Chart

I know I should probably separate the questions into multiple stems but I don't want to spam. I am attempting to recreate this diagram but there are a few parts I am unsure of: Here is my code for ...
3
votes
4answers
196 views

How do I reduce spacing between 2 segments of a line in a multiple alignment environment?

Currently, there is a large gap between the 2 segments of a line, causing its index to be pushed to the following line. How can I prevent this? \documentclass{article} \usepackage{amsmath} \...
6
votes
2answers
1k 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.
2
votes
1answer
42 views

How to conveniently use textmode brackets in a mathmode \ce command (XeLaTeX)?

I'm preparing a thesis for publication, and the publisher requires the use of a font with old style numerals in textmode. This results in old style numerals being used when I use the \ce command. No ...
3
votes
1answer
194 views

Mhchem arrows length

Is it somehow possible to change the default length of arrows in chemical reactions using mhchem? In particular I would need to reduce its length, both for single and for double (equilibrium) arrows. ...
4
votes
2answers
262 views

Environment for chemical reaction with reference

I need a chemical reaction environment, numbered and able to be referenced/labeled. It must also that is consistent with equation in its looks. I have read many questions and my code is an adaptation ...
2
votes
0answers
268 views

Undefined control sequence with mhchem package [closed]

I am using chemical reactions and formula in my document. However, I am getting a compiler error " undefined control sequence when using \usepackage{mhchem}. If remove \usepackage{mhchem}, my document ...
5
votes
1answer
204 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 ...
1
vote
2answers
99 views

Numbers immediately after operator subscripted in mhchem environment

The following is the output of this MWE: \documentclass[12pt]{article} \usepackage[version=4]{mhchem} \usepackage{siunitx} \begin{document} \ce{a = 2 \times 3}\\ \ce{a = 2 \div 3}\\ \ce{a = 2 \times ...
1
vote
1answer
41 views

using absolute value symbol in mhchem \ce environment

I am trying to use the absolute value symbol in the \ce{} environment provided by the mhchem package, but the value is converted to a horizontal line. Is there a way to escape the symbol so that it ...
4
votes
1answer
195 views

Conflict between diffcoeff and mhchem

I notice recently a conflict between the packages diffcoeff and mhchem. For this file : \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{diffcoeff} \...
1
vote
1answer
223 views

Drawing both bonds and valence electrons

Is there any package for drawing valence electrons? MWE \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{chemformula} \begin{document} \begin{frame}{Lewis ...
1
vote
0answers
30 views

Combining mhchem and chemnum with an optional argument? [duplicate]

I am trying to combine two packages in to a new command. The problem I have come across is when trying to add an optional parameter. I want to be able to have 2 parameters with the second parameter ...
1
vote
1answer
252 views

mhchem - adding more than two conditions/steps to reaction arrow in chemical equation

mhchem has support for denoting reaction conditions/steps above and below the reaction arrow using the following format: \ce{A + B ->[text above][text below] C} Is there a nice way to add ...
5
votes
3answers
147 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 ...
4
votes
1answer
250 views

Weird arrows with mhchem - Bug in package, font or LuaTeX?

I am using the mhchem package with the Libertinus font family in my PhD thesis. When typesetting with LuaTeX, there are some weird issues with arrows depicting reactions. Here is the MWE to ...
0
votes
3answers
772 views

Mhchem errors in LyX: kernel/command not defined and undefined control sequence

I'm using MiKTeX (Console) 2.9.6673 on a Windows 10 Pro. Consider the following minimal-not-working-example. \documentclass{article} \usepackage{mhchem} \begin{document} \ce{H2O} \end{document} ...
0
votes
1answer
343 views

Removing horizontal space around \textperiodcentered

I would like to write a chemical formula, either using \ce{} from the mhchem package or without. It contains a dot like the multiplication sign \cdot from math. It means that for example Li is ...
1
vote
0answers
113 views

mchem Double Subscript Error [closed]

I've had a look at the other double subscript error questions here and they don't seen to solve my error. When I simplify what I want the suggested answer works, but then I don't get what I would like ...
2
votes
3answers
73 views

Constructing a command for Physical Dimension - parsing character by character

I wish to have a dedicated command for printing physical dimension. Something like \phydimen{M2L-3T-1}. This should output the same as $\textrm{M}^2\textrm{L}^{-3}\textrm{T}^{-1}$. I find that the \...
2
votes
0answers
67 views

Coloring only one side of the two sided arrow of mhchem [closed]

For showing a reversible reaction with mhchem package one uses \ce{<=>}. Now if I want to color one of the two sides by a different color (so not both directions of this two-sided arrow having ...
1
vote
3answers
129 views

How to get chemical equations with diagonal arrows

I have a small working example \documentclass{article} \usepackage{amsmath} \usepackage[version=4]{mhchem} \begin{document} \begin{gather*} \ce{ S + E_1 <=> SE_1 -> P + E_1 \\ S + ...
2
votes
1answer
121 views

mhchem bond in short caption causes error

I am trying to use mhchem inside the short caption for a number of figures and tables, and it is interfering with the thesis class I'm required to use (pittetd). It only happens when forming the list ...
1
vote
1answer
1k views

How to make a chemical diagram with mhchem

I need to write two symbols one below the other, and I referred to the following posts: How to write something vertically below another math symbol How to write below/above the text in LaTeX? ...
3
votes
1answer
255 views

Use of mhchem and chemformula inside a glossary entry

The following MWE where a glossary entry with a chemical formula defined with mhchem renders as expected with 0 errors: \documentclass{article} \usepackage[modules={all}]{chemmacros} \usepackage[...
2
votes
1answer
206 views

Strange interaction between fontspec and mhchem

I use the mhchem package for chemical formulas (with XeTeX). For one year or so, I’ve been experiencing some really strange bugs, seemingly without reason. Some characters in the chemical formulas, ...
5
votes
2answers
496 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 ...