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
0
votes
1answer
57 views

Chemmacros breaks auto-pst-pdf

this is my first time here but I will try to do my best. My document stopped compiling and I was able to boil it down to the following MWE. Basically I need chemnum (and therefore auto-pst-pdf) to ...
0
votes
0answers
35 views

How do you draw a condensed molecular structure with multiple side chains?

So I am trying to draw the molecule in the picture, but when I tried, it made weird spaces in between the parts not in chemfig. How can I do it entirely on chemfig? MWE: \usetikzlibrary{arrows.meta,...
1
vote
1answer
37 views

How to create subschemes using chemmacros and list subcaptions in table of schemes?

The chemmacros package offers the scheme module which creates a figure-like environment Scheme and also creates a List of Schemes which can be produced by simply issuing \listofschemes. Fantastic! Now,...
5
votes
1answer
59 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
42 views

auto-pst-pdf package in combination with textpos and chemmacros

I seem to have problems with the auto-pst-pdf package, chemmacros package and the textpos package. \documentclass{scrbook} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx}...
2
votes
1answer
46 views

List of reactions within chapter

Using the chemmacros package, deploying the \listofreactions within a chapter preamble does not appear to have any effect. I would like to present a list of only those reactions appearing within the ...
1
vote
1answer
46 views

Including Graphics in reaction Environment

I want to include graphics from chemdraw etc. (i.e. .eps) within a reaction env of the chemmacros package. With this i I hope to achive usage of the same counter, labeling etc. used in the reaction ...
2
votes
1answer
50 views

standalone and chemmacros

I am using chemmacros to write REDOX chemical reactions. I tried using "standalone" to create a file the size of the equation, but it didn't work. how to solve this problem? \documentclass[border=...
1
vote
1answer
39 views

Modifying chemmacros arrow labels

How can I recreate the following image? I tried using the chemmacros package, but it doesn't seem to work all the way. Please let me know. \documentclass[tikz,border=3mm]{article} \usepackage{tikz} \...
0
votes
1answer
81 views

Moving lone pairs horizontally or vertically

I'm trying to draw a Lewis structure with a lone pair, but when I typeset, the lone pair is not centered. How do I freely move it slightly up or move it horizontally? Please let me know. \...
1
vote
1answer
105 views

How to change the color of the oxidation numbers in chemmacros?

I would like to change the color of the oxidation numbers in some reactions like: \documentclass{article} \usepackage{chemformula} \usepackage{chemmacros} \usepackage[spanish]{babel} \usepackage[...
1
vote
1answer
46 views

How to cross-reference reactions in chemmacros/chapter?

I changed the labeling format that also the chapter number is included (R 0.1). When I cross reference to the reaction only the number (1) and not the whole label with chapter number is used. How can ...
1
vote
1answer
68 views

Misunderstanding reactions environment of chemmacros v. 5.10

I wanted to give my answer to this question How to align chemical reactions in multiple environments? with the environment reactions into the manual of chemmacros. I think always that my low level ...
0
votes
0answers
15 views

reaction numbering with chapter numbers chemmacro [duplicate]

I am trying to use the reaction environment from chemmacro. How to get the numbers with chapter number like for equation numbers (e.g 1.1, 2.1 and so on) \chapter{The First Chapter} \begin{reaction} ...
2
votes
2answers
63 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} \...
4
votes
1answer
75 views

chemmacros \iupac command breaks in achemso's \title

I'm getting an error when using \iupac inside \title with the achemso class: \documentclass{achemso} \usepackage{chemmacros} \title{Study of \iupac{1,2-di|methyl|benzene}} \begin{document} \...
2
votes
1answer
78 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, ...
1
vote
1answer
171 views

Capitalize first letter of an acronym (acronym package)

I am using the acronym package to manage my abbreviations. An older contribution from TeX.SE offered a working solution to capitalize the first character of the abbreviation when using \Ac instead of \...
3
votes
1answer
63 views

how to prefix the section number to the “reaction” number?

I'm using the chemmacros package, its reactions environment, and the article document class: \documentclass[a4paper, 12pt]{article} \usepackage{amsmath, amsthm, amssymb, mathtools} \usepackage{...
7
votes
1answer
188 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 +, -, ...
19
votes
3answers
4k 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
302 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
98 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
280 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
48 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
181 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
115 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{...
2
votes
2answers
100 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
146 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
63 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
55 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 ...
1
vote
1answer
69 views

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

Currently I'm struggling 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
157 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
166 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
213 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
76 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
101 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
72 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
163 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
184 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
88 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
482 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
88 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
82 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
110 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 ...
3
votes
1answer
61 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
104 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
184 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
268 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} \...