It appears to be Pygments (source code highlighter) that produces these
lines. I have Pygments 0.10 which "works for me" (TM).
pygments/formatters/latex.py
158: cmndef = r'\textcolor[rgb]{%s}{%s}' % (
Cheers,
Mike
Michael Droettboom wrote:
> Interestingly, sphinx *doesn't* define it for me. One of the first
> things I did was "grep Cap" on the latex build directory.
> I updated sphinx from SVN pretty recently... I wonder if that has
> anything to do with it. If that doesn't fix it, yes, that sounds like
> something to report.
>
> Cheers,
> Mike
>
> John Hunter wrote:
>> On Wed, Jun 11, 2008 at 4:00 PM, John Hunter <[EMAIL PROTECTED]> wrote:
>>
>>
>>> ! LaTeX Error: Command \Cap already defined.
>>> Or name \end... illegal, see p.192 of the manual.
>>>
>>
>> This may have been obvious to all of you,but I am just discovering it.
>> The problem is that *sphinx* is defining \Cap as a color, and this is
>> clashing with the ams name. From Matplotlib.tex::
>>
>> \newcommand\Car[1]{\textcolor[rgb]{0.73,0.38,0.84}{#1}}
>> \newcommand\Caq[1]{\textcolor[rgb]{0.38,0.68,0.84}{#1}}
>> \newcommand\Cap[1]{\textcolor[rgb]{0.78,0.36,0.04}{#1}}
>> \newcommand\Caw[1]{\textcolor[rgb]{0.13,0.50,0.31}{#1}}
>>
>> but I haven't yet found the file which is adding this. This looks
>> like a docutils/sphinx bug.
>>
>> JDH
>> JDH
>>
>
--
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel