diff options
author | Karl Berry <karl@freefriends.org> | 2016-04-06 21:37:33 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-04-06 21:37:33 +0000 |
commit | 5c59ebfc8bb1cabb783923ac8f627f6982216385 (patch) | |
tree | 66069b24c18cffc5fc74132bfcd7f132a069b1da /Master/texmf-dist/tex/latex/graphics-cfg/color.cfg | |
parent | 5e465bc694b0d7c28b26639f59d4cb54575d1809 (diff) |
use color.cfg and graphics.cfg from latex group; needs recent dvips.def and trig.sty
git-svn-id: svn://tug.org/texlive/trunk@40269 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/graphics-cfg/color.cfg')
-rw-r--r-- | Master/texmf-dist/tex/latex/graphics-cfg/color.cfg | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/graphics-cfg/color.cfg b/Master/texmf-dist/tex/latex/graphics-cfg/color.cfg new file mode 100644 index 00000000000..fd0687958d0 --- /dev/null +++ b/Master/texmf-dist/tex/latex/graphics-cfg/color.cfg @@ -0,0 +1,61 @@ +% https://creativecommons.org/publicdomain/zero/1.0/ + +\ProvidesFile{color.cfg}% + [2016/01/02 v1.6 sample color configuration] + +% Select an appropriate default driver +\begingroup + \chardef\x=0\relax + % check luatex + \ifx\luatexversion\@undefined + % check pdfTeX + \@ifundefined{pdfoutput}{}{% + \ifnum\pdfoutput<1 % + \else + \chardef\x=1\relax + \fi + }% + % check VTeX + \@ifundefined{OpMode}{}{% + \chardef\x=2\relax + }% + % check XeTeX + \@ifundefined{XeTeXversion}{}{% + \chardef\x=3\relax + }% + \else + \ifnum\luatexversion>85 + \ifnum\outputmode>0 + \chardef\x=4\relax + \fi + \else + \ifnum\pdfoutput>0 + \chardef\x=1\relax + \fi + \fi + \fi +\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}% +\or + % XeTeX is running + \def\Gin@driver{xetex.def}% + \ExecuteOptions{xetex}% +\or + % luatex (> 0.85) + \def\Gin@driver{luatex.def}% + \ExecuteOptions{luatex}% +\else + \PackageError{color}{Unexpected configuration}{} +\fi +\endinput |