Revision: 3672 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3672&view=rev Author: mdboom Date: 2007-08-03 11:30:25 -0700 (Fri, 03 Aug 2007)
Log Message: ----------- Make LaTeX preview show things in displaymath mode, since that's what we're trying to emulate. Modified Paths: -------------- trunk/matplotlib/examples/mathtext_examples.py Modified: trunk/matplotlib/examples/mathtext_examples.py =================================================================== --- trunk/matplotlib/examples/mathtext_examples.py 2007-08-03 17:58:07 UTC (rev 3671) +++ trunk/matplotlib/examples/mathtext_examples.py 2007-08-03 18:30:25 UTC (rev 3672) @@ -1,6 +1,6 @@ #!/usr/bin/env python -import os, sys +import os, sys, re stests = [ r'Kerning: AVA $AVA$', @@ -66,6 +66,7 @@ fd.write("\\begin{enumerate}\n") for i, s in enumerate(stests): + s = re.sub(r"(?<!\\)\$", "$$", s) fd.write("\\item %s\n" % s) fd.write("\\end{enumerate}\n") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Matplotlib-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins