Home python Render Latex in Python

Render Latex in Python

Author

Date

Category

Good day! Is there a library for the third python, which allows you to convert Latex code to a PNG image? There is a bunch of Sympy + Matplotlib, but this is a crutch. There are also visible axes, very bad with the size of the font and the pictures itself, and so

I need me in the process of processing to raise her the list of fifty LATEX lines and get fifty pictures at the exit.


Answer 1, Authority 100%

The question is resolved. In case someone else will search.

import sympy
Sympy.PreView (R '$$ \ FRAC {5} {a ^ {2}} $$', viewer = 'file', filename = 'test.png')

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions