Fix for systems where hyperref doesn't invoke ifpdf.sty.

This commit is contained in:
Georg Brandl 2008-10-18 18:07:29 +00:00
parent 9f4be9b916
commit a81f182221
3 changed files with 4 additions and 2 deletions

View File

@ -20,7 +20,7 @@
%
\renewcommand{\maketitle}{
\rule{\textwidth}{1pt}
\ifpdf
\ifsphinxpdfoutput
\begingroup
% This \def is required to deal with multi-line authors; it
% changes \\ to ', ' (comma-space), making it pass muster for

View File

@ -24,7 +24,7 @@
\let\footnotesize\small
\let\footnoterule\relax
\rule{\textwidth}{1pt}%
\ifpdf
\ifsphinxpdfoutput
\begingroup
% This \def is required to deal with multi-line authors; it
% changes \\ to ', ' (comma-space), making it pass muster for

View File

@ -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}}