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
1 answer
28 views

Top aligning chemmacros pictures

How can I top align these two chemmacros pictures? I tried with tabular, but maybe I forgot something \documentclass[12pt]{article} \usepackage{chemmacros} \chemsetup{formula=mhchem,modules=newman} % ...
user3713179's user avatar
4 votes
1 answer
78 views

Chinese bracket cause "chemmacros" work wrong?

The \ch command works well in chemmacros package, but if there is Chinese bracket after the \ch command there is distortion of the symbol before that. Adding a space between them can solve it, but ...
Y. zeng's user avatar
  • 1,801
-3 votes
1 answer
111 views

How can I draw like this picture? [closed]

I can not make code for this picture.
Ghassan Hamad's user avatar
2 votes
1 answer
131 views

Two oxidation numbers above one element

I'm new to LaTeX and I have a problem. My code right now is: \documentclass[11pt,a4paper]{scrartcl} \usepackage[singlelinecheck=false]{caption} \usepackage{times} \usepackage{tabularx} \newcolumntype{...
Henss's user avatar
  • 25
1 vote
1 answer
58 views

Half-cell reactions and sum reaction below horizontal rule with chemmacros?

I would like to write two half-cell equations (reduction and oxidation) each on their own row, each with their own label of type reactions and entry with RxnDesc (reaction description) in the List of ...
solarchemist's user avatar
1 vote
1 answer
65 views

Chemmacros - redox module: cannot get the manual example to work

This is very likely a very dumb question. Please embarrass me. :-) I enjoy using the chemmacros package tremendously. But I just don't seem to be able to get the \redox module work for me. The PDF ...
Franxon's user avatar
  • 11
0 votes
1 answer
64 views

Write two subscript on the thermodynamic functions

