I need a command like \cancel{} but with more '' options '':
- change the cancel color
- the number of the line that cancel the text
- compatible with math mode
- change the direction of the line

I need a command like \cancel{} but with more '' options '':

\cancelis mostly compatible with maths mode, are you having a specific problem? Have a look at other question about\cancelon this site, especially the ones recommending solutions with TikZ, they may already do what you’re asking for. – Arthur Reutenauer May 29 '15 at 20:32