答案1
您正在寻找这样的东西吗?
\documentclass[a4paper,12pt]{article}
\usepackage{amsmath}
\usepackage{tikz}
\newcommand*{\cancelto}[3][thick, color=cyan]{%
\begin{tikzpicture}[baseline=(X.base)]
\node[inner xsep=0pt] (X) at (0,0) {\(\displaystyle #3\)};
\draw[#1, overlay] (X.south west) -- (X.north) -- (X.north east) node [above left] {\(\scriptstyle #2\)};
\end{tikzpicture}%
}
\begin{document}
\[
\sum F_{\perp V}:mV \cancelto{=0}{\frac{\text{d}\gamma}{\text{d}t}} =L+T\cancelto{\approx 0}{\sin\alpha_T}-W\cancelto{=1}{\cos{\gamma}}
\]
\end{document}
由于这与所做的不同cancel
,我将其删除并定义了一个新命令\cancelto
。