% Very simple macros to show how to use colors with pdftex

\def\cmykGreenYellow{0.15 0 0.69 0}
\def\cmykYellow{0 0 1 0}
\def\cmykGoldenrod{0 0.10 0.84 0}
\def\cmykDandelion{0 0.29 0.84 0}
\def\cmykApricot{0 0.32 0.52 0}
\def\cmykPeach{0 0.50 0.70 0}
\def\cmykMelon{0 0.46 0.50 0}
\def\cmykYellowOrange{0 0.42 1 0}
\def\cmykOrange{0 0.61 0.87 0}
\def\cmykBurntOrange{0 0.51 1 0}
\def\cmykBittersweet{0 0.75 1 0.24}
\def\cmykRedOrange{0 0.77 0.87 0}
\def\cmykMahogany{0 0.85 0.87 0.35}
\def\cmykMaroon{0 0.87 0.68 0.32}
\def\cmykBrickRed{0 0.89 0.94 0.28}
\def\cmykRed{0 1 1 0}
\def\cmykOrangeRed{0 1 0.50 0}
\def\cmykRubineRed{0 1 0.13 0}
\def\cmykWildStrawberry{0 0.96 0.39 0}
\def\cmykSalmon{0 0.53 0.38 0}
\def\cmykCarnationPink{0 0.63 0 0}
\def\cmykMagenta{0 1 0 0}
\def\cmykVioletRed{0 0.81 0 0}
\def\cmykRhodamine{0 0.82 0 0}
\def\cmykMulberry{0.34 0.90 0 0.02}
\def\cmykRedViolet{0.07 0.90 0 0.34}
\def\cmykFuchsia{0.47 0.91 0 0.08}
\def\cmykLavender{0 0.48 0 0}
\def\cmykThistle{0.12 0.59 0 0}
\def\cmykOrchid{0.32 0.64 0 0}
\def\cmykDarkOrchid{0.40 0.80 0.20 0}
\def\cmykPurple{0.45 0.86 0 0}
\def\cmykPlum{0.50 1 0 0}
\def\cmykViolet{0.79 0.88 0 0}
\def\cmykRoyalPurple{0.75 0.90 0 0}
\def\cmykBlueViolet{0.86 0.91 0 0.04}
\def\cmykPeriwinkle{0.57 0.55 0 0}
\def\cmykCadetBlue{0.62 0.57 0.23 0}
\def\cmykCornflowerBlue{0.65 0.13 0 0}
\def\cmykMidnightBlue{0.98 0.13 0 0.43}
\def\cmykNavyBlue{0.94 0.54 0 0}
\def\cmykRoyalBlue{1 0.50 0 0}
\def\cmykBlue{1 1 0 0}
\def\cmykCerulean{0.94 0.11 0 0}
\def\cmykCyan{1 0 0 0}
\def\cmykProcessBlue{0.96 0 0 0}
\def\cmykSkyBlue{0.62 0 0.12 0}
\def\cmykTurquoise{0.85 0 0.20 0}
\def\cmykTealBlue{0.86 0 0.34 0.02}
\def\cmykAquamarine{0.82 0 0.30 0}
\def\cmykBlueGreen{0.85 0 0.33 0}
\def\cmykEmerald{1 0 0.50 0}
\def\cmykJungleGreen{0.99 0 0.52 0}
\def\cmykSeaGreen{0.69 0 0.50 0}
\def\cmykGreen{1 0 1 0}
\def\cmykForestGreen{0.91 0 0.88 0.12}
\def\cmykPineGreen{0.92 0 0.59 0.25}
\def\cmykLimeGreen{0.50 0 1 0}
\def\cmykYellowGreen{0.44 0 0.74 0}
\def\cmykSpringGreen{0.26 0 0.76 0}
\def\cmykOliveGreen{0.64 0 0.95 0.40}
\def\cmykRawSienna{0 0.72 1 0.45}
\def\cmykSepia{0 0.83 1 0.70}
\def\cmykBrown{0 0.81 1 0.60}
\def\cmykTan{0.14 0.42 0.56 0}
\def\cmykGray{0 0 0 0.50}
\def\cmykBlack{0 0 0 1}
\def\cmykWhite{0 0 0 0}

