Latex Strikethrough: Is it Possible?

  • Context: LaTeX 
  • Thread starter Thread starter Saitama
  • Start date Start date
  • Tags Tags
    latex
Click For Summary
SUMMARY

Strikethrough text in LaTeX is achievable using various methods. The recommended packages for achieving a proper strikethrough effect are "ulem" or "soul" for text, and "cancel" for mathematical expressions. Users can also utilize the \rlap command combined with hyphens or the \text{} command to create a visual strikethrough effect. For mathematical notation, the command \not \negmedspace can be defined for a similar purpose.

PREREQUISITES
  • Familiarity with LaTeX document preparation system
  • Understanding of LaTeX packages, specifically "ulem", "soul", and "cancel"
  • Knowledge of LaTeX commands such as \rlap and \not
  • Basic experience with mathematical notation in LaTeX
NEXT STEPS
  • Explore the "ulem" package documentation for text strikethrough options
  • Research the "soul" package for advanced text formatting techniques
  • Learn how to use the "cancel" package for mathematical expressions
  • Experiment with custom LaTeX commands for unique formatting solutions
USEFUL FOR

Anyone working with LaTeX, including document authors, academic writers, and researchers looking to enhance their text formatting capabilities.

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 ·
Replies
4
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 23 ·
Replies
23
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K