summaryrefslogtreecommitdiff
path: root/macros/plain/graphics/graphicx.tex
blob: 460b82ec0388846e7d40e531d1513fb6a67d1e09 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
% Plain TeX interface to graphicx package.
% David Carlisle


\input miniltx

% ttfamily used in draft mode to show filenames.
\ifx\ttfamily\@undefined
 \let\ttfamily\tt
\fi


\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\GRAPHICS@detokenize\detokenize
\ifx\detokenize\@undefined
  \def\detokenize#1{#1}
\fi
\let\GRAPHICS@protected\protected
\ifx\protected\@undefined
  \let\protected\relax
\fi
\input graphicx.sty

\let\detokenize\GRAPHICS@detokenize
\let\protected\GRAPHICS@protected
\resetatcatcode