In the thermodynamic module of \chemmacro, I would like to be able to define two subscript one on the left of the function and the other on the right as in the image below I try \documentclass{...
Nicolas's user avatar
  • 1,023
0 votes
0 answers
53 views

Finetuning positions in Newman projections using TikZ pics option

In previous questions Nicholas asked about the possibilities to change the angles of the substituents in a Newman projection using the newman module of the chemmacros package (See here and here). In ...
alchemist's user avatar
  • 1,761
0 votes
1 answer
90 views

Change angle in the Newman projection

I would like to be able to modify the angular position of the foreground atoms in the Newman projection: in the documentation, I only saw the modification of the angle for the carbon of the second ...
Nicolas's user avatar
  • 1,023
0 votes
0 answers
43 views

How to change default subscript drop value in unicode-math / fontspec?

In switching from PDFLaTeX and typeface to XeLaTeX and fontspec I encountered a difference in which subscripts are placed with respect to the baseline. This seems to be an older issue given the ...
alchemist's user avatar
  • 1,761
3 votes
2 answers
111 views

Fitting oxidation numbers above elements without overlapping

I want to make oxidation numbers above an element but the numbers keep overlapping in my case. I am searching for a practical solution. Maybe it would help if I managed to make the operator (- and +) ...
Juch's user avatar
  • 31
2 votes
1 answer
111 views

Amstext (chemmacros) causes problems in selecting math fonts in chemfig

As the package typeface causes fatal error after the LaTeX core updates I have to use the common \usepackage{font} to load my favourite set of fonts (see question Typeface returns fatal coding errors ...
alchemist's user avatar
  • 1,761
1 vote
0 answers
25 views

Labeling and refrencing chemistry equations with oxidation

Im working with some chemistry where oxidation numbers are displayed in reactions im having a hard time getting the reactions labeled with a number i can then refrence later I'm using chemmacros and ...
vie's user avatar
  • 11
3 votes
1 answer
124 views

\chemdelta not works with ctex in LaTeX

I find when I compile with ctex package in LaTeX, the \chemdelta is missing. For example: The code is: \documentclass{book} \usepackage{chemmacros,ctex} \begin{document} \tableofcontents \chapter{\...
Y. zeng's user avatar
  • 1,801
1 vote
1 answer
96 views

How to insert pH with chemmacros in LaTeX?

I see there is a way to insert pH with chemmacros in LaTeX. On the page 6 of chemmacros But my code reminds me that ! Undefined control sequence. l.5 pH \ph \documentclass{article} \usepackage{...
Y. zeng's user avatar
  • 1,801
-1 votes
1 answer
158 views

How do I write oxidation numbers using chemmacros in mathjax? [closed]

I saw this post and went to chemmacros. I'm unable to use the chemmacros package to write oxidation numbers. I wrote the following, but I can't render oxidation numbers in mathjax in chemistry stack ...
Sam Harris's user avatar
-1 votes
1 answer
574 views

Overleaf works fine/ TexStudio doesn't: Getting ghsystem/chemmacros to work in TeXStudio [duplicate]

So due to an abundance of projects and needing a folder structure, I am finally migrating from overleaf. I had this project working fine in overleaf and managed to get as far as to find out that some ...
curies's user avatar
  • 199
1 vote
1 answer
97 views

Chemmacros error: "Extra alignment tab has been changed to \cr..."

When I load chemmacros I get the following error message (I don't understand it...): ! Extra alignment tab has been changed to \cr. <template> ...egin \relax \d@llarend \endtemplate ...
Yumina 弓那 Nirvalen's user avatar
3 votes
1 answer
641 views

Undefined control sequence (\chemmacros_load_module:n {nomenclature})

is there currently a problem with the chemmacros package? I've just come back to my thesis to make corrections but I'm getting this new random error when I hadn't seemingly changed anything since the ...
Will Vickery's user avatar
2 votes
2 answers
61 views

Bracket overlap with chemmacros

I'm trying to position the brackets such that there is no overlap, while ideally aligning their vertical positions. The solutions here don't seem to help much. Also is there a way to move the ...
AndyC's user avatar
  • 75
5 votes
1 answer
327 views

TeX Live 2021, memoir, chemmacros and float conflict

I recently updated all TeX Live 2021 packages to their newest versions and after that documents that use memoir, chemmacros and float no longer work. Here is a minimal example to reproduce the problem:...
ttsc's user avatar
  • 351
0 votes
1 answer
212 views

How to draw the following Bohr's Atomic Model in LaTeX?

I'm a new user in LaTeX. I want to draw Bohr's Atomic Models like the following picture. Can someone please help me?
Aung Yadanar Oo's user avatar
2 votes
2 answers
145 views

How to break reaction equation in twocolumn document? (chemmacros)

I have to write my lab report in a paper-like style where we are forced to use twocolumn style. I had a look around and found the multicols package does a good job at this because there are a few ...
Martin Dagleish's user avatar
1 vote
0 answers
131 views

Chemmacros Orbital Broken

Currently using the latest versions of all TeX packages. However, the orbital module of chemmacros is broken, as shown in the screenshot. Why is this happening? This bug can be reproduced using the ...
William's user avatar
  • 11
4 votes
1 answer
72 views

Chemmacros error assigning labels

\documentclass[german=false,thesistype=master, nolistoffigures, nolistoftables]{tubsthesis} \usepackage{booktabs} \usepackage{colortbl} \usepackage[nottoc]{tocbibind} \...
Johanna Hoppe's user avatar
3 votes
1 answer
388 views

Chemmacros: Redox reaction within align environment

I am currently writing an experimental protocol with overleaf and want to include a redox reaction and both half equations. They should be numbered as 1.1, 1.2 and 1.3, so I am using {align} within {...
jona173's user avatar
  • 153
1 vote
1 answer
60 views

How can I fix iupac related alignment issues in TOC?

Please have a look at the following picture of my TOC. You can see that there is an alignment issue with subsubsection 1.1.1 and subsubsection 1.1.2. The corresponding page number of subsubsection 1.1....
wewa's user avatar
  • 179
0 votes
2 answers
503 views

Write cursive l letter in chemical formula with chemmacros package

How can I replace the letter l in HCl with ℓ so it becomes HCℓ when using chemmacros? I would like to avoid confusion between l, 1 and I which look very similar.
Fizika Scienco's user avatar
1 vote
1 answer
94 views

Change the font within chemacros \iupac environment in with fontspec in lualatex?

I asked this question not long ago, and now want to move from cfr-lm and pdflatex to newcomputermodern with fontenc and LuaLaTeX. That is, I would like to use old-style numbers, everywhere except ...
Canageek's user avatar
  • 17.9k
1 vote
1 answer
229 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[...
Andrew's user avatar
  • 1,239
2 votes
2 answers
174 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} \...
Andrew's user avatar
  • 1,239
0 votes
1 answer
50 views

Why are my schemes being numbered starting at 0?

I am trying to apply leandriis's excellent recipe for generating the subschemes using the chemmacros, cleveref, and subcaption packages. In the following example, what am I doing wrong? The schemes ...
Andrew's user avatar
  • 1,239
2 votes
0 answers
80 views

Numbering chemmacros schemes within sections [closed]

Hello dear community, excuse me if this is a very basic question. But I googled to no avail. I also checked the manual of chemmacros, which gives no information. I am using "scheme" ...
bfalk's user avatar
  • 117
1 vote
0 answers
228 views

Placing a List of Schemes in the Table of Contents

I am using the chemmacros package -- specifically its scheme module -- to generate a List of Schemes. (Note: the chemmacros package has been recently updated so that it is compatible with the book ...
Andrew's user avatar
  • 1,239
2 votes
0 answers
139 views

Using the chemmacros package to easily generate a List of Schemes [closed]

I am trying to use the chemmacros package to easily generate a List of Schemes (as suggested here), which my thesis committee is requiring. I am probably overlooking something, but why do I get an ...
Andrew's user avatar
  • 1,239
2 votes
2 answers
83 views

Change the font within chemmacros \iupac environment?

I am using cfr-lm as the font in my thesis, as I really like the look of the old style numbers in body text, and I have a LOT of numbers in my thesis. I'm also using the chemmacros/chemformula ...
Canageek's user avatar
  • 17.9k
3 votes
1 answer
120 views

Chemical functional groups: in chemmacros package, selectively interpret dash or similar as a bond, not as a charge

I am using the ch command in the chemmacros package to typeset chemical formulas. I would like to typeset chemical functional groups. Here is my MWE: \documentclass{article} \usepackage{chemmacros} \...
Andrew's user avatar
  • 1,239
4 votes
1 answer
150 views

chemmacros \iupac command shows no formatting in titles

i googled the problem and found that apparently nobody had issues with this before... I want to use compound names set up with the \iupac command of chemmacros in titles. \documentclass{scrbook} \...
bfalk's user avatar
  • 117
2 votes
0 answers
176 views

Using chemfig to draw complex ring structures

So I am trying to recreate the following reactions with chemfig but I am somewhat getting lost on what to do. I was able to start off with a general structure shown below. Any help would be much ...
Dave2627's user avatar
3 votes
1 answer
67 views

Using math mode input as "atoms" in chemmacros

I am using the ch command in the chemmacros package to typeset chemical formulas. Here are three examples as a MWE: \documentclass{article} \usepackage{chemmacros} \begin{document} \noindent% \ch{C-O-...
Andrew's user avatar
  • 1,239
0 votes
1 answer
201 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 ...
Philipp's user avatar
0 votes
0 answers
115 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,...
Dave2627's user avatar
3 votes
1 answer
281 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,...
solarchemist's user avatar
5 votes
1 answer
193 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 ...
Henning's user avatar
  • 63
0 votes
1 answer
71 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}...
QuestionCookie's user avatar
2 votes
1 answer
73 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 ...
John Chris's user avatar
1 vote
1 answer
106 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 ...
Paul's user avatar
  • 11
2 votes
1 answer
112 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=...
CrocoDuck's user avatar
  • 3,705
1 vote
1 answer
64 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} \...
Dave124's user avatar
  • 353
0 votes
1 answer
466 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. \...
Dave124's user avatar
  • 353