On Thursday, 3 April 2014 11:42:19 UTC-4, Aaron Meurer wrote: > > Python converts \ + character in strings as escaping. The \b in your > string becomes a backspace (see > https://en.wikipedia.org/wiki/ASCII#ASCII_control_code_chart). > > You need to either escape the \, i.e., use '\\bar{\\phi}$', or, much > easier, if you don't care about escaping, use a raw string, which just > means to put an r in front of the quotes, like r'\bar{\phi}'. > > If you want to get LaTeX, pprint() will not do it. You should use > init_printing() to enable latex printing. > > > You can also name your Symbol "phibar" and it will correspond to r"\bar{\phi}" in the LaTeX representation. Cheers, Julien
-- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/1664ba4f-d378-4593-baa1-417ed85caf89%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
