Tuesday, December 1, 2009

How to use a strikeout/strikethrough font in LaTeX

http://www.devdaily.com/blog/post/latex/use-strikeout-strikethrough-font-with-latex

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

\documentclass[a4paper,12pt]{article}
\usepackage{amssymb}
\usepackage{hyperref}
\usepackage{amsmath}
\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,

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






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...