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

View File

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

View File

@ -42,10 +42,12 @@
\fi \fi
% for PDF output, use colors and maximal compression % for PDF output, use colors and maximal compression
\newif\ifsphinxpdfoutput\sphinxpdfoutputfalse
\ifx\pdfoutput\undefined\else\ifcase\pdfoutput \ifx\pdfoutput\undefined\else\ifcase\pdfoutput
\let\py@NormalColor\relax \let\py@NormalColor\relax
\let\py@TitleColor\relax \let\py@TitleColor\relax
\else \else
\sphinxpdfoutputtrue
\input{pdfcolor} \input{pdfcolor}
\def\py@NormalColor{\color[rgb]{0.0,0.0,0.0}} \def\py@NormalColor{\color[rgb]{0.0,0.0,0.0}}
\def\py@TitleColor{\color{TitleColor}} \def\py@TitleColor{\color{TitleColor}}