chemfig: Doppelharpune + gebogener Pfeil in Reaktion + Geschwindigkeitskonstanten

chemfig: Doppelharpune + gebogener Pfeil in Reaktion + Geschwindigkeitskonstanten

Ich habe versucht, mit Chemfig das folgende Reaktionsschema zu zeichnen: Reaktionsschema

Nachfolgend die hier gegebene Antwort:chemfig: Doppelharpune + gewölbter Ein-/Auspfeil als Reaktionist es mir gelungen, das folgende Schema zu zeichnen: Erstelltes Schema

Dabei wird der <U=>wie folgt definierte Pfeil verwendet:

\makeatletter
\definearrow2{<U=>}{%
    \CF@arrow@shift@nodes{#2}%
    \path[allow upside down](\CF@arrow@start@node)--(\CF@arrow@end@node)%
            node[pos=0,yshift=1pt](\CF@arrow@start@node @u0){}%
            node[pos=0,yshift=-1pt](\CF@arrow@start@node @d0){}%
            node[pos=1,yshift=1pt](\CF@arrow@start@node @u1){}%
            node[pos=1,yshift=-1pt](\CF@arrow@start@node @d1){};%
    \begingroup%
        \pgfarrowharpoontrue%
        \expandafter\draw\expandafter[\CF@arrow@current@style](\CF@arrow@start@node @u0)--(\CF@arrow@start@node @u1)node[pos=0.4](Uarrow@arctangent){};%
        \expandafter\draw\expandafter[\CF@arrow@current@style](\CF@arrow@start@node @d1)--(\CF@arrow@start@node @d0);%
    \endgroup%
    \expandafter\draw\expandafter(Uarrow@arctangent) arc (270:190:.333) node (Uarrow@end) {};%
    \node[anchor=south,yshift=2pt] at ([email protected]) {#1};
}
\makeatother

Wie Sie vielleicht schon bemerkt haben, fehlen mir die Geschwindigkeitskonstanten wund z. Ich habe versucht, die Definition des Pfeils zu ändern <U=>, konnte das Diagramm aber noch nicht vollständig erstellen. Hier ist ein vollständig funktionierendes Beispiel:

    \documentclass{article}
\usepackage{chemfig}
\makeatletter
\definearrow2{<U=>}{%
    \CF@arrow@shift@nodes{#2}%
    \path[allow upside down](\CF@arrow@start@node)--(\CF@arrow@end@node)%
            node[pos=0,yshift=1pt](\CF@arrow@start@node @u0){}%
            node[pos=0,yshift=-1pt](\CF@arrow@start@node @d0){}%
            node[pos=1,yshift=1pt](\CF@arrow@start@node @u1){}%
            node[pos=1,yshift=-1pt](\CF@arrow@start@node @d1){};%
    \begingroup%
        \pgfarrowharpoontrue%
        \expandafter\draw\expandafter[\CF@arrow@current@style](\CF@arrow@start@node @u0)--(\CF@arrow@start@node @u1)node[pos=0.4](Uarrow@arctangent){};%
        \expandafter\draw\expandafter[\CF@arrow@current@style](\CF@arrow@start@node @d1)--(\CF@arrow@start@node @d0);%
    \endgroup%
    \expandafter\draw\expandafter(Uarrow@arctangent) arc (270:190:.333) node (Uarrow@end) {};%
    \node[anchor=south,yshift=2pt] at ([email protected]) {#1};
}
\makeatother


\begin{document}
\section{Example}
\begin{equation}
\label{threestateslinear1}
\schemestart
A
\arrow{<=>[$x$][$y$]}
B
\arrow{<U=>[D]}
C
\schemestop
\end{equation}
\end{document}

Was vermisse ich?

Antwort1

Bildbeschreibung hier eingeben

Die obigen Bilder wurden mit dem folgenden MWE erstellt:

\documentclass{article}
\usepackage{chemfig}
\catcode`\_=11
\definearrow4{<U=>}{%
    \CF_arrowshiftnodes{#4}%
    \path[allow upside down](\CF_arrowstartnode)--(\CF_arrowendnode)%
            node[pos=0,yshift=1pt](\CF_arrowstartnode u0){}%
            node[pos=0,yshift=-1pt](\CF_arrowstartnode d0){}%
            node[pos=1,yshift=1pt](\CF_arrowstartnode u1){}%
            node[pos=1,yshift=-1pt](\CF_arrowstartnode d1){};%
    \begingroup%
        \pgfarrowharpoontrue%
        \expandafter\draw\expandafter[\CF_arrowcurrentstyle](\CF_arrowstartnode u0)--(\CF_arrowstartnode u1)node[pos=0.4](Uarrowarctangent){};%
        \expandafter\draw\expandafter[\CF_arrowcurrentstyle](\CF_arrowstartnode d1)--(\CF_arrowstartnode d0);%
    \endgroup%
    \expandafter\draw\expandafter(Uarrowarctangent) arc (270:190:.333) node (Uarrowend) {};%
    \node[anchor=south,yshift=2pt] at (Uarrowend.north) {#1};
    \node[anchor=south,yshift=2pt,xshift=5pt] at (Uarrowarctangent) {#2};  
    \node[anchor=south,yshift=-8pt,xshift=5pt] at (Uarrowarctangent) {#3};
}
\catcode`\_=8


\begin{document}
\section{Example}
\begin{equation}
\label{threestateslinear1}
\schemestart
A
\arrow{<=>[$x$][$y$]}
B
\arrow{<U=>[D][$w$][$z$]}
C
\schemestop
\end{equation}
\end{document}

Vorheriges MWE (für Versionen chemfigälter als 1.4):

\documentclass{article}
\usepackage{chemfig}
\makeatletter
\definearrow4{<U=>}{%      %<--------------------
    \CF@arrow@shift@nodes{#4}%    %<--------------------
    \path[allow upside down](\CF@arrow@start@node)--(\CF@arrow@end@node)%
            node[pos=0,yshift=1pt](\CF@arrow@start@node @u0){}%
            node[pos=0,yshift=-1pt](\CF@arrow@start@node @d0){}%
            node[pos=1,yshift=1pt](\CF@arrow@start@node @u1){}%
            node[pos=1,yshift=-1pt](\CF@arrow@start@node @d1){};%
    \begingroup%
        \pgfarrowharpoontrue%
        \expandafter\draw\expandafter[\CF@arrow@current@style](\CF@arrow@start@node @u0)--(\CF@arrow@start@node @u1)node[pos=0.4](Uarrow@arctangent){};%
        \expandafter\draw\expandafter[\CF@arrow@current@style](\CF@arrow@start@node @d1)--(\CF@arrow@start@node @d0);%
    \endgroup%
    \expandafter\draw\expandafter(Uarrow@arctangent) arc (270:190:.333) node (Uarrow@end) {};%
    \node[anchor=south,yshift=2pt] at ([email protected]) {#1};
    \node[anchor=south,yshift=2pt,xshift=5pt] at (Uarrow@arctangent) {#2};    %<--------------------
    \node[anchor=south,yshift=-8pt,xshift=5pt] at (Uarrow@arctangent) {#3};    %<--------------------
}
\makeatother


\begin{document}
\section{Example}
\begin{equation}
\label{threestateslinear1}
\schemestart
A
\arrow{<=>[$x$][$y$]}
B
\arrow{<U=>[D][$w$][$z$]}
C
\schemestop
\end{equation}
\end{document}

Zeilen, die ich geändert oder hinzugefügt habe, sind mit hervorgehoben %<--------------------. Bitte beachten Sie, dass die absolute Positionierung der Beschriftungen wie im Beispiel nicht unbedingt die eleganteste Lösung ist.

verwandte Informationen