2

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

enter image description here

Thank you.

3

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}

enter image description here

  • 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
2

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} 

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.