Skip to main content

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
2 answers
46 views

How to implement a multiline split when using chemmacros, chemformula & chemfig with LuaLaTeX

I've explored how to use \begin{split} and \begin{multline} to break the following long equation when using \ch. None have worked. I've assembled a not-so-short (apologies) MWE that will compile as is,...
RosesBouquet's user avatar
1 vote
2 answers
54 views

The best way to show the connection of isotopes to chemical molecules?

Is there a package that has been specially optimized for the notation of isotopes and chemical bonds? \documentclass[]{article} \usepackage{chemmacros} \begin{document} \chemdelta\isotope*{2,H}--\ch{...
Y. zeng's user avatar
  • 2,105
2 votes
1 answer
47 views

Formatting in the acid-base module

With the chemmacro package, I am able to format Ka, pKa correctly (with the \Ka \pKa command). I would like to be able to do the same thing with the ionic product of water (Ke and pKe in French) but I ...
Nicolas's user avatar
  • 1,277
1 vote
1 answer
56 views

Position of ion charges

I want to write the equilibrium equation of ethanoic acid in water using the chemmacro package. By wanting to add the phases, I do not obtain the expected result. With \documentclass{article} \...
Nicolas's user avatar
  • 1,277
0 votes
1 answer
38 views

write a double arrow

I want to write the equilibrium equation of ethanoic acid in water using the chemmacro package but I can't find a suitable command. The only trick I found is to create the "reactive" part ...
Nicolas's user avatar
  • 1,277
0 votes
1 answer
52 views

Compatibility issue between chemmacros and polyglossia when using `russian` language setting

I want to use two packages chemmacros and polyglossia together in my document, and for some reason I don't want to use mhchem and babel etc. instead of them. Here are some simplified examples. ...
Inverted Pastry's user avatar
0 votes
1 answer
122 views

How to use "chemmacros" package in Scientific Reports?

The journal of Scientific Reports provid a template at Overleaf.com. Using chemmacros package will cause an error. The error is How should we use chemmacros package with Scientific Reports? I've ...
Y. zeng's user avatar
  • 2,105
1 vote
0 answers
49 views

chemnum: incorrect hyperlinking of compound sublabels

I am using chemnum within the chemmacros package. When I use a compound with a sublabel, the hyperlink that is created only links to the first use of the main label (1) instead of the actual compound (...
user21101711's user avatar
1 vote
0 answers
69 views

TeXmaker fails to recognize new TeX Live installation

I have an older TeX Live 2019 version installed on macOS (10.12.6). Recently I have installed TeX Live 2023 via MacPorts. I am using Sphinx v7.2.6 for generating a pdf file using command make latexpdf....
Love Not War's user avatar
2 votes
0 answers
77 views

Redox half-reactions environment

Can someone help me write environment for redox half-reactions with exact alignment shown in the photo? Also, how to make that the lenght of the line is determined by the length of the longest ...
crvenikupus's user avatar
5 votes
1 answer
31 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
84 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
  • 2,105
-3 votes
1 answer
124 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
221 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
111 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
81 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
71 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,277
0 votes
1 answer
111 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,277
1 vote
0 answers
65 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,846
3 votes
2 answers
137 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
144 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,846
1 vote
0 answers
32 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
133 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
  • 2,105
1 vote
1 answer
116 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
  • 2,105
-1 votes
1 answer
215 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
720 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
103 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
818 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
63 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
362 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
  • 415
0 votes
1 answer
240 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
151 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
155 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
77 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
552 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
65 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
666 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
99 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
  • 18.1k
1 vote
1 answer
281 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,269
2 votes
2 answers
215 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,269
0 votes
1 answer
57 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,269
2 votes
0 answers
90 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
254 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,269
2 votes
0 answers
154 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,269
2 votes
2 answers
94 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
  • 18.1k
3 votes
1 answer
127 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,269
4 votes
1 answer
185 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
210 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
97 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,269
0 votes
1 answer
214 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