diff options
Diffstat (limited to 'macros/latex/contrib/sagetex/py-and-sty.dtx')
-rw-r--r-- | macros/latex/contrib/sagetex/py-and-sty.dtx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/macros/latex/contrib/sagetex/py-and-sty.dtx b/macros/latex/contrib/sagetex/py-and-sty.dtx index 49bf5cd05e..acd92c08e2 100644 --- a/macros/latex/contrib/sagetex/py-and-sty.dtx +++ b/macros/latex/contrib/sagetex/py-and-sty.dtx @@ -29,7 +29,7 @@ % and |listings| for the |sagecommandline| environment. % \begin{macrocode} \RequirePackage{listings} -\RequirePackage{color} +\RequirePackage{xcolor} \lstdefinelanguage{Sage}[]{Python} {morekeywords={False,sage,True},sensitive=true} \lstdefinelanguage{SageOutput}[]{} @@ -68,9 +68,9 @@ \lstdefinestyle{SageOutput}{ style=DefaultSageOutput, } -\definecolor{dbluecolor}{rgb}{0.01,0.02,0.7} -\definecolor{dgreencolor}{rgb}{0.2,0.4,0.0} -\definecolor{dgraycolor}{rgb}{0.30,0.3,0.30} +\providecolor{dbluecolor}{rgb}{0.01,0.02,0.7} +\providecolor{dgreencolor}{rgb}{0.2,0.4,0.0} +\providecolor{dgraycolor}{rgb}{0.30,0.3,0.30} % \end{macrocode} % Unsurprisingly, the |\sageplot| command works poorly without graphics % support. @@ -1243,7 +1243,7 @@ http://doc.sagemath.org/html/en/tutorial/sagetex.html.""".format(jobname, raise SyntaxError(""" SageTeX no longer supports "..." for line continuation in sagexample and sagecommandline environments. Use "....:", which matches what the Sage interpreter uses. See the documentation and example file in -SAGE_ROOT/local/share/doc/sagetex.""") +SAGE_ROOT/venv/share/doc/sagetex.""") if has_cont: cmd.append(line[has_cont.end():]) ret.append((start, end, '\n'.join(cmd))) @@ -1521,9 +1521,9 @@ SAGE_ROOT/local/share/doc/sagetex.""") % \begin{center} % \verb+egrep -v '^( _st_.goboom| ?_st_.current_tex_line|print(.SageT)' filename.sage | md5sum+ % \end{center} -% in a shell. The included |run-sagetex-if-necessary| uses this +% in a shell. The included |sagetex-run| uses this % mechanism to, well, only run Sage when necessary; see -% \autoref{sec:run-sagetex-if-necessary}. +% \autoref{sec:sagetex-run}. % \begin{macrocode} def endofdoc(self): sagef = open(self.filename + '.sagetex.sage', 'r') |