Comment #2 on issue 2760 by asmeu...@gmail.com: latex(symbol_names) not working with ~x
http://code.google.com/p/sympy/issues/detail?id=2760

Besides, every time you need latex to use x's symbol_name, you need to pass the symbol_names dictionary.

This was intentional, because it keeps the code cleaner to keep this information outside of Symbol. I recommend that you just compile the dictionary (perhaps programmatically, depending on what you're doing), and pass it to the latex() function whenever you use it. This is a simple matter of rewriting the code you already have, since you have to keep track of that information anyway (to pass it to var). If you are trying to reuse code from Sage, perhaps you could create your own custom var() function that creates the symbol and also appends the latex name to the dictionary for you.

Regarding latex(Not(x)), this is a bug. I'll look into it. I also noticed that there isn't really a latex printer for Not, so that should be fixed too.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to