Latex Strikethrough: Is it Possible?

  • Context: LaTeX 
  • Thread starter Thread starter Saitama
  • Start date Start date
  • Tags Tags
    latex
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
5 replies · 6K views
Saitama
Messages
4,244
Reaction score
93
Is it somehow possible to do it in LATEX? I googled it but I couldn't find anything that would work for me.
 
Physics news on Phys.org
closest thing I found with a quick google was either:

##\displaystyle \rlap{/}xy##
Code:
\rlap{/}xy

which can be repeated like so: ##\displaystyle \rlap{//}xy##
Code:
\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:
\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:
\displaystyle \rlap{\text{---------}} xyzabc
 
Thanks trollcast! :smile:
 
I defined mine in my papers as :
[tex] \not \negmedspace \partial[/tex]
Code:
\not \negmedspace \partial


which seems to work here as well

Code:
\def\dslash{\not\negmedspace}