Skip to content

Commit 6865ab5

Browse files
committed
use xcolor instead of color
Often we use tikz with sagetex, and the former requires xcolor - which doesn't need to co-exist with color, which it extends.
1 parent c15ce73 commit 6865ab5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

py-and-sty.dtx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
% and |listings| for the |sagecommandline| environment.
3030
% \begin{macrocode}
3131
\RequirePackage{listings}
32-
\RequirePackage{color}
32+
\RequirePackage{xcolor}
3333
\lstdefinelanguage{Sage}[]{Python}
3434
{morekeywords={False,sage,True},sensitive=true}
3535
\lstdefinelanguage{SageOutput}[]{}
@@ -68,9 +68,9 @@
6868
\lstdefinestyle{SageOutput}{
6969
style=DefaultSageOutput,
7070
}
71-
\definecolor{dbluecolor}{rgb}{0.01,0.02,0.7}
72-
\definecolor{dgreencolor}{rgb}{0.2,0.4,0.0}
73-
\definecolor{dgraycolor}{rgb}{0.30,0.3,0.30}
71+
\providecolor{dbluecolor}{rgb}{0.01,0.02,0.7}
72+
\providecolor{dgreencolor}{rgb}{0.2,0.4,0.0}
73+
\providecolor{dgraycolor}{rgb}{0.30,0.3,0.30}
7474
% \end{macrocode}
7575
% Unsurprisingly, the |\sageplot| command works poorly without graphics
7676
% support.

0 commit comments

Comments
 (0)