I have a document in which I want to strikeout whole paragraphs including all equation and eqnarray environments. Available options such as sout (from ulem) works on paragraph but not in equations. Also cancel (from cancel) work only inside math, but not in paragraphs and in eqnarrays only one line at a time.

Is there a package or command that will allow to strikeout with, for example:

%long paragraph or equation or eqnarray

Preferably I need a diagonal strikeout but any alternative would work. Here it is an example:



  %\cancel{ %cancel doesn't work for eqnarray
  f(x) & = & \sin(x) \\
  g(x) & = & \cos(x)


  • Off-topic:eqnarray is too old, actually. Use align or something similar (I don't know, whether \cancel would work with align -- I doubt). You are aware that your eqnarray env. ends with equation? ;-)
    – user31729
    Jun 4, 2015 at 9:10

1 Answer 1


cancel works with aligned environment, but in this case the equation numbers are lost.

%  \usepackage{ulem}


        f(x) &=  \sin(x) \\
        g(x) &=  \cos(x)

  • It is funny the author of the cancel package ctan.org/pkg/cancel?lang=en says "Drawing slashes through math to indicate “cancellation” is poor design. I don’t recommend that you use this package at all." (emphasis mine). However I want it for "corrections".
    – alfC
    Aug 26, 2015 at 21:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .