summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
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
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')
-rw-r--r--Master/texmf-dist/doc/generic/pstricks/Changes.latex5
-rw-r--r--Master/texmf-dist/tex/latex/pstricks/pstricks.sty18
2 files changed, 20 insertions, 3 deletions
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 <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}