Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strikeout the text #819

Closed
MasaYan24 opened this issue May 13, 2014 · 4 comments
Closed

strikeout the text #819

MasaYan24 opened this issue May 13, 2014 · 4 comments
Labels
Expected Behavior This is how MathJax works

Comments

@MasaYan24
Copy link

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

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

@pkra
Copy link
Contributor

pkra commented May 13, 2014

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

@MasaYan24
Copy link
Author

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

@dpvc
Copy link
Member

dpvc commented May 14, 2014

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

@MasaYan24
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Expected Behavior This is how MathJax works
Projects
None yet
Development

No branches or pull requests

3 participants