LATEX cross out function

Hello, i created a legend with latex formular. I would like to cross out one variable. Using command “\cancel” was not working. Is there an option availbale?


plot()
legend('$\cancel{a}+b$')

Hello,

The \cancel macro is provided by the cancel package and is not supported. Τhe LaTeX features of Scilab inherit those of JLaTeXMath (GitHub - opencollab/jlatexmath: A Java API to render LaTeX): supported special macros are from amsmath and symbols from amssymb and stmaryrd packages.

S.

Thank you , looks exciting. Can you guide me how to install it for scilab on Windows?

What I meant above is that it is not possible to use other extra packages, even though you may have it somewhere in your computer. However, if you need to cross only one symbol you can use \rlap:

title("$\rlap{\backslash}a+b$")

\rlap{\backslash}a+b

S.

1 Like