|
Creating image with equation using LaTex syntax
Source code name: "equiation1.py"
Programming language: Python
Topic: Tools/Misc
DMelt Version 1.4. Last modified: 07/19/1971. License: Free
https://datamelt.org/code/cache/equiation1_654.py
To run this script using the DMelt IDE,
copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.
from jhplot import *
eq="\\frac{\\partial Q}{\\partial t} = \\frac{\\partial s}{\\partial t}\\alpha_{i}\\beta"
image="/tmp/equation.png"
q1=HLatexEq(eq, 104) # equaition with font size 104
q1.export(image)
print "Created :",image
IView(image) # View this image