LaTeX cancel (cross out a text)

The cancel command crosses out a text.

\[
\cancel{ 3 + 4 = 5 } \\~\\
\cancel{ XYZ } \\~\\
\bcancel{ \vec{a} } \\~\\
\xcancel{ \frac{1}{x} }
\]

\[ \cancel{ 3 + 4 = 5 } \\~\\ \cancel{ XYZ } \\~\\ \bcancel{ \vec{a} } \\~\\ \xcancel{ \frac{1}{x} } \]

LaTeX text

LaTeX