summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/pict2e/p2e-drivers.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/pict2e/p2e-drivers.dtx')
-rw-r--r--Master/texmf-dist/source/latex/pict2e/p2e-drivers.dtx49
1 files changed, 40 insertions, 9 deletions
diff --git a/Master/texmf-dist/source/latex/pict2e/p2e-drivers.dtx b/Master/texmf-dist/source/latex/pict2e/p2e-drivers.dtx
index 13b716b4a2c..09ee38deb0a 100644
--- a/Master/texmf-dist/source/latex/pict2e/p2e-drivers.dtx
+++ b/Master/texmf-dist/source/latex/pict2e/p2e-drivers.dtx
@@ -1,12 +1,13 @@
% \iffalse meta-comment
%
% p2e-drivers.dtx
-% Time-stamp: "p2e-drivers.dtx 2004-06-25 08:23:34 CEST Friday hubertjg"
+% Time-stamp: "p2e-drivers.dtx 2009-08-05 15:25:00 CEST JT"
%
%
-% Copyright (C) 2003, 2004
+% Copyright (C) 2003, 2004, 2009
% Rolf Niepraschk, Rolf.Niepraschk@ptb.de
% Hubert Gaesslein, HubertJG@open.mind.de
+% Josef Tkadlec, j.tkadlec@email.cz
%
%
% This work may be distributed and/or modified under the
@@ -33,6 +34,7 @@
%<pdftex, >\ProvidesFile{p2e-pdftex.def}
%<vtex, >\ProvidesFile{p2e-vtex.def}
%<dvipdfm, >\ProvidesFile{p2e-dvipdfm.def}
+%<xetex, >\ProvidesFile{p2e-xetex.def}
%<textures, >\ProvidesFile{p2e-textures.def}
%<pctexps, >\ProvidesFile{p2e-pctexps.def}
%<pctex32, >\ProvidesFile{p2e-pctex32.def}
@@ -43,22 +45,23 @@
%</driver>
%
%<cfg>\ProvidesFile{pict2e.cfg}%
- [2004/06/25 v0.1r
+ [2009/08/05 v0.1s
%<*!cfg>
- Driver-dependant file (RN,HjG)]
+ Driver-dependant file (RN,HjG,JT)]
%</!cfg>
%<cfg> pict2e configuration for teTeX/TeXLive]
%
%<*driver>
\documentclass{ltxdoc}
\GetFileInfo{p2e-drivers.dtx}
- \def\docdate{2004/06/25}
+ \def\docdate{2009/08/05}
\begin{document}
\title{Graphics drivers for \textsf{pict2e}\thanks
{This document corresponds to \textsf{\filename} \fileversion,
dated \filedate, documentation dated \docdate.}}
- \author{Rolf Niepraschk\thanks{\texttt{Rolf.Niepraschk@ptb.de}}
- \,and Hubert G\"a{\ss}lein\thanks{\texttt{HubertJG@open.mind.de}}}
+ \author{Rolf Niepraschk\thanks{\texttt{Rolf.Niepraschk@ptb.de}},
+ Hubert G\"a{\ss}lein\thanks{\texttt{HubertJG@open.mind.de}}
+ \,and Josef Tkadlec\thanks{\texttt{j.tkadlec@email.cz}}}
\date{\filedate}
% \maketitle
\DocInput{p2e-drivers.dtx}
@@ -66,7 +69,7 @@
%</driver>
% \fi
%
-% \CheckSum{101}
+% \CheckSum{111}
%
% \changes{v0.1g}{2003/11/07}{Translated documentation to English (HjG)}
% \changes{v0.1g}{2003/11/07}{Added driver \texttt{dvipdfm} (RN)}
@@ -85,6 +88,7 @@
% \changes{v0.1p}{2004/03/26}{Minor changes to documentation (HjG)}
% \changes{v0.1q}{2004/04/22}{Added lppl (RN/HjG)}
% \changes{v0.1r}{2004/06/25}{Small fixes in documentation (HjG)}
+% \changes{v0.1s}{2009/08/05}{Support for xetex added (JT)}
%
% \newcommand*\PS{PostScript}
% \newcommand*\PDF{PDF}
@@ -376,6 +380,26 @@
%\fi
%
%
+% \subsection{xetex}
+%
+% A \textsf{pict2e} driver file for the \textsf{xetex} driver
+% (submitted by Apostolos Syropoulos).
+% \begin{macro}{\pIIe@mode}
+% We are about to generate \PDF\ code.
+% \begin{macrocode}
+%<*xetex>
+\def\pIIe@mode{2}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\pIIe@code}
+% \begin{macrocode}
+\def\pIIe@code#1{\special{pdf: literal q #1 Q}}
+%</xetex>
+% \end{macrocode}
+% \end{macro}
+%
+%
% \subsection{dvipdf}
%
% A \textsf{pict2e} driver file for the \textsf{dvipdf} driver
@@ -501,6 +525,10 @@
\@ifundefined{OpMode}{}{%
\chardef\x=2 %
}%
+ % check XeTeX
+ \@ifundefined{XeTeXrevision}{}{%
+ \chardef\x=3 %
+ }%
\expandafter\endgroup
\ifcase\x
% default case
@@ -508,9 +536,12 @@
\or
% pdfTeX is running in pdf mode
\ExecuteOptions{pdftex}%
-\else
+\or
% VTeX is running
\ExecuteOptions{vtex}%
+\else
+ % XeTeX is running
+ \ExecuteOptions{xetex}%
\fi
% \end{macrocode}
% You can also specify other options to the \textsf{pict2e} package in