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

Questions tagged [chemmacros]

Offers a collection of macros and commands which are intended to make typesetting chemistry documents more convenient. This includes the typesetting of IUPAC names, charge symbols, phase descriptors, upright Greek letters and more.

Filter by
Sorted by
Tagged with
8
votes
1answer
686 views

How can I reproduce the chemmacros logo style?

I'd like to reproduce the chemmacros logo style, as seen in chemmacros documentation I checked the source .tex file, but the logo is loaded from another pdf "chemmacros-logo.pdf" that is nowhere to ...
8
votes
1answer
253 views

How to invert Atom positioning in chemmacros?

For my Thesis I use the chemmacros Package to typeset my analysis. Unfortunatetly it is common in our group to have a different position when talking about H and C-NMRs. At the moment I have the ...
8
votes
1answer
1k views

externalize pgfplots, and only pgfplots

I would like to externalize the plots in my document (using pgplots), but not other inline stuff, such as bonds automatically drawn by chemmacros. That is, in the following test document: \...
7
votes
2answers
135 views

How to write mathematical equations above and below double harpoons in chemical equations?

I'm trying to write a chemical equation with k_f and k_b (in math mode) above and below a double harpoon, respectively. I wrote the following code, which uses the chemmacros package: \begin{equation} ...
7
votes
3answers
114 views

Chemmacros scheme translation

I'm trying to translate the word "Scheme" in the captions of chemmacros schemes. I'm writing in spanish, so I want to change "Scheme 1" to "Esquema 1", for example. I don't know if I'm not ...
7
votes
2answers
582 views

Spanish babel and chemformula package

I need to write a chemical reaction. I use to make this with mhchem, but I discover chemformula. All it is right but no the arrows when I use the package babel in spanish. There are a problem with ...
7
votes
1answer
430 views

achemso + chemmacros incompatibility

The combination of the achemso and chemmacros package used to work, but now I've upgraded to Ubuntu 14.04 (TeXLive 2013, I believe) and I get the following: \documentclass{achemso} \usepackage{...
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 ...
6
votes
2answers
130 views

How do I insert a non-breaking hyphen into an \iupac name?

IUPAC by default linebreaks at hyphens. From the chemmacros v5.8b manual: The character - inserts a small space before the hyphen and removes a small space after it. Also usually words with ...
6
votes
1answer
175 views

chemformula: escaped input isn't treated as such

When using 'foo' or "foo" in order to provide chemformula with input which shouldn't be treated as part of a chemical formula within \ch{}, numbers are still being typeset subscript. The code \...
6
votes
1answer
115 views

Fail to pass arguments to orbital module of chemmacros when used inside chemfig

While illustrating atomic orbitals for 1,3-butadiene guided by examples in chemmacros' manual, I receive the following error: Argument of \orbital has an extra }. } MWE: \documentclass{article} \...
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 ...
6
votes
2answers
52 views

\listofschemes from chemmacros not working with KOMA script commands

I want to change the appearance of my listoffigures, listoftables, and listofschemes with KOMA script commands. I use the scheme environment from the chemmacros package. Here is my MWE: \...
6
votes
1answer
131 views

chemmacros: Using \mbox{} within \iupac{} leads to @x in running title

I am using chemmacros in my thesis and have the following problem: When using \mbox{} within \iupac{} in a \section{} or \subsection{} it leads to "@x " being printed in the running title. Also, the ...
6
votes
1answer
144 views

Orbital shift when i use atoms near it

I'm drawing some orbitals and I noticed that when I have an atom near the orbital, the orbital shifts down a little (it's very ugly). This happens only if I put the hydrogen at the beginning of the ...
6
votes
1answer
681 views

How to draw NO2 in LaTeX?

It would be nice if you could help me to draw NO2 in LaTeX. The figure should look like the example image. On this website is some information about the chemfig/chemmakro package. My code untill now ...
6
votes
1answer
219 views

Errors thrown when using (custom) thermodynamic states in chemmacros's reactions environment

An argument error is thrown when I attempt to use thermodynamic states (as well as custom state variables via \DeclareChemState) in chemmacros's reactions environment. The MWE provided at the end of ...
5
votes
2answers
115 views

Customizing ref of reaction environment

I am using the reaction environment from the chemmacros package to typeset a few, simple chemical reactions. I would like to customize the way I am referencing to my reaction. Ideally, the whole ...
5
votes
2answers
60 views

How to use \xspace with chemmacros Latin phrases

I would like to add \xspace to the Latin phrases of the chemmacros package because I don't want to use \ or {} at the end of commands without arguments. However, when I try to define a new Latin ...
5
votes
1answer
601 views

change fontshape for lewis dot in chemfig chemmacro

I wish to draw a chemical reaction showing a radical chain reaction. I am using chemfig and chemmacros and beamer. beamer uses sans serif fonts which is good for display and less fussy. When I write ...
5
votes
1answer
934 views

Formatting redox reactions with chemmacros and mhchem; arrows aren't drawn correctly

I'm using the chemmacros package to format redox reactions using its redox module to get the nice arrows that indicate which atoms are changing oxidation state as illustrated in the package manual. I ...
5
votes
1answer
814 views

chemmacros reaction environment align

Take the following example \documentclass{article} \usepackage{chemmacros} \begin{document} \begin{reactions*} NH3 + H2O &<=> NH4+ + OH-\\ Fe^3+ + 3 OH- &-> Fe(OH)3\\ 2 Fe(OH)3 &...
5
votes
1answer
621 views

