[R] pdfcolor (and more)
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Mon Jul 23 23:53:55 CEST 2001
Tim Hoar <thoar at cgd.ucar.edu> writes:
> Perhaps at one time it was included in pdftex ...
>
> I downloaded /pub/tex/local/cstug/thanh/pdftex/0.14h/pdftex-20010417.tgz
> (The source of the distribution mentioned at the TUG site Kurt references.)
>
> installed it ... and lo ... there is NO pdfcolor.tex file in the
> distribution. I downloaded it from the DUKE mirror with essentially the
> same result.
>
> As you can see from my original post ... I am using pdfTeX circa May, 2000
> and the newest one (without pdfcolor.tex) is circa April 2001.
>
> I also used the CTAN search for pdfcolor.tex to no avial, so I am guessing it
> is not currently in the distribution.
>
> What now?
Hmmm. Sounds like we need to investigate a little. The file *is*
present in tetex 1.0.7:
[pd at butterfly R]$ rpm -qf /usr/share/texmf/pdftex/plain/misc/pdfcolor.tex
tetex-1.0.7-15
The file itself has a bunch of color definition, as in
\def\cmykGreenYellow{0.15 0 0.69 0}
\def\cmykYellow{0 0 1 0}
...
\def\GreenYellow{\pdfsetcolor{\cmykGreenYellow}}
\def\Yellow{\pdfsetcolor{\cmykYellow}}
...
and the following stuff at the end:
\def\pdfsetcolor#1{\pdfliteral{#1 k}}
\def\setcolor#1{\mark{#1}\pdfsetcolor{#1}}
\pdfoutput=1
\def\maincolor{\cmykBlack}
\pdfsetcolor{\maincolor}
\def\makefootline{
\baselineskip24pt
\line{\pdfsetcolor{\maincolor}\the\footline}}
\def\makeheadline{%
\edef\M{\topmark}
\ifx\M\empty\let\M=\maincolor\fi
\vbox to 0pt{\vskip-22.5pt
\line{\vbox to8.5pt{}%
\pdfsetcolor{\maincolor}\the\headline\pdfsetcolor{\M}}\vss}%
\nointerlineskip}
You might want to investigate whether that code got migrated to other
parts of pdftex...
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list