![]() The syntax is very easy: xlabel ($this-is-the-label$).ģ. If I put the mouse on the LaTeX code, SciNotes, the built-in editor shows, an all-black preview (Figure 2), while the blue part is not visible.Ģ. On the plot, I can see the first part written in blue and the second in black. Two or more colours are possible by adding the LaTeX command \textcolor. In this example, the full title is written in the colour blue. ![]() First, its necessary to consider that a text written in LaTeX must be included between two $ symbols. The syntax is: title ($this-is-the-title$,color,color-name). Lets consider the plot shown in Figure 1, which shows two bell-shaped curves: the witch of Agnesi (Reference 3) and the function of Gauss. Its not necessary to install LaTeX to use it with Scilab. The rendering engine is based on JLaTeXMath (see Reference 1), a fork of JMathTeX (Reference 2) which is a Java library for the mathematical mode of LaTeX. Version 5.2 is the first version of Scilab in which it is possible to use LaTeX. Since the full code is too long for a printed article, its freely (as in freedom and in beer) available at All the code presented here has been tested with Scilab 5.5.1 under Linux Mint 17 Xfce. The first part of this article is about the use of LaTeX with Scilab, and the second concerns the keywords and how to use them to build a syntax highlighting file for GNU Emacs and Vim. Scilab ( ) is open source software for numerical computation with a syntax similar to MathWorks MATLAB. It is aimed at readers interested in technical computation. This article, the last of a four-part series on Scilab, takes a look at LaTeX and syntax highlighting with Scilab.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |