Le Samedi, Août 27, 2016 19:24 CEST, philippe <rouxph...@gmail.com> a écrit: 
 
> Hi,
> 
> Le 26/08/2016 à 15:00, Antoine Monmayrant a écrit :
> > Hi all,
> > 
> > I tried to use verbatim text inside some latex string, but without success:
> > 
> >    titlepage("$\verb| \alpha |$")
> > 
> 
> since text are displayed as "verbatim" by scilab you don't need \verb ,
> you should just write  titlepage("\alpha").

Thanks Philippe, but nope, it does not work that easily.
It does for "\alpha", but my real use case is a bit more complicated and 
calling titlepage directly is a mess.
I use titlepage(errormessage) where errormessage is a string array with a lot 
of starting and trailing " " (white spaces).
I need to preserve these white spaces and use a monospace font to preserve the 
relative alignment between the different lines in the array.
Doing this is a bit convolved when using titlepage alone:
 - add some character at the begining of each line (to prevent titlepage from 
stripping the white spaces),
 - call titlepage,
 - get a handle the the create textbox,
 - change text justification (middle->lef centered)
 - change font style (0 for monospace).

This is what I use now, but titlepage("$\verb| error message |$") would have 
been more compact and elegant.

Cheers,

Antoine


> 
> Philippe.
> 
> 
> 
> 
> _______________________________________________
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>

_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

Reply via email to