[Python-checkins] r62561 - doctools/trunk/sphinx/texinputs/sphinx.sty
georg.brandl
python-checkins at python.org
Mon Apr 28 15:04:58 CEST 2008
Author: georg.brandl
Date: Mon Apr 28 15:04:57 2008
New Revision: 62561
Log:
Fix two inconsistencies w.r.t. colors in sphinx.sty.
Modified:
doctools/trunk/sphinx/texinputs/sphinx.sty
Modified: doctools/trunk/sphinx/texinputs/sphinx.sty
==============================================================================
--- doctools/trunk/sphinx/texinputs/sphinx.sty (original)
+++ doctools/trunk/sphinx/texinputs/sphinx.sty Mon Apr 28 15:04:57 2008
@@ -15,6 +15,8 @@
\RequirePackage{titlesec}
\RequirePackage{color}
+% Define these colors to your liking in the preamble.
+\definecolor{TitleColor}{rgb}{0.126,0.263,0.361}
\definecolor{InnerLinkColor}{rgb}{0.208,0.374,0.486}
\definecolor{OuterLinkColor}{rgb}{0.216,0.439,0.388}
% Define these colors to something not white if you want to have colored
@@ -65,8 +67,7 @@
\input{pdfcolor}
\let\py at LinkColor=\NavyBlue
\let\py at NormalColor=\Black
- \definecolor{MyDarkBlue}{rgb}{0.126,0.263,0.361}
- \def\py at TitleColor{\color{MyDarkBlue}}
+ \def\py at TitleColor{\color{TitleColor}}
\pdfcompresslevel=9
\pdfpagewidth=\paperwidth % page width of PDF output
\pdfpageheight=\paperheight % page height of PDF output
@@ -103,7 +104,7 @@
% this style file.
\newcommand{\py at linkToName}[2]{%
\py at pdfstartlink attr{/Border [0 0 0]} goto name{#1}%
- \py at LinkColor#2\py at NormalColor%
+ \color{InnerLinkColor}#2\py at NormalColor%
\pdfendlink%
}
% Compute the padded page number separately since we end up with a pair of
More information about the Python-checkins
mailing list