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: 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/4ca7b5ca-dabd-4df3-b8ab-d6823e051f3b%40googlegroups.com.