[Scilab-users] LaTeX strings in scilab plot : \includegraphics & paperwidth

Antoine Monmayrant antoine.monmayrant at laas.fr
Thu Apr 4 13:10:51 CEST 2019


Hi all,


I've known and used for a long time the possibility of including LaTeX 
in scilab plots, like:

    scf();
    plot(1:10,1:10)
    a=gca()
    xt=a.x_ticks
    nxt=xt;
    nxt.labels(5)="$\lambda$";
    a.x_ticks=nxt;

in order to get x ticks that read "1 2 3 4 λ 6 7 8 9 10".

I've just started to play with the ability to use "\includegraphics[]{}" 
in these LaTeX strings and this brings a question: what are 
\textwidth,\paperwidth,\textheight lengths set to?
I could not get "$\the\paperwidth$" to work, it produces an error :

    scf();
    plot(1:10,1:10)
    a=gca()
    xt=a.x_ticks
    nxt=xt;
    nxt.labels(5)="$\the\paperwidth$";
    a.x_ticks=nxt;

     org.scilab.forge.jlatexmath.ParseException: Unknown symbol or 
command or predefined TeXFormula: 'the'

I suppose the "\the" construct is not supported by jlatexmath...

Any idea?


Cheers,


Antoine

-- 
+++++++++++++++++++++++++++++++++++++++++++++++++++++++

  Antoine Monmayrant LAAS - CNRS
  7 avenue du Colonel Roche
  BP 54200
  31031 TOULOUSE Cedex 4
  FRANCE

  Tel:+33 5 61 33 64 59
  
  email : antoine.monmayrant at laas.fr
  permanent email : antoine.monmayrant at polytechnique.org

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20190404/f483dfcf/attachment.htm>


More information about the users mailing list