I'm trying to put a stroke across an equation inside the cases mode. I tried both ulem and soul packages but I don't understand how they work in the cases environment.

This is what I got with ulem:

enter image description here

while if I use $ in \sout I got an error.

And here is the code:



\sout{f(x) \geq 0} \\
g(x) \geq 0 \\

% \[\begin{cases}
% \sout{$f(x) \geq 0$} \\
% g(x) \geq 0 \\
% \end{cases}\]

  • Welcome to TeX.SE! \sout is a text-mode command provided by the ulem package. To "cancel" terms inside math mode, load the cancel package and write, say, \cancel{f(x) \geq 0}. – Mico Nov 28 '17 at 13:17
  • \[\begin{cases} \cancel{f(x) \geq 0} \\ g(x) \geq 0 \\ \end{cases}\] with the cancel package?? – Steven B. Segletes Nov 28 '17 at 13:18
  • 1
    Thank you Mico for the welcome and for the fast help! It works! – sound wave Nov 28 '17 at 13:44

Browse other questions tagged or ask your own question.