Latex Strikethrough: Is it Possible?

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

Discussion Overview

The discussion centers around the possibility of implementing strikethrough text in LaTeX, exploring various methods and packages that may achieve this effect. Participants share their experiences and suggestions related to both standard LaTeX and a specific forum variant.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant inquires about the feasibility of creating a strikethrough effect in LaTeX, noting difficulty in finding a solution.
  • Another participant suggests using the command ##\rlap{/}xy## for a basic strikethrough effect, mentioning that it can be repeated for a more pronounced line.
  • A further suggestion involves using a series of hyphens to create a horizontal strikethrough, although it is noted that this method requires careful adjustment of the number of hyphens.
  • One participant recommends using the LaTeX packages "ulem" or "soul" for text strikethrough, and "cancel" for mathematical expressions, distinguishing between standard LaTeX and the forum's LaTeX implementation.
  • Another participant shares a custom definition for a strikethrough effect using the command ##\not \negmedspace \partial##, indicating it works in their papers and in the forum context as well.

Areas of Agreement / Disagreement

Participants present multiple methods and suggestions for achieving strikethrough text, indicating that there is no single agreed-upon solution. Some methods are specific to certain contexts, leading to a variety of opinions on the best approach.

Contextual Notes

Some methods depend on specific LaTeX packages, which may not be universally available or applicable in all contexts. The effectiveness of different approaches may vary based on the environment in which LaTeX is rendered.

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