Questions tagged [mhchem]

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

Filter by
Sorted by
Tagged with
4 votes
2 answers
49 views

overfull \hbox when writing chemical formulas in the paragraph

I am writing a paragraph that includes chemical formulas using mhchem package. The problem is that I get overfull lines. Here is an example with my packages: \documentclass[14 pt]{extarticle} \...
user avatar
0 votes
1 answer
40 views

How to place dotfill and droppoints on the same line

I have these codes \documentclass[a4paper]{exam} \usepackage{chemfig} \usepackage[version=4,arrows=pgf-filled]{mhchem} \usepackage{chemmacros} \begin{document} \pointsdroppedatright \setlength\...
user avatar
1 vote
1 answer
61 views

Writing chemical formulae on a curve with tikz and mhchem

\documentclass{article} \usepackage{tikz} \usepackage[version=4]{mhchem} \usetikzlibrary{decorations.text} \begin{document} \begin{tikzpicture} \node (One) at (-3,0) [shape=rectangle,rounded corners,...
user avatar
9 votes
2 answers
895 views

How can I make an \underbrace without a brace?

I'm trying to write the line diagram of the glass electrodo to measure pH. I've got a working code: \documentclass{article} \usepackage{xcolor} \usepackage{amsmath} \usepackage[version=4]{mhchem} \...
user avatar
  • 93
3 votes
1 answer
79 views

Resolving font issue in chemfig

When writing chemical formula I use both \chemfig{} and \ce{} commands but I noticed that the two bring outputs having different font style as shown below. Currently working with these codes: \...
user avatar
2 votes
1 answer
48 views

Package mhchem Error while writing chemical equations in Lyx

I am only a beginner with respect to Tex. I have MikTex installed on Windows10, and the following equation works fine in TexStudio. \ce{2Al(s)+3Cl2(g)->2AlCl3(s)} However when I import the same ...
user avatar
  • 21
4 votes
2 answers
148 views

Chemfig align at middle

I Want ammonium oxalate and calcium oxalate to be at middle of the line. But can't figure out how to do so :( \documentclass[a4paper,11pt]{article} \usepackage[version=4]{mhchem} \usepackage{chemfig} \...
user avatar
  • 455
1 vote
1 answer
97 views

How do I make a chemical equation with structural formulas, arrow and catalyst on the same row?

I tried this: \begin{tabular*}{\textwidth}{@{}l@{\extracolsep{\fill}}r@{}} \includegraphics[width=0.35]{images/1,3-dimethyluracil.png} & \ce{HNO_3} \newline \Longrightarrow & \...
user avatar
1 vote
1 answer
44 views

Weird spacing when using mhchem package

When I type the following formula in LaTeX $\ce{^{4}He + \gamma \rightarrow {2}p^{+} + 2n}$ I get a very weird space between the 2 and n in the last term, but there isn't any between the second last ...
user avatar
2 votes
0 answers
47 views

Parsing to package-independent Tex

Is the ability to create package-independent TeX readily available? I would like, for example, to have a system with access to a package (e.g. mhchem) create TeX that could then render on a system ...
user avatar
2 votes
1 answer
68 views

mhchem: hpstatement is not working

What am I doing wrong? I tried to do hazard statements and precautionary statements in my document, but the \hpstatement{} command is not working, as described in the mhchem manual. My MWE (or not ...
user avatar
4 votes
2 answers
172 views

Use \left( and \right) in mhchem

When I try to use the \left( and \right) commands in a chemistry equation, using mhchem, I get multiple errors. It is also not possible to use \bigl( or similar. For example, the following: \...
user avatar
  • 169
2 votes
1 answer
384 views

`mhchem` vs `chemformula`

Can you explain the main differences/advantages/disadvantages between package mhchem and chemformula? I don't mean the exact usage but the main aspects to choose between them (e.g. one of them is ...
user avatar
  • 768
0 votes
0 answers
86 views

Vertical chemical reactions

Is there any way to write chemical reactions with vertical branching as done in the following image?
user avatar
  • 125
1 vote
1 answer
110 views

Mesomere structures are in one line

I'm trying to write the mesomeric structures of Phenetol. Here's a short form of the code: \documentclass[pstricks, a4paper, 14pt]{article} \usepackage{chemfig} \usepackage[version=4]{mhchem} \begin{...
user avatar
  • 248
0 votes
0 answers
63 views

How do you draw a condensed molecular structure with multiple side chains?

So I am trying to draw the molecule in the picture, but when I tried, it made weird spaces in between the parts not in chemfig. How can I do it entirely on chemfig? MWE: \usetikzlibrary{arrows.meta,...
user avatar
5 votes
1 answer
172 views

Using mhchem with gfsneohellenic gives a weird looking arrow

When using mhchem package with gfsneohellenic font the resulting arrow in chemical reactions is weird. Is there anyway to resolve this? MWE \documentclass{article} \usepackage{gfsneohellenicot} \...
user avatar
  • 1,549
2 votes
1 answer
67 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 ...
user avatar
1 vote
1 answer
52 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 ...
user avatar
  • 463
0 votes
1 answer
331 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 ...
user avatar
  • 75
0 votes
0 answers
41 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} \...
user avatar
0 votes
0 answers
257 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 \...
user avatar
  • 1
2 votes
1 answer
135 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, ...
user avatar
  • 471
1 vote
1 answer
51 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} \...
user avatar
1 vote
1 answer
118 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 \\ ...
user avatar
1 vote
1 answer
158 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 ...
user avatar
  • 697
7 votes
2 answers
410 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} \...
user avatar
  • 455
3 votes
1 answer
136 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 ...
user avatar
  • 1,657
0 votes
0 answers
533 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"...
user avatar
  • 1
0 votes
3 answers
133 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}] ^...
user avatar
  • 1
1 vote
1 answer
276 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 ...
user avatar
0 votes
1 answer
705 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? (...
user avatar
5 votes
3 answers
1k 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{...
user avatar
0 votes
1 answer
69 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 ...
user avatar
4 votes
1 answer
188 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 ...
user avatar
  • 43
3 votes
1 answer
106 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 ...
user avatar
  • 2,597
7 votes
2 answers
1k 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)...
user avatar
  • 2,597
3 votes
1 answer
916 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 ...
user avatar
  • 2,597
3 votes
4 answers
287 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} \...
user avatar
6 votes
2 answers
5k 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.
user avatar
2 votes
1 answer
60 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 ...
user avatar
3 votes
1 answer
755 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. ...
user avatar
  • 159
4 votes
3 answers
813 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 ...
user avatar
  • 1,951
2 votes
0 answers
442 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 ...
user avatar
  • 21
5 votes
1 answer
404 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 ...
user avatar
  • 53
1 vote
2 answers
108 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 ...
user avatar
1 vote
1 answer
71 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 ...
user avatar
  • 7,564
5 votes
1 answer
296 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} \...
user avatar
1 vote
1 answer
396 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 ...
user avatar
1 vote
0 answers
32 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 ...
user avatar
  • 31