将椭圆注释链接到具有两个箭头的方程的两个项

时间:2016-08-16 19:36:31

标签: annotations latex equation

是否可以使用胶乳生产带注释的等式,如下所示:

enter image description here

我应该使用哪种环境?休闲的'等式'环境,Tikz,两者?

1 个答案:

答案 0 :(得分:2)

您可以使用以下代码:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric}

\begin{document}

\centering
\begin{tikzpicture}
    \node (0,0) {$M = \frac{A+B}{C \times D} + F + G$};
    \draw[thick, red, ->] (-0.5,0.5) -- (-.35,2);
    \draw[thick, red, ->] (0,0.5) -- (-.15,2);
    \draw[thick, ->] (0.7,-0.25) -- (1,-2);
    \draw[thick, ->] (1.3,-0.25) -- (1.1,-2);
    \node[draw=red, ellipse] at (-.2,2.5) {method 1};
    \node[ellipse,draw] at (1.1,-2.5) {method 2};
\end{tikzpicture}

\end{document}

给出了

enter image description here

希望这有帮助!