Tuesday, December 1, 2009

How to use a strikeout/strikethrough font in LaTeX


Include the "ulem" package in the header like this.

\usepackage{ulem} % to use a strikeout/strikethrough font

Then to produce strikeout use the command \sout{ ... } like this.

\sout{Windows} Ubuntu rules.

This produces output text like this:

Windows Ubuntu rules.

\sout command only works in text mode. To use strikeout in equations a different command should be used. Inside math mode the command \text{\sout{\ensuremath{ ... }}} should be used. Like this,

\text{\sout{\ensuremath{R^{bc} = R^{00} + R^{BC} }}}

No comments:

OK GOOGLE on Samsung Galaxy S7 doesn’t work

To make Ok Google detection work on Galaxy S7 (Galaxy series phones) we need to perform a couple of steps. 1. As long as Samsung S vo...