I guess the default printing (space for mul) looks cleaner. Since LaTeX printing can use variable spacing it's feasible to use a space in this way (contrast this with the monospace Unicode printer, which uses 'x⋅y' instead of 'x y').
Aaron Meurer On Mon, Nov 16, 2015 at 4:22 PM, Denis Akhiyarov <[email protected]> wrote: > this works great! Aaron, post your answer on SO, so that I can upvote it. > > why is this not default behavior? > > On Monday, November 16, 2015 at 2:12:21 PM UTC-6, Aaron Meurer wrote: >> >> init_printing() has an argument latex_printer, so you can do something >> like >> >> init_printing(latex_printer=lambda *args, **kwargs: latex(*args, >> mul_symbol='dot', **kwargs)) >> >> Aaron Meurer >> >> On Mon, Nov 16, 2015 at 10:00 AM, Denis Akhiyarov >> <[email protected]> wrote: >> > 3 issues on github seem to be related to this latex printing deficiency: >> > >> > https://github.com/sympy/sympy/issues?utf8=%E2%9C%93&q=mul_symbol+ >> > >> > so this maybe a good starting point to fix this? >> > >> > On Friday, November 13, 2015 at 6:17:31 PM UTC-6, Denis Akhiyarov wrote: >> >> >> >> also mentioned here: >> >> >> >> >> >> >> >> http://stackoverflow.com/questions/18478131/use-a-symbol-for-multiplication-operator-in-sympy-output-in-ipython-notebook >> >> >> >> On Friday, November 13, 2015 at 6:16:32 PM UTC-6, Denis Akhiyarov >> >> wrote: >> >>> >> >>> can I pass mul_symbol='dot' to init_printing? I see that this was >> >>> asked >> >>> few years ago but not implemented. The problem is no separation >> >>> between >> >>> variables. >> >>> >> >>> https://groups.google.com/forum/#!topic/sympy/TUfxX9J32XQ >> > >> > -- >> > 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/e84fca0a-6ac7-407b-a2f5-af1f2fbc6a83%40googlegroups.com. >> > >> > For more options, visit https://groups.google.com/d/optout. > > -- > 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/73b1d57d-735d-4883-ad12-6c549921107d%40googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. -- 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/CAKgW%3D6%2BmpgX%3DongQYd5sPBru69s-o1Sywa%3DU631X8BGX7Nk2Tw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
