Status: Accepted
Owner: [email protected]
Labels: Type-Enhancement Priority-Medium

New issue 1249 by [email protected]: Improve LaTeX Printing Support
http://code.google.com/p/sympy/issues/detail?id=1249

A holding issue for my work relating to improving the LaTeX printing  
support, as described in:  
http://groups.google.com/group/sympy/browse_thread/thread/4ef28665a03de865

First up is support for showing multiplication symbols. The optional  
parameter mul_symbol
which can be one of None (default), 'ldot', 'dot' and 'times'. It is  
probably best explained with an
example:
latex(S('2*x*y*sin(x)'), mul_symbol='dot') gives:
'$2 \\cdot x \\cdot y \\cdot \\operatorname{sin}\\left(x\\right)$'

This produces an output which is very similar to that of the popular Ti-89  
calculator. 'ldot' uses
r" \,.\, ", a notation which I am told (by Wikipedia) is popular outside of  
the US and UK in
countries that do not use '.' as decimal point. Lastly, there is times,  
which does exactly what is
says on the tin; uses r" \times " as the separator. This makes  
multi-character variables much
more attractive, as a space (' ') often isn't descriptive enough.

The attached patch provides an implementation of this, sans-unit tests. If  
the general design is
okay then I'll add them soon after.

Attachments:
        0001-Add-support-for-multiplication-symbols-to-LaTeXPrint.patch  2.8 KB

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

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

Reply via email to