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/doc/generic/pstricks/Changes.latex | 5 ++++- Master/texmf-dist/tex/latex/pstricks/pstricks.sty | 18 ++++++++++++++++-- 2 files changed, 20 insertions(+), 3 deletions(-) (limited to 'Master') diff --git a/Master/texmf-dist/doc/generic/pstricks/Changes.latex b/Master/texmf-dist/doc/generic/pstricks/Changes.latex index 5c2ab69dec0..bab46b580a2 100644 --- a/Master/texmf-dist/doc/generic/pstricks/Changes.latex +++ b/Master/texmf-dist/doc/generic/pstricks/Changes.latex @@ -1,6 +1,9 @@ pstricks.sty -------- +0.45 2010-06-17 - add option pdf for using auto-pst-pdf together + with pdflatex (needs an option -shell-escape + for TeXLive or -enable-write18 for MiKTeX) 0.44 2010-04-24 - change version number of pstricks.pro -0.43 2010-03-20 - rename \pst@tempa to \pat@sty@tempa to prevent +0.43 2010-03-20 - rename \pst@tempa to \pst@sty@tempa to prevent problems with pst-fill 0.42 2010-03-16 - load pst-fp only once by pstricks-tex write only a message for a LaTeX run 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