How to write a line through text or words ?

Like the \underline{} in latex but in the middle the line, to indicate something is wrong.

  • $\begingroup$ See math.meta.stackexchange.com/a/13183/18398 $\endgroup$ Mar 20 '19 at 3:03
  • 1
    $\begingroup$ In the question I linked to, it might take a while for the MathJax to render, so you'll need to be patient. $\endgroup$ Mar 20 '19 at 3:05
  • $\begingroup$ @JoelReyesNoche In my opinion, this is not a duplicate, since the OP is asking about striking out text and not mathematical formulas. (This message in chat can also be considered as a confirmation that they are asking about text: "And yes I wanted to put a line through a word, not an equation.".) Of course, it is possible the the duplicate for such question is somewhere on this meta, too - I did not find it in the short time I've spent searching. $\endgroup$ Mar 22 '19 at 6:15
  • $\begingroup$ @MartinSleziak, okay, I'm voting to reopen. $\endgroup$ Mar 22 '19 at 8:32

For text you do can simply use the corresponding html tag and write <s>strikethrough text</s> to get: strikethrough text. I will explicitly mention that this works in posts but not in comments. See also: Does Markdown have a way to express strikeout? and How to strike text?

I will also add that in chat you can use the syntax ---strikethrough text---. (Although in this question you are probably interested more in posts on main than in chat.)

If you want something similar in equations, you might have a look at the older posts on this meta, such as Striking out equations and the entry on Crossing out things in the MathJax tutorial on this meta site.

  • 2
    $\begingroup$ This comment is just to illustrate that the same syntax does not work in comments: <s>strikethrough text</s>. $\endgroup$ Mar 20 '19 at 3:27
  • $\begingroup$ Thank you for your answer $\endgroup$
    – user486983
    Mar 20 '19 at 3:56