Hi all,

Long ago I noticed that the text in our PDF manuals is fully black,
which results in rough-looking text when printed:
http://lists.gnu.org/archive/html/lilypond-devel/2008-10/msg00059.html

Attached is a patch which corrects this, and the printed output is
noticeably improved. (The on-screen output is nearly
indistinguishable.)

I'll send this to the TexInfo folks as well.

Andrew
From b2608a3c68f677729d5b72379d18b978b8c6236a Mon Sep 17 00:00:00 2001
From: Andrew Hawryluk <ahawry...@gmail.com>
Date: Wed, 12 Aug 2009 21:14:42 -0600
Subject: [PATCH] Fix TexInfo PDF output text color

Changed CMKY colors to RGB colors, as RGB black prints
better than CMYK black on home printers.
---
 tex/texinfo.tex |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/tex/texinfo.tex b/tex/texinfo.tex
index c7c92b8..8d86b92 100644
--- a/tex/texinfo.tex
+++ b/tex/texinfo.tex
@@ -1332,12 +1332,12 @@ output) for that.)}
 \ifpdf
   %
   % Color manipulation macros based on pdfcolor.tex.
-  \def\cmykDarkRed{0.28 1 1 0.35}
-  \def\cmykBlack{0 0 0 1}
+  \def\rgbDarkRed{0.50 0.09 0.12}
+  \def\rgbBlack{0 0 0}
   %
   % k sets the color for filling (usual text, etc.);
   % K sets the color for stroking (thin rules, e.g., normal _'s).
-  \def\pdfsetcolor#1{\pdfliteral{#1 k  #1 K}}
+  \def\pdfsetcolor#1{\pdfliteral{#1 rg  #1 RG}}
   %
   % Set color, and create a mark which defines \thiscolor accordingly,
   % so that \makeheadline knows which color to restore.
@@ -1347,7 +1347,7 @@ output) for that.)}
     \pdfsetcolor{#1}%
   }
   %
-  \def\maincolor{\cmykBlack}
+  \def\maincolor{\rgbBlack}
   \pdfsetcolor{\maincolor}
   \edef\thiscolor{\maincolor}
   \def\lastcolordefs{}
@@ -1442,8 +1442,8 @@ output) for that.)}
   %
   % by default, use a color that is dark enough to print on paper as
   % nearly black, but still distinguishable for online viewing.
-  \def\urlcolor{\cmykDarkRed}
-  \def\linkcolor{\cmykDarkRed}
+  \def\urlcolor{\rgbDarkRed}
+  \def\linkcolor{\rgbDarkRed}
   \def\endlink{\setcolor{\maincolor}\pdfendlink}
   %
   % Adding outlines to PDF; macros for calculating structure of outlines
-- 
1.6.0.4

_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to