Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

LaTeX Strikethrough in latex

  1. May 14, 2013 #1
    Is it somehow possible to do it in LATEX? I googled it but I couldn't find anything that would work for me.
  2. jcsd
  3. May 15, 2013 #2
  4. May 15, 2013 #3


    User Avatar
    Gold Member

    closest thing I found with a quick google was either:

    ##\displaystyle \rlap{/}xy##
    Code (Text):
    which can be repeated like so: ##\displaystyle \rlap{//}xy##
    Code (Text):
    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
  5. May 15, 2013 #4
    Thanks trollcast! :smile:
  6. May 15, 2013 #5


    User Avatar
    Science Advisor
    Homework Helper

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

    If you measn "PF latex", what trollcast said.
  7. May 15, 2013 #6


    User Avatar
    Gold Member

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

    \not \negmedspace \partial

    which seems to work here as well

    Code (Text):

Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Similar Threads for Strikethrough latex
Long division in LaTeX
LaTeX LaTeX Greek boldface
LaTeX LaTex and MathJax
LaTeX Putting Excel graph into LaTeX
LaTeX \vec command