[Tex/LaTex] How to invert the direction of an arrow

arrowschemfigtikz-arrowstikz-pgf

How can I write the following diagram: A to B to C and then I want an arrow from D to B where D is below B. The following code fix the B at the bottom but I want the reverse (the command \arrow(xx1–@bb) doesn't work)

I tried with this but idk what should I change. Also, how can I type a word over or below the arrow?

\schemestart
A\arrow(aa--bb)B\arrow(--cc)C
\arrow(@bb--xx1)[90]X
\schemestop

Best Answer

You can pass arguments to the \arrow command to draw it backwards, as well as to write text above and below the arrow. (See documentation IV Reaction Schemes 9 Arrow optional arguments)

\documentclass{article}
\usepackage{chemfig}

\begin{document}
%   \schemedebug{true}
    \schemestart
    A \arrow(aa--bb){->[up][down]} B \arrow(--cc) C
    \arrow(@bb--dd){<-}[-90]D
    \schemestop
\end{document}

enter image description here

Related Question