summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pstricks
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-09-08 00:30:02 +0000
committerKarl Berry <karl@freefriends.org>2010-09-08 00:30:02 +0000
commitcb1213ecc3657ee8a0debc8b81431d287c0ca48c (patch)
treeb345e34c61d4a270ea61b112dd9769d71f175104 /Master/texmf-dist/tex/latex/pstricks
parentf9d5c6abd032224d24ba2b7ef05d8f8322f316e5 (diff)
pstricks 2.10 (28aug10)
git-svn-id: svn://tug.org/texlive/trunk@19605 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/pstricks')
-rw-r--r--Master/texmf-dist/tex/latex/pstricks/pstricks.sty28
1 files changed, 15 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/pstricks/pstricks.sty b/Master/texmf-dist/tex/latex/pstricks/pstricks.sty
index e4dda9821d4..9f71b371508 100644
--- a/Master/texmf-dist/tex/latex/pstricks/pstricks.sty
+++ b/Master/texmf-dist/tex/latex/pstricks/pstricks.sty
@@ -16,7 +16,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{pstricks}
- [2010/06/17 v0.45 LaTeX wrapper for `PSTricks' (RN,HV)]
+ [2010/08/28 v0.46 LaTeX wrapper for `PSTricks' (RN,HV)]
%
\def\documentclass{%
\edef\@tempa{\jobname.tex }%
@@ -36,7 +36,7 @@
\newif\ifpst@OldVersion\pst@OldVersionfalse
\DeclareOption{97}{\pst@OldVersiontrue}
\newif\ifpst@PDF\pst@PDFfalse
-\DeclareOption{pdf}{\pst@PDFtrue}
+\DeclareOption{pdf}{\global\pst@PDFtrue}
%------------------------------------ PLAIN --------------------------------
\DeclareOption{plain}{%
\ifpst@OldVersion
@@ -55,6 +55,19 @@
\ProcessOptions\relax
+\ifpst@PDF
+ \typeout{>>> Loading package auto-pst-pdf <<<}
+ \AtBeginDocument{\usepackage{auto-pst-pdf}}%
+ \ifnum\pdfshellescape=\@ne\else
+ \PackageWarningNoLine{pstricks}{%
+************************************ \MessageBreak
+ Option pdf needs a "pdflatex -shell-escape <file>" \MessageBreak
+ or a "pdflatex -enable-write18 <file>" \MessageBreak
+ (if you are using MikTeX) \MessageBreak
+************************************}
+ \fi%
+\fi
+
\@ifundefined{PSTricksLoaded}
{%
\let\saved@scalebox\scalebox
@@ -89,17 +102,6 @@
\let\scalebox\saved@scalebox
}{}
%
-\ifpst@PDF
- \ifnum\pdfshellescape=\@ne\else
- \PackageWarningNoLine{pstricks}{%
-************************************ \MessageBreak
- Option pdf needs a "pdflatex -shell-escape <file>" \MessageBreak
- or a "pdflatex -enable-write18 <file>" \MessageBreak
- (if you are using MikTeX) \MessageBreak
-************************************}
- \fi%
- \RequirePackage{auto-pst-pdf}%
-\fi
%
\IfFileExists{xcolor.sty}{%
\def\pst@ColorPackage{xcolor}