diff options
author | Karl Berry <karl@freefriends.org> | 2009-09-28 00:19:49 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-09-28 00:19:49 +0000 |
commit | 1bd3134f65779278dcc7c42f266b8f16a78d9b93 (patch) | |
tree | 8cd56dfdf49027fd337360ae6c3cbe23c86a3904 /Master/texmf-dist/tex/latex | |
parent | 0e25884276894275dca42a047911e9ab0a142ef4 (diff) |
move cfg files to texmf-dist latexconfig, to avoid special case in tlpsrc
git-svn-id: svn://tug.org/texlive/trunk@15496 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/latexconfig/color.cfg | 40 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/latexconfig/graphics.cfg | 103 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/latexconfig/hyperref.cfg | 7 |
3 files changed, 150 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/latexconfig/color.cfg b/Master/texmf-dist/tex/latex/latexconfig/color.cfg new file mode 100644 index 00000000000..0a621ce5220 --- /dev/null +++ b/Master/texmf-dist/tex/latex/latexconfig/color.cfg @@ -0,0 +1,40 @@ +\ProvidesFile{color.cfg}% + [2007/01/18 v1.5 color configuration of teTeX/TeXLive] + +% Select an appropriate default driver +\begingroup + \chardef\x=0\relax + % 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 + }% +\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 diff --git a/Master/texmf-dist/tex/latex/latexconfig/graphics.cfg b/Master/texmf-dist/tex/latex/latexconfig/graphics.cfg new file mode 100644 index 00000000000..a500c629f96 --- /dev/null +++ b/Master/texmf-dist/tex/latex/latexconfig/graphics.cfg @@ -0,0 +1,103 @@ +% Public domain. +% Written by Thomas Esser, Heiko Oberdiek, Sebastian Rahtz, and others. +\ProvidesFile{graphics.cfg}% + [2009/08/28 v1.8 graphics configuration of TeX Live]% + +% Select an appropriate default driver +\begingroup + \chardef\x=0\relax + % 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 + }% +\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. + % + % In other words, by default .eps files will be automatically + % converted to .pdf files when outputting pdf. This can be wrong! + % If you created the .pdf as the source of a graphic, and derived a + % .eps from it, 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 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{% + \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 + }% + \fi + \fi +\or + % VTeX is running + \def\Gin@driver{vtex.def}% + \ExecuteOptions{vtex}% +\else + % XeTeX is running + \def\Gin@driver{xetex.def}% + \ExecuteOptions{xetex}% +\fi + +% Fix for dvips and xdvi versions that can uncompress +% graphic files without an explicite call of gunzip. +% (The fix is not applied for miniltx.tex, because +% \AtEndOfPackage is not available in plainTeX.) +\begingroup\expandafter\expandafter\expandafter\endgroup +\expandafter\ifx\csname AtEndOfPackage\endcsname\relax +\else + \AtEndOfPackage{% + \begingroup + \@ifundefined{DeclareGraphicsRule}{% + \endgroup + }{% + \def\x{dvips.def}% + \expandafter\endgroup + \ifx\x\Gin@driver + \DeclareGraphicsRule{.pz}{eps}{.bb}{}% + \DeclareGraphicsRule{.eps.Z}{eps}{.eps.bb}{}% + \DeclareGraphicsRule{.ps.Z}{eps}{.ps.bb}{}% + \DeclareGraphicsRule{.ps.gz}{eps}{.ps.bb}{}% + \DeclareGraphicsRule{.eps.gz}{eps}{.eps.bb}{}% + \fi + }% + }% +\fi +\endinput diff --git a/Master/texmf-dist/tex/latex/latexconfig/hyperref.cfg b/Master/texmf-dist/tex/latex/latexconfig/hyperref.cfg new file mode 100644 index 00000000000..bffa1722db6 --- /dev/null +++ b/Master/texmf-dist/tex/latex/latexconfig/hyperref.cfg @@ -0,0 +1,7 @@ +\ProvidesFile{hyperref.cfg}% + [2002/06/06 v1.2 hyperref configuration of TeXLive] +% Change default driver to "dvips" instead of "hypertex", +% requires hyperref 2002/06/05 v6.72s +\providecommand*{\Hy@defaultdriver}{hdvips}% +\endinput + |