
在一個上一個問題展示了在圖像之間添加箭頭的方法。我想在圖像之間添加箭頭,箭頭上方帶有文字:“單字單字”,箭頭下方帶有數學符號序列,例如 $\gamma k_{aj}$
答案1
一種選擇是使用 mathtools 附帶的可擴展箭頭。
\documentclass{article}
\usepackage{graphicx,mathtools}
\newcommand*{\vimage}[1]{\vcenter{\hbox{\includegraphics[width=1.5cm,angle=90]{#1}}}}
\begin{document}
$\vimage{example-image-a}\xRightarrow[\gamma k_{aj}]{\text{if the $j$th protein is in the complex}}
\vimage{example-image-b}\xRightarrow[\gamma k_{aj}]{\text{otherwise}}\vimage{example-image-c}$
\end{document}
如果你想要更漂亮的箭,你可以使用TikZ。