# How to insert a diagonal arrow through a word and write text corresponding to the arrow?

I'm wondering if it is possible to replicate the following in TEX:

Thank you.

Use cancel package and amsmath for \text macro.

\documentclass{article}
\usepackage{amsmath,cancel}
\begin{document}
$\cancelto{0, \text{material is conservative}}{\text{consumption}}$
\end{document}


• How can I use this in the math environment align, if I have \begin{align*} \end{align*} ? – CivilSigma Oct 12 '15 at 2:51
• I got it :) \cancelto{0, \text{S.S}}{\text{Accumulation}} – CivilSigma Oct 12 '15 at 2:56
• Perhaps better 0\text{, material is conservative} so the space between the comma and "material" is the standard text space for the comma? – Gonzalo Medina Oct 12 '15 at 3:27

Variant: if you want to use it outside a math environment, you can use \ensuremath and text. By default the text at the end of the diagonal arrow will be in scriptsize, but you can change that with \displaystyle:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath, cancel}

\begin{document}

\ensuremath{\cancelto{0, \text{material is conservative}}{\text{Consumption}}}
\vskip 1cm

\ensuremath{\cancelto{\displaystyle 0, \text{material is conservative}}{\text{Consumption}}}

\end{document}