1
$\begingroup$

How do I perform a strikethrough on some text I've posted in a question ? I've tried \sout and a few others to no avail. The advanced help page in the editor doesnt provide any assistance either.

Could we potentially add how to do a strikethrough to the advanced help section in the question editor ?

$\endgroup$
2
  • 2
    $\begingroup$ What's Jatex? (I suppose one can tell from context in the answers but it would have be useful to clarify that) $\endgroup$
    – David Z
    Apr 16, 2014 at 18:08
  • $\begingroup$ Is the question How to write Feynman slash notation? $\endgroup$
    – Qmechanic Mod
    Apr 16, 2014 at 20:54

2 Answers 2

3
$\begingroup$

The first thing you need to do is to include the cancel package into your TeX by writing the following in your code:

\require{cancel}

After, it's relatively easy to cancel something by just writing:

\cancel{\displaystyle\int\mathrm d^4x\,\text{whathever}}

you can also use:

\cancelto{to whathever}{whathever}

The result:

hope this helps!!!

$\endgroup$
4
  • $\begingroup$ Nice, but what about adding this into the advanced help section of the editor or at least alluding to the idea that you can use packages in the editor (I personally didn't know the forum supported them) ? meta.physics.stackexchange.com/editing-help $\endgroup$ Apr 16, 2014 at 13:35
  • 1
    $\begingroup$ @AriBenCanaan Check this: meta.math.stackexchange.com/q/5020 $\endgroup$
    – Hakim
    Apr 16, 2014 at 19:04
  • $\begingroup$ Oh, okay, but I still think it's worthwhile linking that in the advanced help section of the main forum editor. Don't you ? Whenever I've been stuck (as a new member) I land up googling my issue and not always getting the right answer. I'm temporarily marking this thread as unanswered so people dont think it's dead. Also, Hakeem, how do I use @ and your name to trigger an immediate reply ? Your name is in Arabic so its making things a wee bit difficult :P $\endgroup$ Apr 17, 2014 at 4:36
  • $\begingroup$ @AriBenCanaan Yes, it is. It also took me some time to be familiar with the main MathJax commands. Just copy/paste, but since you're commenting on one of my post, I immediately get a message that tells me so. ;-) $\endgroup$
    – Hakim
    Apr 17, 2014 at 10:23
2
$\begingroup$

Use <s></s> for striking text. Not sure if there are any supported strikethrough methods in the subset of LaTeX we use here, though.

$\endgroup$
1
  • $\begingroup$ There are! See my answer. $\endgroup$
    – Hakim
    Apr 25, 2014 at 11:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .