summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/graphics-cfg/graphics.cfg')
-rw-r--r--Master/texmf-dist/tex/latex/graphics-cfg/graphics.cfg103
1 files changed, 103 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/graphics-cfg/graphics.cfg b/Master/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
new file mode 100644
index 00000000000..85f95c463ff
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
@@ -0,0 +1,103 @@
+% https://creativecommons.org/publicdomain/zero/1.0/
+
+\ProvidesFile{graphics.cfg}%
+ [2016/01/02 v1.10 sample graphics 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}%
+ % Load package epstopdf if
+ % a) LaTeX is running (plain TeX users are on their own),
+ % b) and shell escape (\write18) is enabled (possibly restricted),
+ % c) and \DoNotLoadEpstopdf either does not exist or is not \relax,
+ % d) and neither pst-pdf nor pdftricks is loaded (by \begin{document}).
+ %
+ % In other words, by default .eps files will be automatically
+ % converted to .pdf files when outputting pdf. This can be wrong!
+ % If the .pdf is the source, rather than the .eps, you should put
+ % \newcommand{\DoNotLoadEpstopdf}{}
+ % before even the \documentclass line of your document.
+ %
+ % More information about the epstopdf run will be in the .log file;
+ % see http://ctan.org/pkg/epstopdf-pkg for more info about the
+ % epstopdf package itself. In turn, it calls the epstopdf script
+ % (http://ctan.org/pkg/epstopdf).
+ %
+ % For the first discussion and background on this, see the thread on latex-l:
+ % http://thread.gmane.org/gmane.comp.tex.latex.latex3/1465
+ %
+ \begingroup\expandafter\expandafter\expandafter\endgroup
+ \expandafter\ifx\csname DoNotLoadEpstopdf\endcsname\relax
+ \begingroup\expandafter\expandafter\expandafter\endgroup
+ \expandafter\ifx\csname AtEndOfPackage\endcsname\relax
+ \else
+ \AtEndOfPackage{%
+ \AtBeginDocument{%
+ \@ifpackageloaded{pst-pdf}{}{%
+ \@ifpackageloaded{pdftricks}{}{%
+ \RequirePackage{pdftexcmds}[2007/11/11]%
+ \expandafter\ifx\csname pdf@shellescape\endcsname\relax
+ \else
+ \ifnum\pdf@shellescape>0 %
+ \RequirePackage{epstopdf-base}[2009/07/12]%
+ \fi
+ \fi
+ }% pdftricks not loaded
+ }% pst-pdf not loaded
+ }% AtBeginDocument block
+ }% AtEndofPackage block
+ \fi % AtEndofPackage not defined
+ \fi % DoNotLoadEpstopdf not defined
+\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{graphics}{Unexpected configuration}{}
+\fi
+\endinput