Mathjax: strikeout the text

Created on 13 May 2014  路  4Comments  路  Source: mathjax/MathJax

Hi I'm new using MathJax and sorry for silly question:

Can one use \sout or something like that to strikeout the text/equations?

Expected Behavior

Most helpful comment

You can use the enclose extension and do \enclose{horizontalstrike}{...} to strike-through an expression with a horizontal line.

All 4 comments

Hi,

\sout is a text-mode command which is why MathJax does not implement it -- MathJax focuses on math-mode macros.

However, the cancel package provides various macros for math mode which is why it's implemented in MathJax as the cancel extension -- see our docs at http://docs.mathjax.org/en/latest/tex.html#cancel

Thanks!!!
It seems there is no easy way to strikeout with horizontal line.

You can use the enclose extension and do \enclose{horizontalstrike}{...} to strike-through an expression with a horizontal line.

Thanks!!!
That's exactly what I wanted to do!

Was this page helpful?
0 / 5 - 0 ratings