Comment #12 on issue 1490 by ryanlists: LatexPrinter doprint inline=None
http://code.google.com/p/sympy/issues/detail?id=1490

OK, so I think I have this implemented.  It is on my github repo
git://github.com/ryanGT/sympy.git in the branch latex_mode.

'mode' has 4 options: 'plain', 'inline', 'equation' and 'equation*'.  I  
changed the
docstring and doctest and I think they pass (not entirely sure how to run  
doctests,
but bin/doctest -v sympy/printing/latex.py seems to pass 1 test).  There is  
also a
deprecation message for inline as a karg, and I think I handle inline=True  
and
inline=False correctly ('mode'='inline' or 'mode'='equation*').

Because I set the default to 'plain', it breaks all the tests in
printing/tests/test_latex.py.  I think there are 3 options and I don't care  
which we
choose:
1. change the default 'mode' to 'inline' (this is the easiest)
2. remove the '$' from the expected test outputs (right hand sides of the  
assertions)
to make them the expected plain output
3. create an inline_kargs dict and pass it to all the tests (left hand  
sides of the
assertions)

Do those 3 options make sense?  Any thoughts on which is best?

Thanks,

Ryan

--
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 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