blob: 0271726719e2dd2f56c4823568be92aaf9e6531d (
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
|
\ProvidesFile{color.cfg}%
[2005/10/12 v1.3b color configuration of teTeX/TeXLive, extended for XeTeX]
% 2005/10/12 moved this here to avoid shipping modified graphics.sty
\DeclareOption{xetex}{\def\Gin@driver{xetex.def}}
% Select an appropriate default driver
\begingroup
\chardef\x=0\relax
% check pdfTeX
\@ifundefined{pdfoutput}{}{%
\ifcase\pdfoutput
\else
\chardef\x=1\relax
\fi
}%
% check VTeX
\@ifundefined{OpMode}{}{%
\chardef\x=2\relax
}%
% check XeTeX
\@ifundefined{XeTeXversion}{}{%
\chardef\x=3\relax
}%
\expandafter\endgroup
\ifcase\x
% default case
\def\Gin@driver{dvips.def}%
\ExecuteOptions{dvips}%
\or
% pdfTeX is running in pdf mode
\def\Gin@driver{pdftex.def}%
\ExecuteOptions{pdftex}%
\or
% VTeX is running
\def\Gin@driver{vtex.def}%
\ExecuteOptions{vtex}%
\else
% XeTeX is running
\def\Gin@driver{xetex.def}%
\ExecuteOptions{xetex}%
\fi
\endinput
|