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 bond. According to chemfig
's manual, ~
is used exclusively for drawing a triple bond, however, when placed inside reaction
, ~
character is ignored or incorrectly interpreted (single and double bonds are displayed fine):
\documentclass{article}
\usepackage{chemmacros}
\chemsetup{modules={all}}
\usepackage{chemfig}
\begin{document}
\begin{reaction}
A + B + C + D -> "\chemfig{A-[::30]B=[::30]C~[:30]D}"
\end{reaction}
\end{document}
I'm using chemformula
v4.15g, chemmacros
v5.8f and chemfig
v1.41 from the fully up-to-date (as of 2019-10-08) TeX Live 2019.
chemformula
manual (see section 8.1, page 21): "If you put something between" "
or' '
then the input will be treated as normal text, except that spaces are not allowed and have to be input with~
." This might be the reason for the output you get.chemformula
which I've just uploaded to CTAN