I need to strike out terms in equations. Based on the answers to this question, I've tried the cancel package, but the appearance of the resulting output does not convince me. Consider this example:
\documentclass{article} \usepackage{cancel} \newcommand{\pd}[2]{\frac{\partial #1}{\partial #2}} \begin{document} \begin{equation} \cancelto{\mathrm{ignored}}{\pd{f}{x}} + \cancelto{\mathrm{ignored}}{\pd{g}{y}} + \pd{h}{z} \end{equation} \end{document} This gives the following output:
If I use the package option makeroom, I get:
This is obviously unsatisfactory. What I would like to be able to do:
- Arrow shapes consistent with those used by TikZ.
- Arrow that are parallel (I would imagine this is difficult to do, so I would be happy to specify the angles manually).
- Ability to specify the anchor of the text at the arrow tip (so that the text could be anchored at the bottom center or bottom right, for example).
- Ability to specify the font size of the text near the arrow tip (which I don't seem to be able to do with
\cancelto). - Automatically add space between the terms similar to what
makeroomdoes (nice to have, but not essential if I can change the font) size because I can fine-tune the spacing if necessary).
Thanks for your help.


