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

Strikethrough in latex

Tags:
  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
    Anyone?
     
  4. May 15, 2013 #3

    trollcast

    User Avatar
    Gold Member

    closest thing I found with a quick google was either:

    ##\displaystyle \rlap{/}xy##
    Code (Text):
    \rlap{/}xy
    which can be repeated like so: ##\displaystyle \rlap{//}xy##
    Code (Text):
    \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 (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

    AlephZero

    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

    Hepth

    User Avatar
    Gold Member

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

    \not \negmedspace \partial
     

    which seems to work here as well

    Code (Text):

    \def\dslash{\not\negmedspace}
     
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Strikethrough in latex
  1. Latex Help (Replies: 9)

  2. LaTeX help (Replies: 2)

  3. Latex Question (Replies: 1)

  4. A Symbol in Latex (Replies: 1)

  5. Springer and \LaTeX (Replies: 1)

Loading...