\def\GreenYellow{\pdfsetcolor{\cmykGreenYellow}}
\def\Yellow{\pdfsetcolor{\cmykYellow}}
\def\Goldenrod{\pdfsetcolor{\cmykGoldenrod}}
\def\Dandelion{\pdfsetcolor{\cmykDandelion}}
\def\Apricot{\pdfsetcolor{\cmykApricot}}
\def\Peach{\pdfsetcolor{\cmykPeach}}
\def\Melon{\pdfsetcolor{\cmykMelon}}
\def\YellowOrange{\pdfsetcolor{\cmykYellowOrange}}
\def\Orange{\pdfsetcolor{\cmykOrange}}
\def\BurntOrange{\pdfsetcolor{\cmykBurntOrange}}
\def\Bittersweet{\pdfsetcolor{\cmykBittersweet}}
\def\RedOrange{\pdfsetcolor{\cmykRedOrange}}
\def\Mahogany{\pdfsetcolor{\cmykMahogany}}
\def\Maroon{\pdfsetcolor{\cmykMaroon}}
\def\BrickRed{\pdfsetcolor{\cmykBrickRed}}
\def\Red{\pdfsetcolor{\cmykRed}}
\def\OrangeRed{\pdfsetcolor{\cmykOrangeRed}}
\def\RubineRed{\pdfsetcolor{\cmykRubineRed}}
\def\WildStrawberry{\pdfsetcolor{\cmykWildStrawberry}}
\def\Salmon{\pdfsetcolor{\cmykSalmon}}
\def\CarnationPink{\pdfsetcolor{\cmykCarnationPink}}
\def\Magenta{\pdfsetcolor{\cmykMagenta}}
\def\VioletRed{\pdfsetcolor{\cmykVioletRed}}
\def\Rhodamine{\pdfsetcolor{\cmykRhodamine}}
\def\Mulberry{\pdfsetcolor{\cmykMulberry}}
\def\RedViolet{\pdfsetcolor{\cmykRedViolet}}
\def\Fuchsia{\pdfsetcolor{\cmykFuchsia}}
\def\Lavender{\pdfsetcolor{\cmykLavender}}
\def\Thistle{\pdfsetcolor{\cmykThistle}}
\def\Orchid{\pdfsetcolor{\cmykOrchid}}
\def\DarkOrchid{\pdfsetcolor{\cmykDarkOrchid}}
\def\Purple{\pdfsetcolor{\cmykPurple}}
\def\Plum{\pdfsetcolor{\cmykPlum}}
\def\Violet{\pdfsetcolor{\cmykViolet}}
\def\RoyalPurple{\pdfsetcolor{\cmykRoyalPurple}}
\def\BlueViolet{\pdfsetcolor{\cmykBlueViolet}}
\def\Periwinkle{\pdfsetcolor{\cmykPeriwinkle}}
\def\CadetBlue{\pdfsetcolor{\cmykCadetBlue}}
\def\CornflowerBlue{\pdfsetcolor{\cmykCornflowerBlue}}
\def\MidnightBlue{\pdfsetcolor{\cmykMidnightBlue}}
\def\NavyBlue{\pdfsetcolor{\cmykNavyBlue}}
\def\RoyalBlue{\pdfsetcolor{\cmykRoyalBlue}}
\def\Blue{\pdfsetcolor{\cmykBlue}}
\def\Cerulean{\pdfsetcolor{\cmykCerulean}}
\def\Cyan{\pdfsetcolor{\cmykCyan}}
\def\ProcessBlue{\pdfsetcolor{\cmykProcessBlue}}
\def\SkyBlue{\pdfsetcolor{\cmykSkyBlue}}
\def\Turquoise{\pdfsetcolor{\cmykTurquoise}}
\def\TealBlue{\pdfsetcolor{\cmykTealBlue}}
\def\Aquamarine{\pdfsetcolor{\cmykAquamarine}}
\def\BlueGreen{\pdfsetcolor{\cmykBlueGreen}}
\def\Emerald{\pdfsetcolor{\cmykEmerald}}
\def\JungleGreen{\pdfsetcolor{\cmykJungleGreen}}
\def\SeaGreen{\pdfsetcolor{\cmykSeaGreen}}
\def\Green{\pdfsetcolor{\cmykGreen}}
\def\ForestGreen{\pdfsetcolor{\cmykForestGreen}}
\def\PineGreen{\pdfsetcolor{\cmykPineGreen}}
\def\LimeGreen{\pdfsetcolor{\cmykLimeGreen}}
\def\YellowGreen{\pdfsetcolor{\cmykYellowGreen}}
\def\SpringGreen{\pdfsetcolor{\cmykSpringGreen}}
\def\OliveGreen{\pdfsetcolor{\cmykOliveGreen}}
\def\RawSienna{\pdfsetcolor{\cmykRawSienna}}
\def\Sepia{\pdfsetcolor{\cmykSepia}}
\def\Brown{\pdfsetcolor{\cmykBrown}}
\def\Tan{\pdfsetcolor{\cmykTan}}
\def\Gray{\pdfsetcolor{\cmykGray}}
\def\Black{\pdfsetcolor{\cmykBlack}}
\def\White{\pdfsetcolor{\cmykWhite}}

\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}
