LaTeX Latex Strikethrough: Is it Possible?

  • Thread starter Thread starter Saitama
  • Start date Start date
  • Tags Tags
    latex
AI Thread Summary
Strikethrough text in LaTeX can be achieved using various methods. The simplest approach involves using the "ulem" or "soul" packages for text, and the "cancel" package for mathematical expressions. Users have shared techniques such as using the \rlap command with slashes or hyphens to create a visual strikethrough effect. Additionally, defining custom commands like \dslash can enhance the appearance of strikethrough in mathematical contexts. Overall, there are effective solutions available for implementing strikethrough in LaTeX.
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
Anyone?
 
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:
 
if you mean "real latex", use packages "ulem" or "soul" for text, and "cancel" for math.

If you measn "PF latex", what trollcast said.
 
I defined mine in my papers as :
<br /> \not \negmedspace \partial<br />
Code:
\not \negmedspace \partial


which seems to work here as well

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

Similar threads

Replies
4
Views
2K
Replies
23
Views
3K
Replies
12
Views
3K
Replies
2
Views
3K
Replies
3
Views
3K
Replies
7
Views
3K
Replies
5
Views
3K
Back
Top