I see that this isn't a LaTeX error, but I think Tony's comment is still 
somewhat valid.  Since mathtext's parser is a direct subset of LaTeX's, 
and since $$ is a syntax error in LaTeX, it also is in mathtext.  (This 
is really a side effect of make such a direct copy of the parser, rather 
than a deliberate choice).  We can probably add a workaround to the 
parser, but I personally don't have a problem with it raising an 
exception.  It doesn't seem to be a very useful thing to be able to do.  
What's your use case?

Cheers,
Mike

Jörgen Stenarson wrote:
> Tony Yu skrev:
>   
>> On Jun 3, 2008, at 4:18 PM, Jörgen Stenarson wrote:
>>     
>>> using an empty mathtext "$$" in labels generates an exception. See
>>> example and traceback below.
>>>       
>> My guess is that this is a LaTeX error. If you enter $$ in a normal 
>> LaTeX document, you will get:
>>
>>
>>     
> I don't think so. I'm using mathtext i.e. matplotlibs own latex 
> interpreter. And I get the same error with $$ $$.
>
> /Jörgen
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Matplotlib-devel mailing list
> Matplotlib-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>   

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to