Render Latex text with python

后端 未结 2 540
闹比i
闹比i 2021-01-20 12:48

I\'m trying to render Latex text with python. This is what I tried to do:

import matplotlib.pyplot as plt

txte = r\"\"\"
The \\emph{characteristic polynomia         


        
2条回答
  •  时光说笑
    2021-01-20 13:04

    Maybe you should try to automatically compile it to a png by calling a console command line from python like is done here, and then render the png. This approach requires that Latex is installed on the user computer.

提交回复
热议问题