summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pict2e/pict2e.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/pict2e/pict2e.cfg')
-rw-r--r--Master/texmf-dist/tex/latex/pict2e/pict2e.cfg60
1 files changed, 38 insertions, 22 deletions
diff --git a/Master/texmf-dist/tex/latex/pict2e/pict2e.cfg b/Master/texmf-dist/tex/latex/pict2e/pict2e.cfg
index 5669b4eb746..81f901972ac 100644
--- a/Master/texmf-dist/tex/latex/pict2e/pict2e.cfg
+++ b/Master/texmf-dist/tex/latex/pict2e/pict2e.cfg
@@ -6,9 +6,9 @@
%%
%% p2e-drivers.dtx (with options: `cfg')
%%
-%% Copyright (C) 2003, 2004, 2008, 2009, 2011
-%% Rolf Niepraschk, Rolf.Niepraschk@ptb.de
-%% Hubert Gaesslein, HubertJG@open.mind.de
+%% Copyright (C) 2003-2016
+%% Rolf Niepraschk, Rolf.Niepraschk@gmx.de
+%% Hubert Gaesslein,
%% Josef Tkadlec, j.tkadlec@email.cz
%%
%% This work may be distributed and/or modified under the
@@ -24,39 +24,55 @@
%% This work consists of all files listed in `manifest.txt'.
%%
\ProvidesFile{pict2e.cfg}%
- [2011/04/05 v0.1t
+ [2016/02/05 v0.1u
pict2e configuration for teTeX/TeXLive]
%% Select an appropriate default driver.
\begingroup
\chardef\x=0 %
- % check pdfTeX
- \@ifundefined{pdfoutput}{}{%
- \ifcase\pdfoutput
+ % check luatex
+ \ifx\luatexversion\@undefined
+ % check pdfTeX
+ \@ifundefined{pdfoutput}{}{%
+ \ifcase\pdfoutput
+ \else
+ \chardef\x=1 %
+ \fi
+ }%
+ % check VTeX
+ \@ifundefined{OpMode}{}{%
+ \chardef\x=2 %
+ }%
+ % check XeTeX
+ \@ifundefined{XeTeXrevision}{}{%
+ \chardef\x=3 %
+ }%
+ \else
+ \ifnum\luatexversion>85
+ \ifnum\outputmode>0
+ \chardef\x=4\relax
+ \fi
\else
- \chardef\x=1 %
+ \ifnum\pdfoutput>0
+ \chardef\x=1\relax
+ \fi
\fi
- }%
- % check VTeX
- \@ifundefined{OpMode}{}{%
- \chardef\x=2 %
- }%
- % check XeTeX
- \@ifundefined{XeTeXrevision}{}{%
- \chardef\x=3 %
- }%
+ \fi
\expandafter\endgroup
\ifcase\x
- % default case
+ % 0: default case
\ExecuteOptions{dvips}%
\or
- % pdfTeX is running in pdf mode
+ % 1: pdfTeX is running in pdf mode
\ExecuteOptions{pdftex}%
\or
- % VTeX is running
+ % 2: VTeX is running
\ExecuteOptions{vtex}%
-\else
- % XeTeX is running
+\or
+ % 3: XeTeX is running
\ExecuteOptions{xetex}%
+\or
+ % 4: LuaTeX (> 0.85) is running
+ \ExecuteOptions{luatex}%
\fi
%% \ExecuteOptions{pstarrows}
\endinput