summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-07-12 21:51:48 +0000
committerKarl Berry <karl@freefriends.org>2006-07-12 21:51:48 +0000
commit2ae673fff19102b68684096b0a6b495d4376fc92 (patch)
treec6fa339cca6e5c1366e56778b599b25bdcf0a06a /Master/texmf-dist/tex
parentf80864b3b4fe35f04c5fd387d59a792f22df61a2 (diff)
hvoss says ps4pdf has been replaced by pst-pdf
git-svn-id: svn://tug.org/texlive/trunk@1821 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/ps4pdf/ps4pdf.sty284
-rw-r--r--Master/texmf-dist/tex/latex/pst-pdf/pst-pdf.sty435
2 files changed, 435 insertions, 284 deletions
diff --git a/Master/texmf-dist/tex/latex/ps4pdf/ps4pdf.sty b/Master/texmf-dist/tex/latex/ps4pdf/ps4pdf.sty
deleted file mode 100644
index 4ef924b92ef..00000000000
--- a/Master/texmf-dist/tex/latex/ps4pdf/ps4pdf.sty
+++ /dev/null
@@ -1,284 +0,0 @@
-
-% Copyright 2003 by Rolf Niepraschk (Rolf.Niepraschk@ptb.de).
-% This software is released under the terms of the LaTeX Project Public
-% License (ftp://dante.ctan.org/tex-archive/macros/latex/base/lppl.txt).
-% (Essentially: Free to use, copy, distribute (sell) and change, but, if
-% changed, the name must be changed.)
-
-\NeedsTeXFormat{LaTeX2e}[1995/12/01]
-\ProvidesPackage{ps4pdf}[2005/02/11 v0.6i PS code for pdfTeX (RN/HO)]
-
-\newcommand*\PfP@mode{0} \newcommand*\PfP@draft@global{false}
-\newcommand*\PfP@llx{-0.50001bp}
-\newcommand*\PfP@lly{-0.50001bp}
-\newcommand*\PfP@urx{0.50001bp}
-\newcommand*\PfP@ury{0.50001bp}% Prevents rounding errors.
-\newcommand*\PfP@tempa{} \newcommand*\PfP@tempb{}
-
-\newif\ifPfP@draft \newif\ifPfPinside \PfPinsidefalse
-\newif\ifPfP@graphics
-\newif\ifPfP@notightpage \PfP@notightpagefalse
-
-\DeclareOption{active}{\def\PfP@mode{0}}
-\DeclareOption{inactive}{\def\PfP@mode{9}}
-\DeclareOption{draft}{\def\PfP@draft@global{true}}
-\DeclareOption{final}{\def\PfP@draft@global{false}}
-\DeclareOption{graphics}{\PfP@graphicstrue}
-\DeclareOption{nographics}{\PfP@graphicsfalse}
-\DeclareOption{notightpage}{\PfP@notightpagetrue}
-
-\ExecuteOptions{graphics}
-\ProcessOptions\relax
-
-\RequirePackage{keyval,ifpdf,ifvtex}
-
-\newcounter{PSforPDF}
-
-\newcommand*\PfP@container{}
-\edef\PfP@container{\jobname-pics.pdf}
-\newcommand*\containerName[1]{\def\PfP@container{#1}}
-
-\ifnum\PfP@mode>0\relax\else
- \ifvtex
- \def\PfP@mode{9}
- \else
- \ifpdf
- \def\PfP@mode{1}
- \fi
- \fi
-\fi
-
-\ifnum\PfP@mode=0\relax\else
-
- \RequirePackage{calc}
-
- \define@key{PfP}{trim}{%
- \begingroup
- \Gread@parse@vp#1 \\%
- \edef\x{\endgroup%
- \def\noexpand\PfP@llx{\Gin@vllx bp}%
- \def\noexpand\PfP@lly{\Gin@vlly bp}%
- \def\noexpand\PfP@urx{\Gin@vurx bp}%
- \def\noexpand\PfP@ury{\Gin@vury bp}}\x%
-% Like "\xdef\PfP@llx{\Gin@vllx bp}..." but only for one group level.
- }
-
- \define@key{PfP}{draft}[true]{\csname PfP@draft#1\endcsname}
-
- \newcommand\PfP@adjustBox[3]{%
-% #1=width of the main box, #2=height of the main box,
-% #3=raw material
- \begingroup
- \edef\PfP@tempa{#1}\edef\PfP@tempb{#2}%
- \setbox\@tempboxa=\hbox{#3}%
- \ifdim\wd\@tempboxa>\ht\@tempboxa\relax%
- \setbox\@tempboxa=\hbox{\resizebox{\PfP@tempa}{!}{#3}}%
- \else%
- \setbox\@tempboxa=\hbox{\resizebox{!}{\PfP@tempb}{#3}}%
- \fi
- \box\@tempboxa%
- \endgroup
- }
-
- \newcommand\PfP@framedInfoBox[3]{%
-% #1=width, #2=height, #3=info text
- \begingroup
- \fboxsep=3pt\fboxrule=.4pt%
- \edef\PfP@tempa{#1-2\fboxsep-2\fboxrule}%
- \ifx#2\height%
- \fbox{\parbox[b]{\PfP@tempa}{\vfill\mbox{}#3\vfill}}%
- \else%
- \edef\PfP@tempb{#2-2\fboxsep-2\fboxrule}%
- \fbox{\parbox[b][\PfP@tempb]{\PfP@tempa}{\vfill\mbox{}#3\vfill}}%
- \fi
- \endgroup
- }
-
-\fi
-
-\ifcase\PfP@mode% == dvi (extraction mode) ==
-%% "AtBeginDocument" is necessary because `preview' called `\nofiles'.
-%% After this call `\makeindex' is `\relax' and can't be redefined with
-%% `\renewcommand'.
- \AtBeginDocument{%
- \ifPfP@notightpage%
- \RequirePackage[active,dvips]{preview}[2003/01/20]%
- \else%
- \RequirePackage[active,dvips,tightpage]{preview}[2003/01/20]%
- \fi%
- }
-
- \define@key{PfP}{trim}{\xdef\PreviewBbAdjust{#1}}%
- \define@key{PfP}{draft}[true]{}% Not used in this mode.
-
- \newcommand\PSforPDF[2][]{#2}
-
- \newcommand\PfP@relax@commands{%
-%% To prevent tabularx from execute each \cmd{\PSforPDF} more than once.
- \@ifundefined{tabularx}{}{%
- \def\tabularx##1##2{\tabular{##2}}%
- \newcolumntype{X}{c}%
- \let\endtabularx=\endtabular}%
- }
-
- \AtBeginDocument{%
- \@ifpackageloaded{graphicx}{}{\RequirePackage{graphicx}}%
- \let\PfP@includegraphics=\includegraphics%
- \renewcommand\includegraphics[2][]{%
- \ifPfPinside\PfP@includegraphics[#1]{#2}\else~\fi}%
- % Outside of `\PSforPDF' `\includegraphics' must do nothing
- % because we can't handle pdfTeX graphics (.pdf, .jpg,...)
- % in this mode. `~' is a non-zero size dummy.
- \renewcommand\PSforPDF[2][]%
- {%
- \setkeys{PfP}{trim=\PfP@llx\space\PfP@lly\space%
- \PfP@urx\space\PfP@ury,#1}\stepcounter{PSforPDF}%
- \PfPinsidetrue#2\PfPinsidefalse%
- }
- \PreviewMacro[{[]{}}]{\PSforPDF}%
- \PfP@relax@commands%
- }
-
- \AtEndDocument{%
- \ifnum\value{PSforPDF}=0\relax
- \PSforPDF{\mbox{}}%
- % Prevents not writing a dvi file if the document contains
- % no \PSforPDF commands (e.g. suppressed by \includeonly)
- \fi}
-
-\or% == pdfTeX ==
-
- \newcommand*\PfP@lastpage{\maxdimen}
-
- \newcommand\PSforPDF[2][]{}% Do nothing before `\begin{document}'
- % The definition for the "page" key can only be executed
- % at `\begin{document}' if `keyval' is present!
- \AtBeginDocument{%
- \ifPfP@graphics\else
- \let\PfP@Ginclude@graphics\Ginclude@graphics
- \def\Ginclude@graphics#1{\phantom{\PfP@Ginclude@graphics{#1}}}%
- \fi
- \IfFileExists{\PfP@container}%
- {%
- \@ifpackageloaded{graphicx}{}{\RequirePackage[pdftex]{graphicx}}%
- \renewcommand\PSforPDF[2][]{%
- \setkeys{PfP}{trim=\PfP@llx{} \PfP@lly{} \PfP@urx{} \PfP@ury}%
- \setkeys{PfP}{draft=\PfP@draft@global,##1}%
- \stepcounter{PSforPDF}%
- \ifnum\PfP@lastpage<\value{PSforPDF}\relax
- \PfP@framedInfoBox{\linewidth}{\height}{%
- \centering Can't show picture~\#\thePSforPDF\ because it
- does not exist in \texttt{\PfP@container}. Recreate
- \texttt{\PfP@container}!}%
- \else%
- \setbox\@tempboxa=\hbox{%
- \includegraphics[page=\the\value{PSforPDF},draft=false]%
- {\PfP@container}}%
- \setlength\@tempdima{\wd\@tempboxa-\PfP@urx+\PfP@llx}%
- \setlength\@tempdimb{\ht\@tempboxa-\PfP@ury+\PfP@lly}%
- % recalculate the original size.
- \setbox\@tempboxa=\hbox{%
- \PfP@adjustBox{\the\@tempdima}{\the\@tempdimb}{\box\@tempboxa}}%
- \ifPfP@draft%
- \PfP@framedInfoBox{\the\wd\@tempboxa}{\the\ht\@tempboxa}%
- {\rlap{~\texttt{\PfP@container~(\#\the\value{PSforPDF})}}}%
- \else%
- \mbox{\box\@tempboxa}%
- \fi
- \xdef\PfP@lastpage{\the\pdflastximagepages}%
- \fi
- }
- }
- {%
- \PackageWarningNoLine{ps4pdf}{%
- Graphic container `\PfP@container' not found}%
- \renewcommand\PSforPDF[2][]{%
- \stepcounter{PSforPDF}%
- \noindent\PfP@framedInfoBox{\linewidth}{\height}{%
- \centering Can't show picture~\#\thePSforPDF\ because
- \texttt{\PfP@container} not found. Create it from
- \texttt{\jobname.dvi} using \texttt{dvips} and \texttt{ps2pdf}!}}
- }%
- }%
-
- \AtEndDocument{%
- \ifnum\PfP@lastpage=\value{PSforPDF}\relax\else
- \PackageWarningNoLine{ps4pdf}{`\PfP@container' is no more valid}%
- \fi}
-
-\else% == inactive (latex/dvips, VTeX) ==
-
- \RequirePackage{graphicx}
-
- \newcommand\PfP@trimmBox[7]{%
-% #1=width of the main box, #2=height of the main box,
-% #3=trim left, #4=trim right, #5=trim top, #6=trim bottom
-% #7=raw material
- \begingroup
- \edef\PfP@tempa{#1}\edef\PfP@tempb{#2}%
- \setbox\@tempboxa=\hbox{%
- \makebox[\width-#3][r]{% extends at left
- \makebox[\width+#4][l]{% extends at right
- \raisebox{\dp\@tempboxa-#6}% extends at top and bottom
- [\ht\@tempboxa+\dp\@tempboxa+#5-#6][0pt]{#7}}}}%
- \PfP@adjustBox{\PfP@tempa}{\PfP@tempb}{\box\@tempboxa}%
- \endgroup
- }
-
- \newcommand\PSforPDF[2][]{#2}%
-
- \AtBeginDocument{%
- \renewcommand\PSforPDF[2][]{%
- \begingroup
- \setkeys{PfP}{draft=\PfP@draft@global,#1}%
- \setbox\@tempboxa=\hbox{#2}%
- \@tempdima=\ht\@tempboxa\advance\@tempdima\dp\@tempboxa%
- \edef\PfP@tempb{\the\@tempdima}\edef\PfP@tempa{\the\wd\@tempboxa}%
- \setbox\@tempboxa=\hbox{%
- \PfP@trimmBox{\PfP@tempa}{\PfP@tempb}%
- {\PfP@llx}{\PfP@urx}{\PfP@ury}{\PfP@lly}{\box\@tempboxa}}%
- \ifPfP@draft%
- \PfP@framedInfoBox{\the\wd\@tempboxa}{\the\ht\@tempboxa}{}%
- \else%
- \mbox{\box\@tempboxa}%
- \fi
- \endgroup
- }%
- }
-
-\fi
-
-\InputIfFileExists{ps4pdf.cfg}{%
- \PackageInfo{ps4pdf}{Local config file ps4pdf.cfg used}
-}{}
-
-\endinput
-
-\changes{v0.3g (RN)}{2003/02/12}{First public version.}
-\changes{v0.3h (RN)}{2003/02/11}{Optional parameter for Trimming.}
-\changes{v0.4a (RN)}{2003/02/13}{key-value syntax.}
-\changes{v0.5 (RN)}{2003/05/17}{trim parameter: Scaling was wrong, corrected.
- New options draft/final. Code cleanup. Improved test file.}
-\changes{v0.5a (RN)}{2003/05/19}{Option "inactive" works now.}
-\changes{v0.5b (RN)}{2003/05/21}{Mode detection changed. Code cleanup.}
-\changes{v0.5c (RN)}{2003/05/26}{New Parameters "hpos" and "vpos".}
-\changes{v0.6 (RN)}{2003/05/30}{trim parameter and draft option can be used
- with the "inactive" option}
-\changes{v0.6a (RN)}{2003/06/03}{Size and alignment after trimming changed.
- Parameter "hpos" and "vpos" removed.}
-\changes{v0.6b (RN)}{2003/06/09}{Simplified definition for trim key.}
-\changes{v0.6c (RN)}{2003/06/19}{The name of the graphics container can now be
- changed with \cmd{\containerName}. A document without any \cmd{\PSforPDF}
- commands creates now an empty container file.}
-\changes{v0.6d (RN)}{2003/08/17}{Inputting a config file added.}
-\changes{v0.6e (RN)}{2003/09/03}{Works now with `tabularx'. Thanks to
- Herbert Voss.}
-\changes{v0.6f (RN)}{2003/09/05}{bug in extraction mode corrected (`graphicx'
- is required). Thanks to Jose Carlos Santos.}
-\changes{v0.6g (RN)}{2003/11/22}{New package options `graphics/nographics'
- similar to package `crop' (suppresses the graphics output;
- suggested by Markus Kohm).}
-\changes{v0.6h (RN)}{2004/07/15}{In dvi extraction mode the `preview' package
- should be loaded ``AtBeginDocument'' to prevent problems with `natbib'; bug
- reported from ???.}
-\changes{v0.6i (RN)}{2005/02/11}{Option "notightpage" added.}
diff --git a/Master/texmf-dist/tex/latex/pst-pdf/pst-pdf.sty b/Master/texmf-dist/tex/latex/pst-pdf/pst-pdf.sty
new file mode 100644
index 00000000000..f595d7ff97b
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/pst-pdf/pst-pdf.sty
@@ -0,0 +1,435 @@
+%%
+%% This is file `pst-pdf.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% pst-pdf.dtx (with options: `package')
+%%
+%% This is a generated file.
+%%
+%% Copyright (C) 2004 by Rolf Niepraschk <Rolf.Niepraschk@ptb.de>
+%%
+%% This file may be distributed and/or modified under the conditions of
+%% the LaTeX Project Public License, either version 1.2 of this license
+%% or (at your option) any later version. The latest version of this
+%% license is in:
+%%
+%% http://www.latex-project.org/lppl.txt
+%%
+%% and version 1.2 or later is part of all distributions of LaTeX version
+%% 1999/12/01 or later.
+%%
+\NeedsTeXFormat{LaTeX2e}[1999/12/01]
+\ProvidesPackage{pst-pdf}
+ [2005/06/29 v1.1i PS graphics for pdfLaTeX (RN,HjG)]
+
+\newcommand*\ppf@TeX@mode{-1}
+\newcommand*\ppf@draft{false}
+\newif\if@ppf@PST@used\@ppf@PST@usedtrue
+\newif\if@ppf@tightpage \@ppf@tightpagetrue
+\DeclareOption{active}{\def\ppf@TeX@mode{0}}
+\DeclareOption{inactive}{\def\ppf@TeX@mode{9}}
+\DeclareOption{ignore}{\def\ppf@TeX@mode{999}}
+\DeclareOption{pstricks}{\@ppf@PST@usedtrue}
+\DeclareOption{nopstricks}{\@ppf@PST@usedfalse}
+\DeclareOption{displaymath}{%
+ \PassOptionsToPackage\CurrentOption{preview}}
+\DeclareOption{draft}{\def\ppf@draft{true}}
+\DeclareOption{final}{\def\ppf@draft{false}%
+ \PassOptionsToPackage\CurrentOption{graphicx}}
+\DeclareOption{notightpage}{\@ppf@tightpagefalse}%
+\DeclareOption{tightpage}{\@ppf@tightpagetrue}%
+\DeclareOption*{%
+ \PassOptionsToPackage\CurrentOption{pstricks}}
+\ProcessOptions\relax
+\ifnum\ppf@TeX@mode=999\relax\expandafter\endinput\fi
+\ifnum\ppf@TeX@mode=-1\relax
+ \begingroup
+ \chardef\x=0 %
+ \@ifundefined{pdfoutput}{}{%
+ \ifcase\pdfoutput\else
+ \chardef\x=1 %
+ \fi
+ }%
+ \@ifundefined{OpMode}{}{\chardef\x=2 }%
+ \expandafter\endgroup
+ \ifcase\x
+ \def\ppf@TeX@mode{0}%
+ \or
+ \def\ppf@TeX@mode{1}%
+ \else
+ \def\ppf@TeX@mode{9}%
+ \fi
+\fi
+\newcommand*\PDFcontainer{}
+\edef\PDFcontainer{\jobname-pics.pdf}
+\newcounter{pspicture}
+\newcommand*\ppf@other@extensions[1]{}
+\newcommand*\usepicture[2][]{}
+\newcommand*\savepicture[1]{}
+\RequirePackage{graphicx}%
+\let\ppf@Ginclude@graphics\Ginclude@graphics
+\let\ppf@Gin@extensions\Gin@extensions
+\let\ppf@Gin@ii\Gin@ii
+\newif\if@ppf@pdftex@graphic
+\newif\ifGin@frame\Gin@framefalse
+\newif\ifGin@innerframe\Gin@innerframefalse
+\newif\ifGin@showname\Gin@shownamefalse
+\newif\ifGin@ignore\Gin@ignorefalse
+\newif\ifpr@outer
+\newcommand*\ppf@is@pdfTeX@graphic[5]{%
+ \@ppf@pdftex@graphicfalse%
+ \begingroup
+ \edef\pdfTeXext{#2}%
+ \def\Gin@setfile##1##2##3{%
+ \edef\@tempb{##2}%
+ \@for\@tempa:=\pdfTeXext\do{%
+ \ifx\@tempa\@tempb\global\@ppf@pdftex@graphictrue\fi}}%
+ \edef\Gin@extensions{#2,#3}%
+ \pr@outerfalse\ppf@Ginclude@graphics{#1}%
+ \endgroup
+ \if@ppf@pdftex@graphic#4\else#5\fi
+}
+ \if@ppf@PST@used\RequirePackage{pstricks}\fi
+ \ifcase\ppf@TeX@mode\relax
+ \PackageInfo{pst-pdf}{%
+ MODE: \ppf@TeX@mode\space (dvi -- extraction mode)}
+ \RequirePackage[active,dvips,tightpage]{preview}[2005/01/29]%
+ \newcommand*\ppf@PreviewBbAdjust{}
+ \newcommand*\ppf@RestoreBbAdjust{%
+ \let\PreviewBbAdjust\ppf@PreviewBbAdjust}%
+ \begingroup
+ \let\AtBeginDocument\@gobble \let\PackageWarningNoLine\@gobbletwo
+ \def\pdftexversion{121}\input{pdftex.def}%
+ \edef\x{\endgroup\def\noexpand\ppf@other@extensions{\Gin@extensions}
+ }%
+ \x
+ \AtBeginDocument{%
+ \@for\@tempa:=\ppf@other@extensions\do{%
+ \expandafter\let\csname Gin@rule@\@tempa\endcsname\relax}%
+ \DeclareGraphicsRule{*}{eps}{*}{}}%
+ \define@key{Gin}{innerframe}[true]{}%
+ \define@key{Gin}{frame}[true]{}%
+ \define@key{Gin}{ignore}[true]{}%
+ \define@key{Gin}{showname}[true]{}%
+ \define@key{Gin}{namefont}{}%
+ \if@ppf@tightpage\else
+ \def\PreviewBbAdjust{%
+ -.5\paperwidth -.5\paperheight .5\paperwidth .5\paperheight}%
+ \AtEndDocument{%
+ \PackageWarningNoLine{pst-pdf}{Picture container needs cropping.}}%
+ \fi
+ \newenvironment{postscript}[1][]%
+ {%
+ \global\let\ppf@PreviewBbAdjust\PreviewBbAdjust
+ \if@ppf@tightpage
+ \begingroup
+ \setkeys{Gin}{#1}%
+ \xdef\PreviewBbAdjust{%
+ -\Gin@vllx bp -\Gin@vlly bp \Gin@vurx bp \Gin@vury bp}%
+ \endgroup
+ \fi
+ \ignorespaces
+ }%
+ {\aftergroup\ppf@RestoreBbAdjust}%
+ \PreviewEnvironment{postscript}%
+ \AtBeginDocument{%
+ \@ifundefined{PSTricksLoaded}{}%
+ {%
+ \PreviewEnvironment{pspicture}%
+ \@ifundefined{psmatrix}{}%
+ {%
+ \PreviewEnvironment{psmatrix}%
+ \newcommand*\ppf@set@mode{}%
+ \newcommand*\ppf@test@mmode{%
+ \ifmmode
+ \ifinner
+ \let\ppf@set@mode=$%
+ \else
+ \def\ppf@set@mode{$$}%
+ \fi
+ \else
+ \let\ppf@set@mode=\@empty
+ \fi
+ }%
+ \let\ppf@psmatrix=\psmatrix
+ \expandafter\let\expandafter\ppf@pr@psmatrix%
+ \expandafter=\csname pr@\string\psmatrix\endcsname
+ \let\ppf@endpsmatrix=\endpsmatrix
+ \def\psmatrix{\ppf@test@mmode\ppf@psmatrix}
+ \expandafter\def\csname pr@\string\psmatrix\endcsname{%
+ \ppf@set@mode\ppf@pr@psmatrix}%
+ \def\endpsmatrix{\ppf@endpsmatrix\ppf@set@mode}%
+ }%
+ \PreviewMacro[{{}*[]%
+ ?\bgroup{#{#1}{{#1}}}{}%
+ ?\bgroup{#{#1}{{#1}}}{}%
+ ?({#{(#1)}{({#1})}}{}%
+ ?({#{(#1)}{({#1})}}{}%
+ ?({#{(#1)}{({#1})}}{}%
+ }]{\pst@object}}
+ \@ifundefined{tabularx}{}{%
+ \def\tabularx#1#2{\tabular{#2}}%
+ \newcolumntype{X}{c}%
+ \let\endtabularx=\endtabular}%
+ }%
+ \def\Ginclude@graphics#1{%
+ \ifpr@outer
+ \ppf@is@pdfTeX@graphic{#1}{\ppf@other@extensions}{\Gin@extensions}%
+ {\rule{10pt}{10pt}}%
+ {\ppf@Ginclude@graphics{#1}}%
+ \else
+ \ppf@Ginclude@graphics{#1}%
+ \fi
+ }%
+ \PreviewMacro[{{}}]{\ppf@Ginclude@graphics}%
+ \let\pdfliteral\@gobble%
+\or
+ \PackageInfo{pst-pdf}{MODE: \ppf@TeX@mode\space (pdfTeX mode)}%
+ \@temptokena{%
+ \let\Gin@PS@file@header\@gobble\let\Gin@PS@literal@header\@gobble
+ \let\Gin@PS@raw\@gobble\let\Gin@PS@restored\@gobble
+ \@ifundefined{PSTricksLoaded}{}{%
+ \PSTricksOff
+ \@ifundefined{c@lor@to@ps}{\def\c@lor@to@ps#1 #2\@@{}}{}}}%
+ \the\@temptokena
+ \expandafter\AtBeginDocument\expandafter{\the\@temptokena}%
+ \@ifundefined{PSTricksLoaded}{}
+ {%
+ \newtoks\ppf@temptoken
+ \ppf@temptoken\expandafter{\the\output}%
+ \let\ppf@nofiles\nofiles \let\nofiles\relax
+ \RequirePackage[active]{preview}[2005/01/29]%
+ \let\shipout=\pr@shipout \let\nofiles\ppf@nofiles
+ \output\expandafter{\the\ppf@temptoken}%
+ \ppf@temptoken{}%
+ \long\def\pr@startbox#1#2{%
+ \ifpr@outer
+ \toks@{#2}%
+ \edef\pr@cleanup{\the\toks@}%
+ \setbox\@tempboxa\vbox\bgroup
+ \everydisplay{}%
+ \pr@outerfalse%
+ \expandafter\@firstofone
+ \else
+ \expandafter\@gobble
+ \fi{#1}}%
+ \def\pr@endbox{%
+ \egroup
+ \setbox\@tempboxa\box\voidb@x
+ \ppf@@getpicture
+ \pr@cleanup}%
+ \AtBeginDocument{%
+ \@ifundefined{pst@object}{}%
+ {%
+ \PreviewMacro[{{}*[]%
+ ?\bgroup{#{#1}{{#1}}}{}%
+ ?\bgroup{#{#1}{{#1}}}{}%
+ ?({#{(#1)}{({#1})}}{}%
+ ?({#{(#1)}{({#1})}}{}%
+ ?({#{(#1)}{({#1})}}{}%
+ }]{\pst@object}}%
+ }%
+ }%
+ \begingroup
+ \input{dvips.def}%
+ \edef\x{\endgroup\def\noexpand\ppf@other@extensions{\Gin@extensions}}%
+ \x
+ \DeclareGraphicsRule{*}{eps}{*}{}%
+ \define@key{Gin}{innerframe}[true]{%
+ \lowercase{\Gin@boolkey{#1}}{innerframe}}%
+ \define@key{Gin}{frame}[true]{%
+ \lowercase{\Gin@boolkey{#1}}{frame}}%
+ \define@key{Gin}{ignore}[true]{%
+ \lowercase{\Gin@boolkey{#1}}{ignore}}%
+ \define@key{Gin}{frame@@}{%
+ \edef\@tempa{\toks@{\noexpand\frame{\the\toks@}}}%
+ \ifcase#1\relax
+ \ifGin@innerframe\else\let\@tempa\relax\fi
+ \or
+ \ifGin@frame\else\let\@tempa\relax\fi
+ \fi
+ \@tempa
+ }%
+ \define@key{Gin}{showname}[true]{%
+ \lowercase{\Gin@boolkey{#1}}{showname}}%
+ \define@key{Gin}{namefont}{%
+ \begingroup
+ \@temptokena\expandafter{\ppf@namefont#1}%
+ \edef\x{\endgroup\def\noexpand\ppf@namefont{\the\@temptokena}}%
+ \x
+ }%
+ \newcommand*\ppf@filename{}%
+ \newcommand*\ppf@namefont{\tiny\ttfamily}%
+ \newcommand*\ppf@Gin@keys{}%
+ \let\ppf@Gin@setfile\Gin@setfile
+ \def\Gin@setfile#1#2#3{\ppf@Gin@setfile{#1}{#2}{#3}%
+ \xdef\ppf@filename{%
+ #3\ifx\GPT@page\@empty\else(\GPT@page)\fi}}%
+ \def\Gin@ii[#1]#2{%
+ \begingroup
+ \setkeys{Gin}{#1}%
+ \@temptokena{#1}\def\@tempb{#2}%
+ \ifx\@tempb\@empty\else
+ \ppf@is@pdfTeX@graphic{#2}{\Gin@extensions}{\ppf@other@extensions}%
+ {%
+ \ifx\@tempb\PDFcontainer
+ \@temptokena{page=\GPT@page}%
+ \fi
+ }%
+ {%
+ \refstepcounter{pspicture}%
+ \@temptokena{page=\the\c@pspicture}\def\@tempb{\PDFcontainer}%
+ }%
+ \fi
+ \ifGin@ignore\else
+ \edef\@tempa{\noexpand\ppf@Gin@ii[frame@@=0,\the\@temptokena,
+ frame@@=1]{\@tempb}}%
+ \@tempa
+ \ifGin@showname
+ \ppf@namefont
+ \raisebox{-\ht\strutbox}[0pt][0pt]{\llap{\ppf@filename}}%
+ \gdef\ppf@filename{}%
+ \fi
+ \fi
+ \endgroup
+ }%
+ \IfFileExists{\PDFcontainer}%
+ {%
+ \pdfximage{\PDFcontainer}%
+ \edef\ppf@container@max{\the\pdflastximagepages}%
+ \AtEndDocument{%
+ \ifnum\c@pspicture>\z@
+ \ifnum\c@pspicture=\ppf@container@max\else
+ \PackageWarningNoLine{pst-pdf}{%
+ `\PDFcontainer' contains \ppf@container@max\space pages
+ \MessageBreak but \the\c@pspicture\space pages are requested:
+ \MessageBreak File `\PDFcontainer' is no more valid!
+ \MessageBreak Recreate it
+ }%
+ \fi
+ \fi
+ }%
+ }%
+ {%
+ \def\ppf@container@max{0}%
+ \AtEndDocument{%
+ \ifnum\c@pspicture>\z@
+ \filename@parse{\PDFcontainer}%
+ \PackageWarningNoLine{pst-pdf}{%
+ File `\PDFcontainer' not found.\MessageBreak
+ Use the following commands to create it:\MessageBreak
+ ----------------------------------------------------
+ \MessageBreak
+ latex \jobname.tex\MessageBreak
+ dvips -o \filename@base.ps \jobname.dvi\MessageBreak
+ ps2pdf \filename@base.ps\MessageBreak
+ ----------------------------------------------------
+ }%
+ \fi
+ }%
+ }%
+ \newcommand\ppf@isnum[1]{%
+ \if!\ifnum9<1#1!\else_\fi\expandafter\@firstoftwo
+ \else\expandafter\@secondoftwo\fi}%
+ \newcommand*\ppf@set@mode{}%
+ \newcommand*\ppf@test@mmode{%
+ \ifmmode
+ \ifinner
+ \let\ppf@set@mode=$%
+ \else
+ \def\ppf@set@mode{$$}%
+ \fi
+ \else
+ \let\ppf@set@mode=\@empty
+ \fi
+ }
+ \newenvironment{postscript}[1][]
+ {%
+ \ppf@test@mmode
+ \gdef\ppf@Gin@keys{}%
+ \def\@tempa{postscript}\ifx\@tempa\@currenvir\gdef\ppf@Gin@keys{#1}\fi
+ \expandafter\let\expandafter\pst@object
+ \csname pr@\string\pst@object\endcsname
+ \pr@outerfalse
+ \@makeother\&%
+ \def\Gin@ii[##1]##2{}\setbox\@tempboxa=\vbox\bgroup
+ \ppf@set@mode
+ }%
+ {\ppf@set@mode\egroup\aftergroup\ppf@@getpicture}%
+ \AtBeginDocument{%
+ \@ifundefined{PSTricksLoaded}{}%
+ {%
+ \iffalse
+ \PreviewEnvironment{pspicture}% Why doesn't it work?
+ \g@addto@macro\pspicture{%
+ %%\pr@outerfalse% necessary, or already there anyway?
+ \@makeother\&% necessary?
+ \def\Gin@ii[#1]#2{}%
+ }%
+ \g@addto@macro\endpspicture{\ppf@@getpicture}%
+ \else
+ \def\pst@@@picture[#1](#2,#3)(#4,#5){\postscript}%
+ \def\endpspicture{\endpostscript\endgroup}%
+ \fi
+ \@ifundefined{psmatrix}{}%
+ {\let\psmatrix=\postscript\let\endpsmatrix=\endpostscript}%
+ }%
+ }%
+ \def\savepicture#1{%
+ \expandafter\xdef\csname ppf@@@#1\endcsname{\the\pdflastximage}}%
+ \renewcommand*\usepicture[2][]{%
+ \@ifundefined{ppf@@@#2}%
+ {%
+ \ppf@isnum{#2}%
+ {\ppf@getpicture{#1}{#2}}%
+ {\@latex@error{picture `#2' undefined}\@ehc}%
+ }%
+ {%
+ \begingroup
+ \def\Ginclude@graphics##1{%
+ \xdef\ppf@filename{#2}%
+ \setbox\z@\hbox{\pdfrefximage\@nameuse{ppf@@@#2}}%
+ \Gin@nat@height\ht\z@ \Gin@nat@width\wd\z@
+ \def\Gin@llx{0} \let\Gin@lly\Gin@llx
+ \Gin@defaultbp\Gin@urx{\Gin@nat@width}%
+ \Gin@defaultbp\Gin@ury{\Gin@nat@height}%
+ \Gin@bboxtrue\Gin@viewport@code
+ \Gin@nat@height\Gin@ury bp%
+ \advance\Gin@nat@height-\Gin@lly bp%
+ \Gin@nat@width\Gin@urx bp%
+ \advance\Gin@nat@width-\Gin@llx bp%
+ \Gin@req@sizes
+ \ht\z@\Gin@req@height \wd\z@\Gin@req@width
+ \leavevmode\box\z@}%
+ \define@key{Gin}{type}{}%
+ \includegraphics[scale=1,#1]{}%
+ \endgroup
+ }}%
+ \newcommand*\ppf@getpicture[2]{%
+ \@tempcnta=#2\relax%
+ \ifnum\@tempcnta>\ppf@container@max
+ \PackageWarningNoLine{pst-pdf}{%
+ pspicture No. \the\@tempcnta\space undefined}%
+ \else
+ \includegraphics[draft=\ppf@draft,#1,page=\the\@tempcnta]%
+ {\PDFcontainer}%
+ \fi
+ \gdef\ppf@Gin@keys{}}%
+ \newcommand*\ppf@@getpicture{%
+ \ifpr@outer
+ \refstepcounter{pspicture}%
+ \expandafter\ppf@getpicture\expandafter{\ppf@Gin@keys}%
+ {\the\c@pspicture}%
+ \fi}%
+\else
+ \PackageInfo{pst-pdf}{MODE: \ppf@TeX@mode\space (inactive mode)}%
+ \newenvironment{postscript}[1][]{\ignorespaces}{}
+ \let\ppf@is@pdfTeX@graphic\relax
+\fi
+\InputIfFileExists{pst-pdf.cfg}{%
+ \PackageInfo{pst-pdf}{Local config file pst-pdf.cfg used}}{}
+\endinput
+%%
+%% End of file `pst-pdf.sty'.