% 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
