Math & Science ⇒ Arrow for multiple consecutive reactions
Arrow for multiple consecutive reactions
There's a possibility to get an arrow like on the attached graphic?
Sonntag
- Attachments
-
- arrow.png (491 Bytes) Viewed 6776 times
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Re: Arrow for multiple consecutive reactions
Re: Arrow for multiple consecutive reactions
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Re: Arrow for multiple consecutive reactions
Can you give examples and references where this is used? If this is a sensible issue, i am sure Clemens will add this to chemformula.
Re: Arrow for multiple consecutive reactions
It is an abbreviation that you use if you skip reaction steps to get to the written products (outgoing from the written educts.)
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Arrow for multiple consecutive reactions
Since my Tikz-foo is very very limited, i could only come up with the following.
Code: Select all
\listfiles
\documentclass{article}
\usepackage{chemmacros}
\ExplSyntaxOn
\NewChemArrow { =>>> }
{
\draw[chemarrow,-cf]
([yshift=.15ex]cf_arrow_start) -- ([yshift=.15ex]cf_arrow_end) ;
\draw[chemarrow,-cf]
([yshift=-.35ex,xshift=.7em]cf_arrow_start) -- ([yshift=-.35ex,xshift=.7em]cf_arrow_end) ;
}
\ExplSyntaxOff
\begin{document}
\begin{reaction}
a =>>> D
\end{reaction}
\end{document}
Arrow for multiple consecutive reactions
\NewChemArrow
is the right choice here, IMHO. I am reluctant to add this arrow to chemformula but the command \NewChemArrow
is provided for exactly such purposes.There is no need for
\ExplSyntaxOn
in order to use it, by the way.Personally I'd set the arrows a little bit closer to each other but that is probably a matter of personal taste…
Code: Select all
\documentclass{article}
\usepackage{chemformula}
\NewChemArrow{>>}{
\draw[chemarrow,-cf]
([yshift=.2ex]cf_arrow_start) -- ([yshift=.2ex]cf_arrow_end) ;
\draw[chemarrow,-cf,]
([yshift=-.2ex,xshift=.3em]cf_arrow_start) -- ([yshift=-.2ex,xshift=.3em]cf_arrow_end) ;
}
\begin{document}
\ch{A >> B >>[above][below] C}
\end{document}