How do I show decoupled NMR spectra in chemmacros?

the chemmacros has some lovely codes for listing NMR data: \NMR{31,P} for example, and the whole experimental environment. However, I do a lot of decoupled NMR work, which would be listed as (31P ...
5
votes
0answers
171 views

Problem with chemmacros, beamer and filehook-scrlfile.sty

I am using chemmacros with beamer and it produces the following error 2017/08/28 basic chemmacros module (/usr/local/texlive/2019/texmf-dist/tex/latex/koma-script/scrlfile.sty Package: scrlfile ...
4
votes
3answers
667 views

Annotate stoichiometric numbers below chemical reaction

I use the chemmacros packages to write chemical reactions in LaTeX, like this: \ch{CH4 + 2 O2 -> CO2 + 2 H2O} But now, I want to annotate the stoichiometric numbers below chemical reaction, as ...
4
votes
1answer
1k views

chemmacros reaction environment and cleveref reference

I have a problem with the automatic reference by cleveref and the chemmacros package. When i refer to a reaction with cleveref, then cleveref types "eq. (1)" because chemmacros use the equation ...
4
votes
2answers
84 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 ...
4
votes
1answer
151 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....
4
votes
2answers
140 views

\chemgreek + \fontspec + Lucida.otf = missing greek characters

I am using LuaLaTeX with an Open-Type version of the Lucida font (from tug.com) along with \chemmacros with the latest version of TeXLive 2017. I think, that I have set up everything correctly but \...
4
votes
1answer
112 views

spectroscopy: \#{} without non-breaking space

When using \#{} in the experimental environment of chemmacros it gives the number followed by the nucleus, but they are separated by a regular space, instead of a non-breaking space. I don't know if ...
4
votes
1answer
379 views

Chemmacros: Undefined control sequence. \end

When I try to create a reaction from chemmacros/reactions I got the following error. I dunno what I am missing. Please help. Thank you. line 11: Undefined control sequence. \end line 11: Missing ...
4
votes
1answer
152 views

Some Greek characters are not displayed with chemgreek + fontspec + TeX Gyre fonts

Some Greek characters are not printed with chemgreek package when I use TeX Gyre fonts. Test code: \documentclass{article} \usepackage{fontspec} \newfontfamily\termes{texgyretermes-regular.otf} \...
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. ...
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
1k views

Drawing chemical structure - newman projections

I'm trying to create a figure showing some different possible chemical structures of the butane molecule in the form of the right most diagrams in the below image and I'd like to know the best way to ...
4
votes
1answer
171 views

Change arrow style in chemmacros 5.1

How can I change the arrowstyle etc.? The code below used to work pre v5.0. I've searched around the manual and the net a bit, but didn't really find something useful. Is it even possible in v5.1? ...
4
votes
1answer
334 views

chemmacros and dots

I am trying to write chemical equation with \usepackage{chemmacros} but I have a problem. I want something like that $...Al + Fe_2O_3 \longrightarrow ...Fe + Al_2O_3$ The dots are for my students. ...
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} \...
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}...
4
votes
1answer
46 views

Chemmacros - Multiple Values as coupling constant

I'm using the chemmacros package for my thesis in chemistry. Now I want to write down NMR data. My peak is a double-double-duplett I have therefore 3 coupling constants. I use \NMRand \J in the \...
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 \...
4
votes
2answers
121 views

chemmacros: Space in Compound name with \iupac

In the following example there is no space before "chloride" as intended. However, when i remove the oxidation number "(III)", the space is there as it should be. Why is that and how can i force a ...
4
votes
1answer
93 views

Color changes of orbitals in chemmacros

I'm trying to change the colors of these orbitals. So instead of the clear and blue color, I want them to be red and blue only. I tried changing the setup color, but just becomes red and clear or blue ...
4
votes
1answer
133 views

Chemmacros errors

So I can get this to work; \documentclass{minimal} \usepackage{isotope} \begin{document} \isotope{Po} --- \isotope[56]{Fe} --- \isotope[13][6]{C}\\ $\isotope{n} + \isotope{H} \to \isotope{D} + \...
4
votes
1answer
403 views

Numbering of chemmacros reaction change to same numbering as equation

Is there an option of chemmacros to change the numbering of the reaction environment to the same numbering as the equation environment? It looks a bit confusing if an equation follows a reaction ...
4
votes
1answer
70 views

Czech babel and chemmacros clash - reaction arrow not displayed

Clash between czech babel and chemacros in displaying reaction arrows, resulting in chemformula error: "unknown-arrow" The arrow type <-> doesn't exist on line 19. If czech babel is switched ...
3
votes
2answers
518 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 ...
3
votes
1answer
419 views

Using \iupac{\D} or \D in a \paragraph{} environment

How can I use the \D or \iupac{\D} command from chemmacros package in a \paragraph environment? The result I get is a lower case d instead of the D- for the Fischer stereo descriptor. \documentclass[...
3
votes
1answer
525 views

chemical reactions

I would like to reproduce the same as this picture using the chemfig package: \documentclass[french,12pt,oneside,openright]{memoir} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{...
3
votes
2answers
71 views

Chemmacros arrow in Tikz node

I want to use Chemmacros inside a tikz node but the arrow of the reaction is disturbed by the line before the node. My example work fine if I use mhchem (\ce{A -> B}) instead of chemmacros. My MWE ...