
我有一個小的工作範例
\documentclass{article}
\usepackage{amsmath}
\usepackage[version=4]{mhchem}
\begin{document}
\begin{gather*}
\ce{
S + E_1 <=> SE_1 -> P + E_1 \\ S + E_2 <=> SE_2 -> P + E_2 %Ask how to do this on Stackxchange
}
\end{gather*}
\end{document}
這最終給出了 2 個方程,但我想將這 2 個方程合併在一起,變成 1。
我希望S + E_1 <=> SE_1
和S + E_2 <=> SE_2
彼此在同一直線上(只有 1 S
),但在兩個方向上都與水平面成 45 度。
我真的很難解釋我的意思,但希望我所說的話有意義
編輯:這就是我的意思https://gyazo.com/25902d106e90a628820075df6c023523
答案1
透過\ArrowBetweenLines
以下命令mathtools
:
\documentclass{article}
\usepackage{mathtools}
\usepackage[version=4]{mhchem}
\begin{document}
\begin{alignat*}{2}
\thickspace & \ce{E_1 <=> SE_1 -> P + E_1}\\
\ArrowBetweenLines[\ce{S}\enspace\renewcommand{\arraystretch}{0.9}\begin{matrix} + \\\\+\end{matrix}\!\!]& \ce{ E_2 <=> SE_2 -> P + E_2}
\end{alignat*}
\end{document}
答案2
使用tikz
可能有點矯枉過正,但就是這樣
\documentclass[]{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[inner sep = 0pt]
\node[] (S) {$S$};
\node[above right = 1pt and 3pt of S] {$+ E_1 \rightleftharpoons S E_1 \to P + E_1$};
\node[below right = 1pt and 3pt of S] {$+ E_2 \rightleftharpoons S E_2 \to P + E_2$};
\end{tikzpicture}
\end{document}