Le samedi 22 février 2020 14:35:49 UTC+1, Eric Gourgoulhon a écrit :
>
> Hi Emmanual,
>
>
> Le vendredi 21 février 2020 20:39:31 UTC+1, Emmanuel Charpentier a écrit :
>>
>> But such variable names may cause havoc in a \LaTeX output. Consider:
>>
>> sage: var("λ")
>> λ
>>
>> This works
>>
>> sage: latex(λ^2)
>> λ^{2}
>>
>> Ahem: the rendition of λ is ... "λ", which pdflatex doesn't accept :
>>
>> sage: view(λ^2)
>> An error occurred.
>>
>
> A solution here is to declare explicitly the LaTeX name of the symbolic 
> variable at creation, as we did when using only ASCII names:
>

Of course. but this somehow defeats the purpose of "easy use of Unicode 
characters"...

BTW : without this addituin, what happents whet you try to export a Jupyter 
notebook containing such an Unicode character to PDF ?

Cordially,
 

>
> sage: λ = var('λ', latex_name=r'\lambda')
> sage: view(λ^2)
>
> works perfectly.
>
> Best regards,
>
> Eric.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/70c2dff8-24fe-4f04-b762-84cb5d1adfed%40googlegroups.com.

Reply via email to