I'm trying to use \cancel
from the cancel
package to strike out some colored text but it is apparent that the diagonal line is drawn first so it doesn't do a very good job of canceling.
Minimal example.
\documentclass{article}
\usepackage{xcolor,cancel}
\begin{document}
\leavevmode
\cancel{\textcolor{red}{T}}
\textcolor{red}{T}\llap{\cancel{\phantom{T}}}
\end{document}
I can obviously use the \llap
, but that is suboptimal. Is there a better way?
\llap
is the easiest way so far. I had a look at the docs, a hack is not easy. Suggestion cancel the word "suboptimal" in you question:) Certainly TikZ is not the answer for this.