I know this question is already asked. I wanted to use an arrow as the canceling arrow with a zero near the arrow head as follows.
1 Answer
The package cancel
also provides a command \cancelto{<value>}{<expression>}
that adds an arrow over <expression>
, pointing to <value>
.
\documentclass{article}
\usepackage{amsmath}
\usepackage{cancel}
\begin{document}
\[
\cancelto{0}{\frac{\partial T}{\partial t}} = \kappa \frac{\partial^2 T}{\partial z^2} + v_z \frac{\partial T}{\partial z}
\]
\end{document}
cancel
package has some drawbacks because of its use of the picture environment (which can only draw lines at certain slopes). See this question and its answer for more information and a solution usingtikz
.