[scilab-Users] xstring displays strings formatted with prettyprint without space

Alexander Raab e0425956 at student.tuwien.ac.at
Mon Aug 2 17:57:10 CEST 2010


Thx,

works perfect now.
Alexander



Am 02.08.2010 um 15:50 schrieb calixte <calixte.denizet at ac-rennes.fr>:

> Le lundi 02 août 2010 à 14:57 +0200, Alexander Raab a écrit :
>> Hi,
>>
>
> Hello Alexander,
>
>> I have a problem with xstring and prettyprint.
>>
>> Scilab 5.2.2 and 5.3.0 beta2
>>
>>
>> xstring(0,0,"Hello World") works correct
>>
>> xstring(0,0,prettyprint("Hello World")) space is missing between  
>> the 2 words
>>
>> xstring(0,0,prettyprint("Hello\ World"))  works correct
>>
>> Is it necessary to use "\ " instead of " " ?
>>
>
> prettyprint("Hello World") generates the string $Hello World$ and in
> math mode in LaTeX white spaces are ignored.
>
> prettyprint is used to convert Scilab's variables into LaTeX, TeX and
> MathML (help prettyprint)
>
> You can use LaTeX expression directly in xstring :
>
> --> xstring(0,0,"$\mbox{Hello World}$");
>
> since in a mbox you're in text mode.
>
> You can create a function to enclose your string with '$\mbox{' and  
> '}$'
>
> Cheers,
>
> Calixte
>
>> best regards
>> Alexander
>>
>>
>
>



More information about the users mailing list