# Strikethrough in latex

Tags:
1. May 14, 2013

### Saitama

Is it somehow possible to do it in LATEX? I googled it but I couldn't find anything that would work for me.

2. May 15, 2013

### Saitama

Anyone?

3. May 15, 2013

### trollcast

closest thing I found with a quick google was either:

$\displaystyle \rlap{/}xy$
Code (Text):
\rlap{/}xy
which can be repeated like so: $\displaystyle \rlap{//}xy$
Code (Text):
\rlap{//}xy
or a series of hyphens will create something a bit like a horizontal strikethrough, bit fiddley trying to get the right number of hyphens though:

$\displaystyle \rlap{---} xyzabc$

Code (Text):
\displaystyle \rlap{---} xyzabc

Using \text{} around the hyphens seems to make them a bit smaller and they look more like a solid line on my browser:

$\displaystyle \rlap{\text{---------}} xyzabc$

Code (Text):
\displaystyle \rlap{\text{---------}} xyzabc

4. May 15, 2013

### Saitama

Thanks trollcast!

5. May 15, 2013

### AlephZero

if you mean "real latex", use packages "ulem" or "soul" for text, and "cancel" for math.

If you measn "PF latex", what trollcast said.

6. May 15, 2013

### Hepth

I defined mine in my papers as :
$$\not \negmedspace \partial$$
Code (Text):

\not \negmedspace \partial

which seems to work here as well

Code (Text):

\def\dslash{\not\negmedspace}