我想用乳胶来排版这个。
有人可以建议一个可以让我做到这一点的方法或软件包吗?
谢谢你!
答案1
一种可能性是,通过tikzmark
代码
\documentclass[border=1cm]{standalone}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{arrows}
%\usepackage[margin=1cm]{geometry}
\newcommand\tikzmark[1]{%
\tikz[remember picture,baseline=(#1.base)]
\node[inner sep=1pt,outer sep=2pt] (#1) {#1};%
}
\tikzset{myarrow/.style={line width=1mm, color=cyan,preaction={-triangle 90,cyan, thin,draw,shorten >=-1mm}}}
\begin{document}
(\tikzmark{a}+\tikzmark{b}) (\tikzmark{c} + \tikzmark{d})={\color{orange} ac+ad+bc+bd}
\begin{tikzpicture}[remember picture,overlay]
\draw[myarrow] (a) to[bend left =60] (c);
\draw[myarrow] (a) to[bend left =60] (d);
\draw[myarrow] (b) to[bend left =-60] (c);
\draw[myarrow] (b) to[bend left =-60] (d);
\end{tikzpicture}%
\end{document}