The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
2answers
85 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
107 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
214 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
59 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
91 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
233 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
162 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
41 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 ...
0
votes
1answer
192 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
42 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
24 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
99 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
72 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
71 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
54 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
218 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
184 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
179 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
152 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
99 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
264 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
189 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}...
2
votes
1answer
541 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
153 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
289 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
38 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
311 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
89 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
125 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
326 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
143 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
584 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
519 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 ...
4
votes
1answer
151 views

How to turn off “bonds” in chemmacros\chemformula?

In chemmacros/chemformula a hyphen is replaced with a bond, and you have to put hyphens in quotes. I don't use the bond feature, as I use this to write out papers, rather then educational materials. ...
2
votes
1answer
170 views

Odd behaviour with chemformula, hyphens, commas and periods.

I'm trying to write out a formula, and I'm having trouble getting it to work in chemmacros What I want is 2,2'-bpy, with a prime and a hyphen. What I get is 2.2"-"bpy, with a period and quotes ...
1
vote
0answers
79 views

How to correctly format hydrates with chemformula? [duplicate]

Chemformula has a quite convenient . command to put in adduct. However, if I were to put in something like \ch{UO2(NO3).6H2O} I get the 6 as a subscript. If I put in 2 spaces (\ch{UO2(NO3). 6 H2O}) I ...
4
votes
2answers
61 views

Use \hapto with no hyphen after it for one .bib entry

I'm using achemso, chemmacros, and chemformula to format a paper. I've written the whole document using the coord-use-hyphen = true option from chemmacros. However, now I hit a paper that that doesn't ...
4
votes
1answer
240 views

Using Eulervm font with chemformula package

I want to see how various chemical equations look using the euler or eulervm font, but I can't seem to figure out how to do it (or if it's even possible). The documentation for chemformula indicates ...
6
votes
1answer
743 views

chemmacros: hydrates according to IUPAC

i have a problem with the output of additon compound according to IUPAC: Compounds like CuSO4*5H2O should not have a space between the dot and the formulae (see IUPAC red book IR-5.6 page 81). How can ...
1
vote
2answers
499 views

Subscript in molecule over reaction arrow

I am writing a report that requires chemical reactions to be numbered and have used the following code to do so: \documentclass[12pt,a4paper]{article} \usepackage{amsmath} \usepackage{chemformula} \...
3
votes
1answer
348 views

chemformula: No auto-completion in TeXstudio?

I have trouble getting auto-completion to work with chemformula in TeXstudio. I have other packages working just fine. The .cwl-file is showing up in "Options > Configure TeXstudio > Completion", ...
7
votes
1answer
371 views

How do I insert an optional line break into a chemical forumula using the chemformula package?

When using the \iupac command from chemmacros I can do something like \ch{1,2\-dimethyl|really|long|name} so that LaTeX knows it can split the name up, and where. However, when I have a really long ...