.notdef (was: a bug in tex formatting?)

"johann cohen-tanugi" <johann.cohentanugi@...287...> writes:

Actually, I have other problems : I cannot save in many formats. The
bmp is deemed usueless by gimp,

I didn't even know you can save in bmp format. Does png format work
better?

and ps and eps save options gives the following
error message (I am using matplotlib-0.90 on python/ipython 2.4) :
In [1]: show()
---------------------------------------------------------------------------
exceptions.ValueError Traceback (most recent
call last)

[...]

/usr/lib/python2.4/site-packages/matplotlib/mathtext.py in _get_info(self,
font, sym, fontsize, dpi)
   748 num = 0
   749 sym = '.notdef'
--> 750 raise ValueError('unrecognized symbol "%s, %d"' % (sym,
num) )
   751 filename = os.path.join(self.basepath, basename) + '.ttf'
   752 if filename not in bakoma_fonts:

ValueError: unrecognized symbol ".notdef, 0"

Not a very useful error message, given that it sets the values of the
sym and num variables just before reporting the error. In current svn
the line corresponding to your 749 is commented out, so if you could
try either with the svn version or just comment out the line in your
version, you would get a more useful diagnostic. The code looks like

        if latex_to_bakoma.has_key(sym): ...
        elif len(sym) == 1: ...
        else: ... raise ValueError(...)

so it looks like you have used a symbol that mathtext doesn't know
about and that isn't a single letter. I'm guessing that could mean a
misspelled backslash command or a parsing problem like I mentioned in
my previous email where "\tilde{}" is seen as "\tild".

···

--
Jouni K. Sepp�nen
http://www.iki.fi/jks