summaryrefslogtreecommitdiff
path: root/macros/plain/graphics/color.tex
blob: 3a9e095f8fbbc5e758d5c0e9b90aff6955273a58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
% Plain TeX interface to color package.
% David Carlisle

\input miniltx


\ifx\Gin@driver\@undefined
  \ifx\directlua\@undefined
    \ifx\pdfoutput\@undefined
      \def\Gin@driver{dvips.def}
    \else
      \ifnum\pdfoutput=1
        \def\Gin@driver{pdftex.def}
      \else
        \def\Gin@driver{dvips.def}
      \fi
    \fi
  \else
    \def\Gin@driver{luatex.def}
  \fi
\fi


\let\@color@ifcsname\ifcsname
\expandafter\@gobble\csname protected\endcsname
\def\ifcsname mathcolor\endcsname{\iftrue\let\ifcsname\@color@ifcsname}

\input color.sty


\resetatcatcode