mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix for systems where hyperref doesn't invoke ifpdf.sty.
This commit is contained in:
parent
9f4be9b916
commit
a81f182221
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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}}
|
||||||
|
Loading…
Reference in New Issue
Block a user