![TikZ - 寻找一些建议来建立逐步计算](https://linux22.com/image/423845/TikZ%20-%20%E5%AF%BB%E6%89%BE%E4%B8%80%E4%BA%9B%E5%BB%BA%E8%AE%AE%E6%9D%A5%E5%BB%BA%E7%AB%8B%E9%80%90%E6%AD%A5%E8%AE%A1%E7%AE%97.png)
答案1
绘制为图像?看看下面的 MWE 是否产生了你想要的结果:
\documentclass[tikz, margin=1pt]{standalone}
\usetikzlibrary{arrows.meta,
positioning}
\begin{document}
\begin{tikzpicture}[
node distance = 3mm and 0mm,
> = {Straight Barb[scale=0.5]},
every node/.style = {inner xsep=1pt}
]
\node (a0) {=};
\node (aL) [left =of a0] {$2x+3$};
\node (aR) [right=of a0] {$5x-4$};
%
\node (b0) [draw, minimum width=4em,
below=of a0] {$-3$};
%
\node (c0) [below=of b0] {$=$};
\node (cL) [left =of c0] {$2x$};
\node (cR) [right=of c0] {$5x-7$};
%
\scoped[transform canvas={xshift= 1em}]
{
\draw (aL) -- (aL |- b0.north);
\draw[->] (aL |- b0.south) -- (aL |- cL.north);
}
\scoped[transform canvas={xshift=-1em}]
{
\draw (aR) -- (aR |- b0.north);
\draw[->] (aR |- b0.south) -- (aR |- cR.north);
}
\end{tikzpicture}
\end{document}
注意,如果需要,您可以在方程环境中插入图像。