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
3
votes
2answers
283 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
200 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
160 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
142 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
74 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
393 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 ...
2
votes
1answer
172 views

Line break in chemmacros

I am quite new to LaTeX and I haven't found a solution to my current problem on this site or in the chemmacros manual. I have two problems in this example: \documentclass{article} \usepackage{...
2
votes
1answer
110 views

Modify part of an environment from a package: experimental environment of chemmacros

General Question: How do I use an environment from a package and modify one or more commands but keep all the functionality of the the others? Sorry if I should know that this isn't possible or viable ...
4
votes
2answers
124 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 ...
1
vote
2answers
146 views

Box around reaction chemmacros

I've been trying to use tcolorbox to frame a reaction using the reaction environment from chemmacros. The use of \begin{tcolorbox}and \end{tcolorbox} does work: \documentclass{exam} \usepackage{...
2
votes
1answer
513 views

Expansion of macros within chemmacros' \ch{} macro

I have some chemical formulae throughout my whole text that are changed from time to time. So I defined a macro \compound with the approporiate content for usage in chemmacros' \ch macro. Compiling ...
2
votes
0answers
101 views

amsmath \intertext works inside the reactions environment but mathtools \shortintertext doesn't [closed]

If I typest a set of chemical equations with the chemmacros reactions environment I can use \intertext{} no problem. If I use \shortintertext{} it's no good. Working MWE \documentclass{article} \...
1
vote
1answer
155 views

Tabular with chemmacros reactions module

I would like to use something like tabular within the reactions environment provided by chemmacros. Something like this: \documentclass[12pt]{article} \usepackage{chemmacros} \usepackage{siunitx} \...
1
vote
1answer
119 views

“subreactions” with chemmacros reactions module

I would like to use something like subequations within the reactions environment provided by chemmacros. Something like this: A -> B {1a} B -> C {1b} C -> D {1c} This doesn't work: \...
2
votes
1answer
230 views

Package chemmacros changes \textbullet

The following document produces a weird shaped \textbullet: \documentclass{article} \def\sfdefault{hlcn} \begin{document} \sffamily\Huge \textbullet \end{document} Commenting out the chemmacros ...
4
votes
1answer
157 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} \...
2
votes
2answers
868 views

What is wrong with \ch{CaO$_{(s)} + H2O$_{(l)}->Ca$^{2+}_{(aq)} + 2 OH$^-_{(aq)}}

