Revision: 6025
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6025&view=rev
Author: mdboom
Date: 2008-08-12 17:58:00 +0000 (Tue, 12 Aug 2008)
Log Message:
-----------
Remove old dvipng support in mathmpl.py, since it is now in Sphinx core.
Modified Paths:
--------------
trunk/matplotlib/doc/sphinxext/mathmpl.py
Modified: trunk/matplotlib/doc/sphinxext/mathmpl.py
===================================================================
--- trunk/matplotlib/doc/sphinxext/mathmpl.py 2008-08-12 17:57:14 UTC (rev 6024)
+++ trunk/matplotlib/doc/sphinxext/mathmpl.py 2008-08-12 17:58:00 UTC (rev 6025)
@@ -86,25 +86,6 @@
LaTeXTranslator.visit_latex_math = visit_latex_math_latex
LaTeXTranslator.depart_latex_math = depart_latex_math_latex
-from os.path import isfile
-
-# This calls out to LaTeX to render the expression
-def latex2png(latex, name):
- f = open('math.tex', 'w')
- f.write(r"""\documentclass[12pt]{article}
- \pagestyle{empty}
- \begin{document}""")
- if inline:
- f.write('$%s$' % latex)
- else:
- f.write(r'\[ %s \]' % latex)
- f.write('\end{document}')
- f.close()
- os.system('latex --interaction=nonstopmode math.tex > /dev/null')
- os.system('dvipng -bgTransparent -Ttight --noghostscript -l10 ' +
- '-o %s math.dvi > /dev/null' % name)
-
-
from matplotlib import rcParams
from matplotlib.mathtext import MathTextParser
rcParams['mathtext.fontset'] = 'cm'
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|