\xcancel{ABC}

The \xcancel{ABC} command is used in LaTeX to draw a diagonal line (cancel) over the text or mathematical expression 'ABC'. This is often used to indicate that something is being removed, ignored, or canceled out in annotations or mathematical derivations.

Examples

Canceling the text 'ABC' to indicate it is being ignored or removed.

\xcancel{ABC}

Canceling a part of an equation to show it is being disregarded in the current context.

\xcancel{x^2 + y^2} = z^2

Striking through the word 'Error' to indicate it is no longer relevant or has been corrected.

\xcancel{\text{Error}}