Cancel Package
From charlesreid1
Installation
Download the cancel package here: ftp://ftp.dante.de/tex-archive/help/Catalogue/entries/cancel.html
Mac OS X
You can install the cancel package on Mac by downloading cancel.zip, unzipping, and moving cancel.sty to ~/Library/texmf/tex/latex.
Usage
To use the cancel package in a LaTeX document, you have to include the following in your preamble:
\usepackage{cancel}
There are two handy functions available from the cancel package: cancel and cancelto.
To use cancel:
\cancel{ a }
To use cancelto:
\cancel{ \infty }{ a }
An example of using the cancel commands is given here:
Using Cancel Package in LyX
You can use the cancel package from LyX by including the following in your preamble:
\usepackage{cancel}
You can do this by opening your LyX document and clicking Document > Settings..., then picking the "Preamble" item from the sidebar. You can then add the line to your preamble.
To use it in the document, you have to type \cancel{. The "cancel" and the "{" bracket should both appear in red, and a matching brace "}" should automatically appear. If it doesn't, you probably forgot to add the above \usepackage to your preamble.
To use the \cancelto{}{} command, first type \cancelto{, and the matching brackets should appear. Next, copy this pair of brackets, and choose paste after the first pair.



