Hi, I've been helping with the LilyPond docs, and I noticed that the
PDF output of TexInfo has a CMYK black that doesn't print as fully
black on home printers. Instead, it renders as a very dark gray
on-screen, and a very dark halftone in print, making the letter forms
look rough.

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

Andrew
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

Reply via email to