From 1be620f3745b57f79eb0587de1a17244995a3435 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 18 Jun 2010 00:03:20 +0000 Subject: pstricks 0.45 (17jun10) git-svn-id: svn://tug.org/texlive/trunk@19020 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/pstricks/pstricks.sty | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/tex/latex/pstricks') 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 " \MessageBreak + or a "pdflatex -enable-write18 " \MessageBreak + (if you are using MikTeX) \MessageBreak +************************************} + \fi% + \RequirePackage{auto-pst-pdf}% +\fi +% \IfFileExists{xcolor.sty}{% \def\pst@ColorPackage{xcolor} % \PassOptionsToPackage{override}{xcolor} -- cgit v1.2.3