Strikethrough text in LaTeX (sout, st)

LaTeX has no strikethrough command of its own. Load ulem and write \sout{text}, or load soul and write \st{text}. Both draw a line through text that still breaks at the end of a line.

Preamble

The snippets on this page need these lines before \begin{document}:

\usepackage[normalem]{ulem}

Strike through with ulem

\sout{...} draws a horizontal line through its argument. The option normalem keeps \emph italic; without it ulem changes \emph to underlining in the whole document.

The meeting is on \sout{Monday} Tuesday.
Result
The compiled example

Open in the editor

Cross out with slashes

\xout{...} from ulem covers the text with diagonal strokes.

\xout{This sentence is crossed out.}
Result
The compiled example

Open in the editor

Strike through with soul

The soul package has \st{...}. With xcolor loaded, \setstcolor{red} colours the line and leaves the text black.

Complete document:

\documentclass{article}
\usepackage{xcolor}
\usepackage{soul}
\begin{document}
The price is \st{20 euros} 15 euros.

\setstcolor{red}
The price is \st{20 euros} 15 euros.
\end{document}
Result
The compiled example

Open in the editor

Pitfalls

Compiled with pdfLaTeX from TeX Live 2023.

Related pages