[Tex/LaTex] Strikethrough text

strikeouttext-decorations

I am writing an article in LaTeX 2e. Part of the article describes the Sieve of Eratosthenes, and I want to show examples of how multiples of a prime are removed from the sieve by showing them in a strikethrough font. How do I create a strikethrough font in LaTeX 2e?

Best Answer

I'm not quite sure what you mean with creating a strikethrough font. However, for striking through text horizontally see:

https://stackoverflow.com/questions/2663944/how-to-strike-out-inside-latex-equations

So with the ulem package this is:

\usepackage[normalem]{ulem}
\sout{Hello World}

With the soul package this is:

\usepackage{soul}
\st{Hello World}

enter image description here

The ulem package seems more up to date so I would use that.