Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [chemformula]

The chemformula package provides means for typesetting chemical formulas and reaction equations following IUPAC's recommendations with comprehensive support for customization.

Filter by
Sorted by
Tagged with
4 votes
1 answer
88 views

Very basic question - cannot usepackage{chemformula}

I just made a new install of the latest MiKTeX distribution, then installed Texmaker, in this order. Then I found that my tex file does not run, although it does so on Overleaf, and on another PC ...
felisnigripes's user avatar
1 vote
1 answer
108 views

Arrows for equilibrium with circle/symbol and text

How can I write chemical equations with reversible arrows having a circle and a triangle like symbol? I have tried tweaking the chemformula with ugly results: \usepackage{chemformula} \NewChemArrow{&...
Rundry0x's user avatar
0 votes
1 answer
116 views

Spectroscopic Notation for Atoms and Molecules using chemformula

I want to write spectroscopic transitions and atomic excited states. For example, N₂⁺(C-B,0-0) and He(2³S). Currently, I am using chemformula, but the input is very messy, for these examples I need to ...
Niklas's user avatar
  • 642
0 votes
0 answers
31 views

How can I write in math mode above and below equilibrium arrows with chemfigure?

\documentclass{article} \usepackage{graphicx} % Required for inserting images \usepackage{chemformula} \begin{document} \begin{equation} \ch{E + S <=>[k_1][k_{-1}] ES} \end{equation} \end{...
Tiago Prazeres's user avatar
2 votes
2 answers
102 views

Lewis structure with chemfig inside chemformula inside align?

Hi. I am creating a beamer presentation on Lewis dot structures. I got most of my code from this question (Draw Lewis structures like a book)... But then I got stuck with BH3...(3rd reaction). I am ...
Francisco Murphy Pérez's user avatar
0 votes
1 answer
115 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
1 vote
1 answer
103 views

Half-cell reactions and sum reaction below horizontal rule with chemmacros?

I would like to write two half-cell equations (reduction and oxidation) each on their own row, each with their own label of type reactions and entry with RxnDesc (reaction description) in the List of ...
solarchemist's user avatar
1 vote
1 answer
95 views

LuaLaTeX: Numito doesn't print Greek characters in chemformula (chemmacro)

In my migration of my documents from PDFLatex to LuaLatex I came across an odd behaviour of chemgreek when used with the font packages Numito and XITS. When I set the font format in chemformula to \...
alchemist's user avatar
  • 1,761
1 vote
1 answer
51 views

Left align reaction conditions above reaction arrow in chemformula

Is it possible to write two or more left-aligned reaction conditions above or below the arrow in a non-hacky way? The chemformula manual explicitly mentions the case of having a line break in the text ...
tosogoso's user avatar
  • 107
0 votes
2 answers
165 views

How do I align a set of chemical formulae

Here's the image I want to recreate - Here's my attempt at recreating it - \documentclass{12pt}{book} \usepackage{amsmath, amssymb} \usepackage{mhchem} \usepackage{graphicx} \usepackage{tikz} \begin{...
Vedant Rana's user avatar
1 vote
1 answer
71 views

LaTeX chemformula in header

For my thesis, I'd like to add a mchem formula to the title of a chapter. However, I cannot manage LaTeX to print it in bold. Here is the package I am using \documentclass[a4paper,12pt,openright]{...
bcserven's user avatar
4 votes
4 answers
597 views

Is there a way to write a parallel chemical reaction like this one?

Im using the package chemformula, but I can't find a way to write something like this:
Eduardo Romero's user avatar
0 votes
0 answers
106 views

Chemformula giving Missing number, treated as zero error

I've recently installed TeXstudio and MiKteX on a new Windows 11 machine and have been trying to compile some of my old .tex files which uses chemformula: \documentclass[answers, 12pt]{exam} \...
PoH's user avatar
  • 113
2 votes
2 answers
95 views

Breaking lines/linebreaks in chemformula names

In the process of writing an inorganic nomenclature lecture, I would like to put centered multi-line text in the name function of chemformula. As far as I've tried, creating a new line with \\ does ...
v_manz's user avatar
  • 305
2 votes
2 answers
118 views

colored coefficients using package chemformula

For a beamer presentation I want to apply the nice chemformula package. I now wish to have only the coefficients colored individually, for example marking the first coefficient in blue: \ch{\color{...
Markus S's user avatar
1 vote
1 answer
59 views

I can use \refcmpd{a} in \ch{} environment, but not \refcmpd{a.one}?

I'm trying to show a reaction with chemformula involving a compound I've named using chemnum. If I use \cmpd{a} or \refcmpd{a} it works fine. However, if I use a sublabel, such as \refcmpd{a.one} then ...
Canageek's user avatar
  • 18k
4 votes
1 answer
267 views

Chemformula: The negative charges are barely visible

While writing a chemistry document I've noticed that the negative charges in chemformula are barely visible. I've included my whole preambule just in case there's a problem between packages: \...
Piotr Skubis's user avatar
1 vote
1 answer
271 views

Reaction annotation with math using chemformula and chemmacros packages

In the following MWE, I attempt to use the chemformula and chemmacros packages to typeset a reaction annotated with some math. Why does Reaction 1 compile but Reaction 2 does not? \documentclass[...
Andrew's user avatar
  • 1,269
2 votes
2 answers
203 views

Annotating chemical reactions typeset using the chemmacros package's reactions environment

I'm using the reactions environment in the chemmacros package to typeset some chemical reactions. I would like to annotate each reaction with text. Here is my MWE: \documentclass[oneside,11pt]{book} \...
Andrew's user avatar
  • 1,269
1 vote
2 answers
206 views

Enumeration of equation array with only one reference label

I am trying to create an array of chemical equations with the equations enumerated from (1) - (7) aligned left but only one reference enumeration on the right. The enumeration (1) - (7) should be ...
maxgo's user avatar
  • 13
3 votes
1 answer
1k 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
  • 849
5 votes
1 answer
201 views

Unable to set the representation option of the "to" (range-phrase) while using SIrange within a chemformula (chemmacros) command

EDIT (supplement): the behaviour is the same within all use-cases (environment as well as \ch command) provided by the chemmacros package. In a chemmacros reactions environment I tried to switch from ...
Henning's user avatar
  • 63
0 votes
1 answer
79 views

What to do if a new package uses a command I already use as a personal macro?

In my documents, I use \ch as a shorthand for "ch." or "chap." or "chapter" (depending on the desired output style), as in see \ch 3 (output: "see ch. 3" or "see chap. 3" or "see chapter 3"). I would ...
Alex Roberts's user avatar
  • 1,379
1 vote
1 answer
201 views

chemformula radical in pgfplots title

I want to typeset a radical in a pgfplots title using chemmacros or more specifically chemformula. However, chemformula uses tikz to typeset radicals and the pgfplot interferes with the coordinates so ...
slo's user avatar
  • 227
3 votes
2 answers
73 views

Unwanted line height increase with chemformula

I'm getting an unwanted line skip between tabular lines when one of the the lines contains a bond in a \ch formula, e.g. \documentclass{article} \usepackage{chemformula} \lineskiplimit=-1em \begin{...
Jellby's user avatar
  • 3,323
2 votes
2 answers
177 views

Package conflict between chemmacros and Russian [duplicate]

I'm trying to set up my document with chemmacros package and it seems like it has a conflict with babel Here is MWE: \documentclass[12pt, a4paper, final]{extarticle} \usepackage{fontspec} \...
Roman's user avatar
  • 151
2 votes
1 answer
187 views

Using \acs* within \ch (acro + chemformula)

When calling an acronym, it might a) have been used somewhere in the document before or b) be used for the first time. In case b, one would require the acro package to print the long form. Sometimes, ...
tstone-1's user avatar
  • 467
0 votes
1 answer
386 views

Reaction numbering using chemformula [duplicate]

Can anyone please guide me to number the reactions separately from equation numbering, while using chemformula package.
Anant Shirsath's user avatar
1 vote
3 answers
276 views

Cross reference reaction using cleveref in chemformula package

I want to cross-refer a chemical reaction and to write chemical reactions I am using \usepackage{chemformula} to cite I am using \usepackage{cleveref} I want to cross-refer reactions using \cref{...
Anant Shirsath's user avatar
8 votes
1 answer
716 views

Coloring part of an equation in chemmacros

For a chemistry lecture handout, I would like to emphasize specific parts of a chemical equation written with chemmacros with colors; however, I have not been able to use common symbols such as +, -, ...
v_manz's user avatar
  • 305
4 votes
2 answers
1k views

Triple bond inside escaped chemfig formula within chemformula's reaction

I'm trying to include a molecular structure drawn with chemfig inside chemformula's reaction environment by escaping it with "…". It all worked fine until I stumbled upon a structure with a triple ...
andselisk's user avatar
  • 2,675
6 votes
1 answer
159 views

chemformula kröger-vink + pgfplots: Error when using dot notation

\documentclass{scrartcl} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=newest} \usepackage{chemformula} \setchemformula{kroeger-vink} \begin{document} \begin{tikzpicture} ...
Fabian A.'s user avatar
  • 350
2 votes
1 answer
2k views

How to write organic chemical equation of the following form

I need to write this transesterification reaction and give it an equation number. How can I do so?
Ningthoujam Rakesh Singh's user avatar
2 votes
1 answer
186 views

Chemmacros reaction(s) environment doesn't display the first reactant if enclosed in square brackets

When typing reactions starting with coordinating compounds, I noticed that when the first reactant starts with "[" in both reaction and reactions environments the part enclosed in square brackets isn'...
andselisk's user avatar
  • 2,675
2 votes
2 answers
140 views

Nested Chemformula exceeds TeX Capacity

Here is an MWE of the problem at hand: \documentclass{article} \usepackage{chemformula} \begin{document} $\varphi_{\ch{N2}}$%chemformula as index works \ch{C + O2 + N2 -> CO2 + N2}%...
Alex Povel's user avatar
4 votes
1 answer
907 views

Chemformula doesnt display arrows (not using dvips)

I've been trying a simple reaction with chemformula but it doesnt display the arrows. There is a similar problem here but the solution doesn't work for me (I'm not using dvips). Here is a MWE \...
user avatar
1 vote
1 answer
700 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
2 votes
0 answers
53 views

Texstudio version 2.10.12: How to stop \ch autocomplete to \chapter [closed]

I would like texstudio to stop autocompleting my \ch command to \chapter.Can you please suggest what to do ? I have already made the changes suggested in previous posts (image attached) Thanks a lot ...
Rouge's user avatar
  • 219
1 vote
1 answer
901 views

How do I write chemical reaction-diffusion formula in LaTex?

How can I write the following chemical reaction-diffusion formula (see figure) in LaTex? My main objective is, how do I produce the two way arrows with single letters above and below?
Brendan Darrer's user avatar
2 votes
1 answer
773 views

Figure with a caption and formulas

I need to place a figure on the left, and formulas on the right, but I also need to add a caption to the figure. I have a mistake if I add \caption, and wrong location if I add \begin{figure}. How can ...
L.Bond's user avatar
  • 25
2 votes
1 answer
42 views

Superior label in chemfomula's arrow doesn't accept a word after an element

I have to write a simple reaction using chemformula with a double arrow (\ch{<=>}) and a label above the arrow. Here's a MWE: \documentclass{article} \usepackage{chemformula} \begin{document} ...
Riccardo Cazzin's user avatar
0 votes
1 answer
531 views

error update bibliography Unicode char ″ (U+2033) (inputenc)

I have a severe problem with Latex :). Right now I am writing my thesis (Texmaker), and since yesterday an unknown problem occured. If I wanna actualize the bibliography, I get the following error: ...
Marius Knapp's user avatar
4 votes
1 answer
166 views

Automatically resize equilibrium constants in superscripts with chemmacros

Using the chemmacros commands \K... and \p..., equilibrium constants and p functions don't get resized when written as superscripts. For instance, \documentclass{article} \usepackage{chemmacros} \...
Arch Stanton's user avatar
  • 1,507
2 votes
0 answers
106 views

Conflict between package chemformula and cellspace? [closed]

When the package chemformula is used I can't have a vertical space between the line and text as cellspace should do. If I don't use chemformula there is no problem. Because I also use siunitx in the ...
Mathilde's user avatar
1 vote
1 answer
65 views

Chemical formula inside pgfplot rendered wrong---labels overlap

Under normal circumstances \ch{AB_2} is rendered as $AB_2$, but not inside the pgfplot. I am getting the error message Package PGF Math Error: Could not parse input '' as a floating point number and ...
yarchik's user avatar
  • 272
3 votes
1 answer
476 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[...
andselisk's user avatar
  • 2,675
2 votes
2 answers
605 views

chemformula and common organic chemistry groups

What would be the proper (and efficient) way to type common organic groups/radicals/substituents like i-Pr, n-Bu or t-Bu with chemformula (the main concern is the prefixes)? So far I tried the ...
andselisk's user avatar
  • 2,675
2 votes
1 answer
345 views

How to adjust the parentheses size in acro package?

I'm using the acro package for my acronyms. Some of these acronyms are mathematics and chemical formulas. The acro package put the acronym in the text using first the long form and then, between ...
Daniel Valencia C.'s user avatar
4 votes
1 answer
307 views

Label containing siunitx syntax below an arrow in chemformula gives an error

When using the following code everything works just fine: \documentclass{article} \usepackage{siunitx} \usepackage[modules=all]{chemmacros} \begin{document} \ch{!(colorless)( VO3- ) ->[\SI{-0....
andselisk's user avatar
  • 2,675
3 votes
2 answers
379 views

How can I write bond labels with chemformula?

I want to reproduce this scheme in P. J. Flory's first book, p. 319: for which I need to typeset labels under the bonds. I tried to make bonds accept labels like arrows do, first with the pretty ...
Arch Stanton's user avatar
  • 1,507