In the interest of providing a complete question, I have the following code: \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{...
2
votes
1answer
1k views

redox reactions with arrows and enumeration using chemmacros

I'm using the chemmacros package and I'd like to have a counter on the left of the following equation: I've tried using the \begin{reactions} command but I only get this: I can't figure out how to ...
0
votes
1answer
146 views

How to keep chemical formulas on the same line using chemmacros? [duplicate]

I often refer to some chemicals often in my document (e.g. NH415NO3) and I keep getting line breaks in the middle of the chemical formula (e.g. if NH415NO3 comes at the end of a line, sometimes NH4 ...
2
votes
2answers
116 views

window and experimental environment from chemmacros - compatibility?

I am having a problem with the formatting of the experimental part of my chemistry thesis. I describe the synthesis and the spectroscopic values of a molecule to wrap around a small graphic ...
3
votes
2answers
548 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 ...
2
votes
0answers
346 views

Isotopes module with chemmacros [closed]

I'm trying to use the Isotopes module in chemmacrospackage but it doesn't work. My preamble has: \usepackage{chemmacros} and my documment itself: \isotope{28,Si}. I'm using the version 5.7a of ...
4
votes
1answer
154 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. ...
2
votes
1answer
173 views

Odd behaviour with chemformula, hyphens, commas and periods.

I'm trying to write out a formula, and I'm having trouble getting it to work in chemmacros What I want is 2,2'-bpy, with a prime and a hyphen. What I get is 2.2"-"bpy, with a period and quotes ...
1
vote
0answers
94 views

How to correctly format hydrates with chemformula? [duplicate]

Chemformula has a quite convenient . command to put in adduct. However, if I were to put in something like \ch{UO2(NO3).6H2O} I get the 6 as a subscript. If I put in 2 spaces (\ch{UO2(NO3). 6 H2O}) I ...
4
votes
2answers
64 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 ...
0
votes
1answer
549 views

Alkenes and newman projections

Recently, I've written a latex document about stereochemistry, but i needed a lot of strange newman projection, I found lots of problem about alkenes. First of all, I had to draw alkenes, then my ...
5
votes
1answer
976 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 ...
0
votes
1answer
360 views

Cyclo-hexane Newman projection

How can i draw this projection? I'm already using chemfig, so i prefer a solution with it. edit: as requested, here is my mwe \documentclass[preview,border=1pt]{standalone} \usepackage{chemmacros} \...
6
votes
1answer
145 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 ...
4
votes
1answer
2k 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 ...
3
votes
1answer
795 views

Too many math alphabets in beamer

This beamer attempt produces the error "Too many math alphabets used in version normal.". Using the article class produces no error as does removing either chemmacros or siunitx, but I need those ...
6
votes
1answer
772 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 ...
3
votes
1answer
2k views

Chemmacros: Environments reaction and experimental undefined

I get the following errors and have no idea, why. I just updated all my packages. I am using MikTeX 2.9 on Windows 7 and TeXmaker 4.3. Just spent like an hour searching for an answer and didn't get ...
4
votes
1answer
177 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? ...
2
votes
1answer
696 views

How can I display rate constants over the arrows using chemmacros?

I tried to use \begin{reaction} E + S <=>[$k_1$][$k_{-1}$] ES <=> EP <=> E + P \end{reaction} but it wouldn't display the subscripts properly. I'm using sharelatex.com but I run ...
0
votes
1answer
283 views

\usechemmodule from chemmacros undefined

I'm trying to use the thermodynamics module, among others, to display enthalpy but it doesn't seem to work. \documentclass[twocolumn]{article} \usepackage{chemmacros} \usechemmodule{all} \begin{...
4
votes
1answer
410 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 ...
3
votes
0answers
99 views

chemmacros error but output ok [closed]

Take the following simple piece of code: \documentclass{standalone} \usepackage{chemmacros} \begin{document} \ch{ HA + H2O <=> H3O+ + A\mch} \end{document} It produces the correct output (...
3
votes
1answer
1k views

Setting up a redox reaction using chemmacros

I've been trying to set up this redox reaction for quite some time now, having searched the web for answers and being unable to find them I resorted to ask in here. I'm looking for a way to modify the ...
3
votes
1answer
373 views

subscript for coupling constant J

I'm using chemmacros package to typeset NMR experimental data with coupling constant J with subscripts to designate the two atoms involved. It works fine but when I want to specify which atoms are ...
1
vote
1answer
1k views

Proper chemical notation in chemmacros with names

I am using chemmacros for the reaction environment and chemformula to write the reaction equation below: \documentclass{article} \usepackage{chemmacros} \begin{document} \begin{reaction}%improper ...
5
votes
1answer
835 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 &...
3
votes
1answer
537 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{...
7
votes
1answer
379 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 ...
1
vote
1answer
171 views

How can I get a lovely precipitate sign?

I like the precipitate sign on the P20 of chemformula official documentation. But I can only get like this on my own computer by the example code: What should I do?
6
votes
1answer
180 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 \...
2
votes
0answers
489 views

Missing chemical sub- and super-scripts in html file compiled with htlatex

Current problem is typesetting with the chemical packages. As would be expected, the PDF is produced without any problems but distinct issues arise with the html production using tex4ht. The HTML ...
2
votes
0answers
4k views

No visible images in PDF: MiKTeX GPL Ghostscript 9.05: Unrecoverable error, exit code 1

Recently, I was forced to reinstall my MikTeX distribution. Now, in documents that compile without an actual tex error, there are missing graphics that I have included as eps-files. The following ...
6
votes
1answer
688 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 ...