I believe the preview() function does what you want.
http://docs.sympy.org/latest/modules/printing.html#sympy.printing.preview.preview
.

Aaron Meurer

On Mon, Nov 17, 2014 at 9:21 AM, Jason Moore <moorepa...@gmail.com> wrote:

> There should be some functions in the ipython machinery in sympy that
> creates pngs from the latex printer using matplotlib. See:
>
>
> https://github.com/sympy/sympy/blob/master/sympy/interactive/printing.py#L34
>
>
> Jason
> moorepants.info
> +01 530-601-9791
>
> On Mon, Nov 17, 2014 at 9:23 AM, Dario Beraldi <dario.bera...@gmail.com>
> wrote:
>
>>
>>
>> On Monday, November 17, 2014 8:13:56 AM UTC, jeanbi...@gmail.com wrote:
>>>
>>> I'd love to be able to save a sympy LaTeX-ified result as an image file
>>> to export into other documents.  In my business I have to create Powerpoint
>>> and am trying python-pptx for this.  It allows incorporating images
>>> programmatically.
>>>
>>> I've searched the sympy documentation and other sources but surprisingly
>>> have not found anything for equations.  I believe that plots can be saved.
>>> I'm sure I've missed something.
>>>
>>> Suggestions greatly appreciated.
>>>
>>> --- JBB
>>>
>>
>> Google'ing around I found latexmath2png
>> <http://code.google.com/p/latexmath2png/> (*A versatile program and
>> Python module to allow conversion of LaTeX math equations in to PNG images*)
>> which seems to do what you are after? (I don't anything about it, just
>> found it right now).
>>
>> Hope it helps!
>>
>>
>>  --
>> 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 sympy+unsubscr...@googlegroups.com.
>> To post to this group, send email to sympy@googlegroups.com.
>> 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/faa755d6-1795-41c4-a523-f90092732537%40googlegroups.com
>> <https://groups.google.com/d/msgid/sympy/faa755d6-1795-41c4-a523-f90092732537%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> 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 sympy+unsubscr...@googlegroups.com.
> To post to this group, send email to sympy@googlegroups.com.
> 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/CAP7f1AgRJceWP7-bCsJE1MJAQqa14Tm9upzEabCnGnjKfqDpcQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/sympy/CAP7f1AgRJceWP7-bCsJE1MJAQqa14Tm9upzEabCnGnjKfqDpcQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> 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 sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
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%3D6JS%2BdQOskc2EBb4QfbeZXr_1mr%3DtdNbsS_bUDkvQtF%2BEw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to