Closed lixumin-zai closed 3 weeks ago
Please help the adorable little turtle
@lixumin-zai \sout
is a text-mode command which is why MathJax does not implement it https://github.com/mathjax/MathJax/issues/819#issuecomment-42939918
You can use the enclose extension and do \enclose{horizontalstrike}{...}
to strike-through an expression with a horizontal line.
\underline{$\textcolor{red}{\enclose{horizontalstrike}{(-1,-\dfrac{\sqrt{3}}{3})\cup(\dfrac{\sqrt{3}}{3},1)}}$}
The little turtle is very grateful to you.
origin text: \underline{$\textcolor{red}{\sout{(-1,-\dfrac{\sqrt{3}}{3})\cup(\dfrac{\sqrt{3}}{3},1)}}$}
render in vscode:
but there is an error when using the script "https://cdn.jsdelivr.net/npm/mathpix-markdown-it@2.0.4/es5/bundle.js" to render it : [TexConvert] ERROR=> { "message": "TeX error: Undefined control sequence \sout", "latex": "\textcolor{red}{\sout{(-1,-\dfrac{\sqrt{3}}{3})\cup(\dfrac{\sqrt{3}}{3},1)}}" }
how to fix it ðŸ˜