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
5
votes
0answers
201 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
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
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: \...
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} ...
2
votes
1answer
30 views

Change scheme label in chemmacros

I need to change the labelling for my floats (Page numbers/sections/figures/tables/schemes) into Figure S1, Table S1, Scheme S1, ... (for Supporting Infortmation of a journal). For Figures and Tables,...
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 ...
0
votes
1answer
79 views

How to put a positive sign with thermodynamics module

I want to put a positive sign "+" in front of a positive number with units in thermodynamics module of chemmacros. So I made the following LaTeX cord related to this with tuning siunitx: \usepackage{...
1
vote
2answers
75 views

Chemmacros write next to reaction

I am using the chemmacros package and I would like to know if it's possible to write next to a reaction, for example, like this: Or maybe with the help of other package. \documentclass[12pt,a4paper]{...
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 ...
1
vote
1answer
42 views

Moving labels for chemfigs

How do I modify or adjust the vertical and horizontal alignment of the labels? If I add spaces before or after the desired label, I can make a horizontal adjustment. But, I can't figure out the ...
1
vote
1answer
34 views

Italic letters in iupac module of chemmacros don't work in acronym definition using glossaries

I am trying to make an acronym list for my dissertation, and I am using the iupac module of the chemmacros package to do so. I use the single letter commands to type the italics because it is easier ...
0
votes
1answer
32 views

How to get a Scheme from chemmacros floats inside a section?

currently I'm struggeling with a weird Problem. I use the chemmacros package to provide the \scheme float enviroment for my chemical schemes. Then I use \FloatBarrier to prevent them from floating ...
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
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} \...
1
vote
1answer
116 views

ChemFig: Numbering each step in (defined) scheme environment

Before asking my question I have several related issues concerning chemfig and chemmacros packages. While defining a new scheme environment (link) for chemfig, I keep having Errors if I have ...
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'...
0
votes
1answer
51 views

Issues loading and using chemmacros

I need to draw a few molecular hybrid orbitals and I'm going to use chemmacros. I've been reading about compatibility issues existing with this package, but I cannot get it loaded in anyway. Using ...
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 \...
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 ...
3
votes
1answer
95 views

How to put atom on top in chemfig and change position of arrow

I have provided two starting points to solve my problem: Option 1 I am trying to move the arrow head to a higher point (somewhere in the middle of the upper love of the p orbital) and make the boron ...
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 ...
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 \...
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 ...
3
votes
1answer
60 views

Renewing Latin Phrases in chemmacros does not work

I am trying to redefine a Latin phrase from the chemmacros package. When I try to use \RenewChemLatin{\insitu}{in-situ}, the log prints !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! chemmacros ...
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 ...
2
votes
1answer
46 views

Bookmarks with Unprocessed Commands from chemnum and chemmacros

In my document, I have sections that contain chemmacros \iupac{} command with shorthands provided by chemmacros | as well as my own shorthand =. For some reason, these shorthands are printed in the ...
1
vote
0answers
26 views

Loading chemmacros with check-declarations option set for expl3 raises compile error [closed]

Loading chemmacros raises compile error ! LaTeX error: "kernel/non-declared-variable"!! if expl3 is loaded with the [check-declarations] option. \documentclass{article} % RN. 8 August 2018 %=======...
1
vote
1answer
59 views

chemmacros extra space after \state

I am using the chemmacros package and the \state[subscript-left=r]{H} command. It does produce the standard enthalpy of reaction symbol perfectly, however when used inline in a sentence there is an ...
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 \...
3
votes
2answers
213 views

chemfig/chemmacros: Vertical alignment of polymer brackets

Is there a way to adjust the horizontal alignment of the polymer brackets of the chemmacros package? It's just a little, unimportant detail, but I am curious. MWE: \documentclass{scrreprt} \...
2
votes
1answer
182 views

chemfig/chemmacros: Line thickness of polymer brackets

It seems that polymer brackets designed by chemmacros produce slightly thicker lines than the rest of the formula from chemfig. Is there a way to get polymer brackets with same line width as in the ...
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
4answers
99 views

chemmacros reactions counter in report/book

Is it somehow possible to add the chapter number to the reaction counter of chemmacros and to reset it if chapter increases? In equation and figure etc. the chapter is added before the counter, like 1....
2
votes
1answer
131 views

How to make the “frequency” bold in \NMR command of the chemmacros package?

I am using the \NMR command of the chemmacros package. The format is bold. But as you see in the picture, the frequency "500 MHz" is not bold. \documentclass{scrreprt} \usepackage{chemmacros} \...
1
vote
1answer
172 views

chemmacros: setting up \sisetup only once for all experimental environments

I am using the experimental environment of chemmacros spectroscopy module. Right now I am running \sisetup{} for every instance of the environment and was now wondering if there is a way to circumvent ...
2
votes
1answer
151 views

Polymer braces with diagonal bonds

I searched the questions around here but I can`t find an answer to my problem. I´m trying to draw a polymer with \chemfig and everything works but the braces, specially the right one. I´m using this ...
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 ...
0
votes
0answers
88 views

AUCTeX doesn't find errors with chemmacros and tables

When I run the following code, if I type C-c C-backtick after being notified of the presence of errors, AUCTeX says no more errors and it doesn't point me to the & in excess. The log file shows ...
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 ...
1
vote
1answer
226 views

Error when compiling pdf - problem with chemmacros

It appears that chemmacros is uninstalled or something strange. When run this minimal example: \documentclass[12pt,twoside ]{report} \usepackage[headheight=18pt,a4paper, width=150mm, top=25mm, ...
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....
2
votes
1answer
147 views

Use of glossaries inside mhchem and chemformula

I noticed that when I use glossaries package with mhchem (inside \ce{...}), the abbreviation is always italicized (which is undesired), whereas with chemformula everything works as expected (\ch{...})....
2
votes
1answer
256 views

Change numbering of chemical equations - chemmacros

I am using chemmacros to write chemical reactions, and want to change the way they are numbered from {1},{2},{3}.. to [R1],[R2],[R3]. I have tried what is on the package (page 43) but it doesn't ...
3
votes
1answer
112 views

Chemical reaction as a graphical object and chemmacros

I would like to include a picture of a reaction (png/pdf) inside chemmacros's reactions environment (also alongside with other reaction schemes) in order to keep up with the rest of reactions' numbers....
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}...
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 ...
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} + \...
1
vote
0answers
73 views

Chemmacros reactions environment compile error [duplicate]

The package chemmacros will throw the following error when I try to use the reaction or reactions environments. It does not happen when I use the starred variants. I am using MacTeX-2017 and am (...
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 ...