我有这张图片,我想将其重新创建为 displaystyle 方程式
我知道如何做除了带有文字的弯曲箭头之外的所有事情,这就是我能制作出来的。
$$2H_2O_2\longrightarrow2H_2O+O_2$$
如果这无法通过方程式来实现,您能否建议一个可以创建此功能的包?
答案1
它很简单pst-node
,并且mhchem
包装如下:
\documentclass[pdf]{report}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{pst-node}
\usepackage{mhchem}
\usepackage{sansmath}
\begin{document}
\sansmath
\[ \psset{linewidth=0.6pt, arrows = ->, nodesep = 3pt, colsep = 1.2cm, npos = 0.45, arrowinset=0}
\begin{psmatrix}
2\ce{H2O2} & 2\ce{H2O} +\ce{O2}
\ncline{1,1}{1,2}\naput[labelsep=0.25]{\psarc{->}{0.25}{180}{380}}\naput[labelsep=4ex]{\textsf{Katalase}}
\end{psmatrix} \]
\end{document}
答案2
这里有一个tikz
方法,可以自定义箭头和文本的粗细和颜色(您可以提供化学信息):
代码:
\documentclass{article}
\usepackage{tikz}
\newcommand*{\MyArrowWithCircleLength}{0.7cm}
\newcommand*{\MyArrowWithCircle}[2][]{%
% #1 = draw options
% #2 = node text
\,\tikz[baseline,overlay]
\draw [->, #1] (0,0.75ex) -- ++(\MyArrowWithCircleLength+2pt,0)
node [anchor=south,->, midway, yshift=0.5*\MyArrowWithCircleLength, #1, draw=none] {#2};
\tikz[baseline]
\draw [->, #1] (0,0.5*\MyArrowWithCircleLength+0.75ex) arc (0:180:-0.5*\MyArrowWithCircleLength);
\,%
}
\begin{document}
\[
A \MyArrowWithCircle[thick,draw=red, text=red]{\tiny Katalase} B \MyArrowWithCircle[thin,draw=blue]{\tiny Katalase} C
\]
\end{document}