Questions tagged [mhchem]

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

Filter by
Sorted by
Tagged with
3 votes
1 answer
96 views

Is there a difference between $\ce{}$ and \ce{}?

So with the mhchem package, I am able to write chemical equations conviniently. However, I am confused on whether \ce{} with dollar signs or without them are equivalent. The guides I've read told me ...
Jacob Lee's user avatar
0 votes
1 answer
38 views

Formatting Chemical Equations with mhchem in a list with Labels and Aligned Arrows in KaTeX

I'm looking for assistance in formatting chemical equations to create a list that includes labels and aligns the equations by their arrows. Currently, I'm using the mhchem package for chemical ...
vyzee's user avatar
  • 1
4 votes
2 answers
341 views

Is it possible to center chemical equations by the arrow?

I created this reaction equation with: \documentclass[paper=a4, fontsize=11pt, toc=flat]{scrartcl} \usepackage[a4paper,left=3cm,right=2cm,top=3cm,bottom=3cm]{geometry} \usepackage[ngerman]{babel} \...
Hans's user avatar
  • 43
0 votes
1 answer
80 views

Using Mhchem Arrows in Chemformula

Using the chemformula package, the reaction arrows appear too thick, and the tips do not have the shape I want. Is there any way to use arrows similar to those from the mhchem package (especially ->...
qianqian07's user avatar
-3 votes
1 answer
110 views

How can I draw like this picture? [closed]

I can not make code for this picture.
Ghassan Hamad's user avatar
4 votes
2 answers
254 views

How can I put a withdrawing or donating group in an aromatic ring in chemfig?

I need to put an undetermined electron withdrawing or donating group in an organic molecule (an aromatic ring), using arrows instead of lines as bonds, but with the barbs just in the middle. This is ...
Juan Michalowski's user avatar
2 votes
1 answer
105 views

Two oxidation numbers above one element

I'm new to LaTeX and I have a problem. My code right now is: \documentclass[11pt,a4paper]{scrartcl} \usepackage[singlelinecheck=false]{caption} \usepackage{times} \usepackage{tabularx} \newcolumntype{...
Henss's user avatar
  • 25
2 votes
2 answers
59 views

Chemfig Scheme: wrong alignement of a reaction

I'm trying to use chemfig to put a reaction in my document, but the diferent molecules are missaligned. How I coul fix it? This is my code: \documentclass{article} \usepackage{chemfig} \usepackage{...
Juan Michalowski's user avatar
2 votes
2 answers
95 views

Custom Tabular Column: Chemical Formula

I am trying to define a tabular column, which automatically applies the \ce{} command from the mhchem package to format the cell content as a chemical formula. The Google-search-results answer is to ...
BernhardWebstudio's user avatar
0 votes
0 answers
50 views

mhchem charge of ions too thin

I am using mhchem to write chemical reaction such as the following : \ce{H2SO4 ->[H2O] 2H^+ + SO4^{2-}}. It works fine, but when it comes to print it on paper the charges of the ions (+ and - ...
raoulpetite's user avatar
0 votes
2 answers
76 views

Represent a square of reactions with their reaction rates

I would love to be able to represent a network of reactions in a square like so (pardon the scribbling) note: I don't care about the squares around the nodes of the reaction, I can live without those....
Puff's user avatar
  • 103
2 votes
1 answer
45 views

Problem with using cyrillic letters in mhchem's \ce{} command

Entering Cyrillic letters into the \ce{} command results in the error: Package mhchem Error: Assertion failed: Unexpected input character. This error is solved by putting the Cyrillic text in the \...
Azamat's user avatar
  • 133
0 votes
1 answer
94 views

Mhchem with hydrated compounds

I would like to get hydrated compounds with the leading number NOT subscripted, as shown here, but using mhchem instead of chemmacros. In particular, I already tried the accepted solution to that ...
Richard Fitzhugh's user avatar
1 vote
3 answers
120 views

How do you write the names under the chemicals?

I am fairly new to the mhchem environment. I want to write and equation such as in the figure. I can write the equation with no issues, I am just not sure how to add the names such as 'acid' or '...
Aditya Rivonkar's user avatar
0 votes
0 answers
43 views

List comma-separated chemical formula within the sentence

NiCl2, NaPO_2H2, C4H4Na2O4, and HF. I have to list these chemicals within a sentence. But when I tried to put superscript and subscript, the remaining sentence and the whole paragraph are changing ...
Hameed's user avatar
  • 1
1 vote
0 answers
40 views

Make4ht: Anything inside equation with \ce rending to mathjax adds extra \protect

Here is a very simple mwe that does not render on any machines without giving an extra \protect. Without the % sign after the \begin{equation} this renders fine for both pdf (using lualatex) and ...
Justin Shorb's user avatar
3 votes
1 answer
105 views

Using mhchem, make4ht, and cleverref issues with equation rendering

This is a follow-up question to the one answered here: Issue with mhchem and fractions in make4ht and mathml. Using that same MWE, but adding in hyperref, cleverref, and a label in the equation does ...
Justin Shorb's user avatar
3 votes
3 answers
84 views

Command and counter for chemical equations

I want to define a command for chemical equations, using the mhchem package. The objective is to obtain this: A + B = C (R1) C + D = E (R2) Following the mhchem manual this should be ...
point618's user avatar
  • 178
2 votes
1 answer
159 views

Issue with mhchem and fractions in make4ht and mathml

I am compiling a chemistry-heavy text and I noticed that mhchem on Overleaf did not create superscripts and subscripts when compiled with make4ht. Upon downloading the newest release, which put the ...
Justin Shorb's user avatar
2 votes
1 answer
90 views

What is the simplest way to stack words above and below arrows for chemical formulae?

I want a result like this. Also, is it possible to force all text in certain math environment to be mathrm? One solution is to use mhchem package with \ce command \ce{6CO2 + H2O ->[sunlight][...
Al-Motasem Aldaoudeyeh's user avatar
-1 votes
1 answer
141 views

How do I write oxidation numbers using chemmacros in mathjax? [closed]

I saw this post and went to chemmacros. I'm unable to use the chemmacros package to write oxidation numbers. I wrote the following, but I can't render oxidation numbers in mathjax in chemistry stack ...
Sam Harris's user avatar
1 vote
1 answer
77 views

Defining mhchem reactions in a table without displaying whitespace

I am using mhchem for reaction formatting, and am also using Martin Hensel's suggestion for reaction labelling and numbering (from the mhchem documentation). Several reactions are listed/defined in a ...
Daniel Thomas's user avatar
2 votes
3 answers
388 views

Triple bond using mhchem in beamer

I need to write chemical mechanisms in presentations. Using mhchem is a quick and easy solution to write presentable chemical equations however the triple bond command (# or \bond{#}) produces error ...
magguu's user avatar
  • 917
0 votes
1 answer
54 views

Redefining some simple \cee type command in package {mhchem}, to avoid using the package

Is it possible to define a simple macro replacing \cee in package {mhchem} (since the package leads to errors)? Thanks.
florin's user avatar
  • 157
4 votes
2 answers
129 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} \...
Naseebah's user avatar
1 vote
1 answer
110 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\...
Kidegalize's user avatar
1 vote
1 answer
108 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,...
John Simmie's user avatar
10 votes
2 answers
2k 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} \...
FFG's user avatar
  • 143
4 votes
1 answer
126 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: \...
Kidegalize's user avatar
2 votes
1 answer
195 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 ...
Siv's user avatar
  • 21
4 votes
2 answers
247 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} \...
Soyeb Jim's user avatar
  • 475
1 vote
1 answer
425 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 & \...
Alexandr Gherganov's user avatar
1 vote
1 answer
52 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 ...
Jack the Ranger's user avatar
2 votes
0 answers
73 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 ...
bobthechemist's user avatar
2 votes
1 answer
111 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 ...
Jussi Lundahl's user avatar
4 votes
2 answers
216 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: \...
jng224's user avatar
  • 169
2 votes
1 answer
818 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 ...
Tom Solid's user avatar
  • 827
0 votes
0 answers
173 views

Vertical chemical reactions

Is there any way to write chemical reactions with vertical branching as done in the following image?
user avatar
1 vote
1 answer
141 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{...
TornaxO7's user avatar
  • 248
0 votes
0 answers
110 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,...
Dave2627's user avatar
5 votes
1 answer
227 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} \...
Damitr's user avatar
  • 1,759
2 votes
1 answer
70 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 ...
Macman756's user avatar
1 vote
1 answer
118 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 ...
Nepumuk's user avatar
  • 483
0 votes
1 answer
587 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 ...
phald's user avatar
  • 105
0 votes
0 answers
49 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} \...
user214767's user avatar
0 votes
0 answers
329 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 \...
cosmos's user avatar
  • 1
2 votes
1 answer
200 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, ...
Elia's user avatar
  • 471
1 vote
1 answer
90 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} \...
Manuel Weinkauf's user avatar
1 vote
1 answer
260 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 \\ ...
Suddhasattwa Ghosh 's user avatar
1 vote
1 answer
213 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 ...
ZYX's user avatar
  • 717

1
2 3 4 5