summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pstricks
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-06-18 00:03:20 +0000
committerKarl Berry <karl@freefriends.org>2010-06-18 00:03:20 +0000
commit1be620f3745b57f79eb0587de1a17244995a3435 (patch)
tree5e39eb46114e9247876b3b378c4eb22f44741790 /Master/texmf-dist/tex/latex/pstricks
parent6f6ae175bc4bf71c84d12dba5c8408697aaa48dc (diff)
pstricks 0.45 (17jun10)
git-svn-id: svn://tug.org/texlive/trunk@19020 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/pstricks')
-rw-r--r--Master/texmf-dist/tex/latex/pstricks/pstricks.sty18
1 files changed, 16 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/pstricks/pstricks.sty b/Master/texmf-dist/tex/latex/pstricks/pstricks.sty
index 5c1a55dc384..e4dda9821d4 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}
- [2008/11/26 v0.40 LaTeX wrapper for `PSTricks' (RN,HV)]
+ [2010/06/17 v0.45 LaTeX wrapper for `PSTricks' (RN,HV)]
%
\def\documentclass{%
\edef\@tempa{\jobname.tex }%
@@ -35,6 +35,8 @@
%
\newif\ifpst@OldVersion\pst@OldVersionfalse
\DeclareOption{97}{\pst@OldVersiontrue}
+\newif\ifpst@PDF\pst@PDFfalse
+\DeclareOption{pdf}{\pst@PDFtrue}
%------------------------------------ PLAIN --------------------------------
\DeclareOption{plain}{%
\ifpst@OldVersion
@@ -86,7 +88,19 @@
}{}
\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}
% \PassOptionsToPackage{override}{xcolor}