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
1
vote
1answer
24 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 ...
1
vote
1answer
41 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{...
1
vote
1answer
23 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 ...
4
votes
1answer
85 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: \...
1
vote
1answer
70 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[...
2
votes
2answers
58 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} \...
1
vote
2answers
51 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 ...
1
vote
1answer
239 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 ...
5
votes
1answer
130 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 ...
0
votes
1answer
71 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 ...
1
vote
1answer
104 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 ...
3
votes
2answers
66 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{...
2
votes
2answers
98 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} \...
2
votes
1answer
104 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, ...
0
votes
1answer
241 views

Reaction numbering using chemformula [duplicate]

Can anyone please guide me to number the reactions separately from equation numbering, while using chemformula package.
1
vote
3answers
148 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{...
8
votes
1answer
410 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 +, -, ...
4
votes
2answers
657 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 ...
6
votes
1answer
141 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} ...
2
votes
1answer
813 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?
2
votes
1answer
105 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'...
2
votes
2answers
118 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}%...
4
votes
1answer
679 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 \...
1
vote
1answer
350 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 ...
2
votes
0answers
43 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 ...
1
vote
1answer
555 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?
2
votes
1answer
294 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 ...
2
votes
1answer
32 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} ...
0
votes
1answer
253 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: ...
4
votes
1answer
95 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} \...
2
votes
0answers
98 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 ...
1
vote
1answer
59 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 ...
3
votes
1answer
331 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
2answers
375 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 ...
2
votes
1answer
252 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 ...
4
votes
1answer
215 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....
3
votes
2answers
221 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 ...
3
votes
2answers
587 views

chemformula: reaction arrows not displayed

lately I've been having trouble with chemical equations in the reaction-environment. To be specific, neither reaction arrows nor hyphens are displayed after compiling the pdf. Instead, a blank space ...
4
votes
1answer
287 views

Non-stoichiometric equations using chemformula (chemmacros)

Upon trying to do this non-stoichiometric reaction using chemmacros; \documentclass[a4paper,12pt]{article} \usepackage{chemmacros} \chemsetup{modules=all} \usepackage{chemgreek} \usepackage{siunitx}...
4
votes
1answer
1k views

Problem with chemistry packages

I have been using \usepackage{mhchem} to write chemical equations. Now I want to use also \usepackage{chemformula}. But when I use the second package it appears that LaTeX doesn't understand the ...
3
votes
1answer
217 views

Enable hyphenation only for chemmacros

I am writing my thesis with XeLaTex. Since hyphenation is uncommon/discouraged in our theses I switched it off by using the hyphenat package. Unfortunately, this also prevents line breaks in very long ...
6
votes
2answers
607 views

Math mode in chemformula

How do i use math mode in chemformula? The first example works, including the sub- and superscript. In the second example the subscripts don't work. \documentclass[12pt,a4paper]{scrartcl} \usepackage{...
2
votes
0answers
67 views

Overful hbox with chemformula

Chemical formulae often give overful hboxes. How do I prevent that, and I mean something more automatic than just adding a \linebreak everywhere where this is an issue? Should not Latex put a box (...
2
votes
2answers
678 views

Writing an equation without italic font - chemistry packages

I am dealing with two issues: First i need to write chemistry expressions like the one shown below not with italic but with upright font. Second i want to know if there is any useful chemistry ...
1
vote
1answer
140 views

chemformula bug with additional braces in sub- / superscript

I get a strange bug when using additional braces in sub- or superscript inside a \ch{}. The following minimal example \documentclass{standalone} \usepackage{chemformula} \begin{document} \ch{Cl^{n+1}...
1
vote
1answer
198 views

Shifting Arrows Down in Chemformula

I would like to shift the arrow and the CO down so that it is more to the middle of the structure on the left. I am not sure how to shift arrows in the chemformula package. My code so far: \...
1
vote
1answer
442 views

Line breaks in chemical formula using chemformula

I keep getting line breaks in the middle of the chemical formula NH415NO3. If NH415NO3 comes at the end of a line, sometimes NH4 and 15NO3 are split onto different lines, and the 15 is place before ...
0
votes
1answer
183 views

How to keep chemical formulas on the same line using chemmacros? [duplicate]

I often refer to some chemicals often in my document (e.g. NH415NO3) and I keep getting line breaks in the middle of the chemical formula (e.g. if NH415NO3 comes at the end of a line, sometimes NH4 ...
2
votes
1answer
1k views

How to make some chemformula bonds bold?

I'm making an IR wavenumber table. One of the bonds is the C-H of an alkyne, and I want to emphasize the C-H bond only. I tried to make just the C-H bond bold, keeping the triple bond untouched. There'...
3
votes
2answers
1k views

Maths mode with chemmacros

I am a beginner with chemmacros and I have a problem during the compilation when I want to use greek letters inside the \ch{} command. Here is an example: \ch{\Delta E=h.\nu} A solution is to write ...