John Hunter wrote: > On 7/16/07, Michael Droettboom <[EMAIL PROTECTED]> wrote: >> I'm working on some improvements to the mathtext engine on a branch. >> Feel free to join in if curious, but I expect to break lots of things as >> I go. >> >> https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/mathtext_mgd/ >> >> >> >> I've collected a bunch of math expressions from the source tree for use >> in regression testing. If you have any math strings of your own that >> you want to make sure I don't break, please send them to me (probably >> should be off-list to conserve noise). >> >> Here's the preliminary TODO list I'm working with in no particular order >> (compiled from the TODO list in mathtext.py and the list of improvements >> in mathtext2.py): >> >> 1. Deal with nested sub/superscripts, such as $x_i_j$, equivalent to >> $x_{i_j}$ > > Hmm, I thought that already worked -- it's been a long time since I > touched that code. What is the problem here? The j is the same size as the i, because its font size is (somehow) determined as if it were attached to the x. My fix was to make '_' be an infix operator that's right associative. That makes $x_i_j$ parse just like $x_{i_j}$, and like how LaTeX appears to behave. > How about a short one :-) I think one of the most important > enhancements will be to support embedded mathtext expressions, eg > > r'some text $\sigma=1$ some more text' > > Currently we have to do something like > > r'$\rm{some text\ }\sigma=1\rm{\ some more text}$' > > which is pretty bad. I'll add that to the list.
Cheers, Mike ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel