diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/pstricks/pstricks.sty | 18 |
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} |