Re: [Scilab-users] mixing normal and math mode in label
Le 03/02/2016 17:47, grivet a écrit : Thank you Samuel and Jean-Yves. The line xlabel("$\mbox{fréquence (h}^{-1})$"); does exactly what I wanted. A small complement: the first $ must not be followed by a space and the last $ must not be preceded by a space. . ? No problem for me, even with such spaces: xlabel("$ \mbox{fréquence (h}^{-1}) $"); // also works (tested). SG ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] mixing normal and math mode in label
Thank you Samuel and Jean-Yves. The line xlabel("$\mbox{fréquence (h}^{-1})$"); does exactly what I wanted. A small complement: the first $ must not be followed by a space and the last $ must not be preceded by a space. JP Grivet ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] mixing normal and math mode in label
Le 03/02/2016 16:30, grivet a écrit : Hello, How can I insert exponents inside a text label ? I tried: xlabel("frequency (h$^{-1}$)"). This did not work for me (Win 7, Scilab 5.5.1): the Latex part is not interpreted but reproduced verbatim. I don’t know how to mix verbatim and LaTeX but all can be in LaTeX format xlabel("$\text{frequency} (h^{-1})$") Jean-Yves ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
Re: [Scilab-users] mixing normal and math mode in label
Hello, Le 03/02/2016 16:30, grivet a écrit : Hello, How can I insert exponents inside a text label ? I tried: xlabel("frequency (h$^{-1}$)"). This did not work for me (Win 7, Scilab 5.5.1): the Latex part is not interpreted but reproduced verbatim. Thank you for any suggestion JP Grivet . When you need LaTeX in a string, the whole string must be in LaTeX, started with "$" from the beginning, and ended with "$" at its complete end. If you need to mix text and LaTeX as in your example, the text must be protected for instance in a \mbox{}. For you example: xlabel("$\mbox{frequency }(h^{-1})$") // will work Samuel Gougeon ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users