summaryrefslogtreecommitdiff
path: root/sphinx/texinputs/sphinx.sty
diff options
context:
space:
mode:
authorgeorg.brandl <devnull@localhost>2008-10-18 18:07:29 +0000
committergeorg.brandl <devnull@localhost>2008-10-18 18:07:29 +0000
commitc837a9e322452c4d46e32630ce726e83d943ede2 (patch)
treea23ff7651bd2dfecb4ea51bde3da59e45beef7c3 /sphinx/texinputs/sphinx.sty
parent51a00c4d976242f1c0e37f32e785766ecbe51b5f (diff)
downloadsphinx-c837a9e322452c4d46e32630ce726e83d943ede2.tar.gz
Fix for systems where hyperref doesn't invoke ifpdf.sty.
Diffstat (limited to 'sphinx/texinputs/sphinx.sty')
-rw-r--r--sphinx/texinputs/sphinx.sty2
1 files changed, 2 insertions, 0 deletions
diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty
index ae6ad3e8..f83bae06 100644
--- a/sphinx/texinputs/sphinx.sty
+++ b/sphinx/texinputs/sphinx.sty
@@ -42,10 +42,12 @@
\fi
% for PDF output, use colors and maximal compression
+\newif\ifsphinxpdfoutput\sphinxpdfoutputfalse
\ifx\pdfoutput\undefined\else\ifcase\pdfoutput
\let\py@NormalColor\relax
\let\py@TitleColor\relax
\else
+ \sphinxpdfoutputtrue
\input{pdfcolor}
\def\py@NormalColor{\color[rgb]{0.0,0.0,0.0}}
\def\py@TitleColor{\color{TitleColor}}