summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/pst2pdf/Changes4
-rw-r--r--Master/texmf-dist/doc/latex/pst2pdf/README20
-rwxr-xr-xMaster/texmf-dist/scripts/pst2pdf/pst2pdf.pl13
3 files changed, 25 insertions, 12 deletions
diff --git a/Master/texmf-dist/doc/latex/pst2pdf/Changes b/Master/texmf-dist/doc/latex/pst2pdf/Changes
index 499e84e9dbd..6af46dd9dc9 100644
--- a/Master/texmf-dist/doc/latex/pst2pdf/Changes
+++ b/Master/texmf-dist/doc/latex/pst2pdf/Changes
@@ -1,4 +1,6 @@
-PST2pdf.pl --------
+pst2pdf.pl --------
+0.07 2008-09-29 - fix bug with \begin{postscript} and following
+ pspicture environment
0.06 2007-08-28 - fix bug with \begin{pspicture} and \pspicture
0.05 2007-07-05 - allow different extensions for the source file
e.g. tex, ltx
diff --git a/Master/texmf-dist/doc/latex/pst2pdf/README b/Master/texmf-dist/doc/latex/pst2pdf/README
index 0379a4c4b0d..72245360022 100644
--- a/Master/texmf-dist/doc/latex/pst2pdf/README
+++ b/Master/texmf-dist/doc/latex/pst2pdf/README
@@ -1,13 +1,13 @@
-PST2pdf is a Perl script which isolates all PostScript or
+pst2pdf is a Perl script which isolates all PostScript or
PSTricks related parts of the TeX document into single
LaTeX files, for which an eps and pdf image is created.
The pdf ones are then imported in a last pdflatex run
for the pdf output of the main document. The eps and
pdf files are saved in a subdirectory images.
-Syntax: PST2pdf.pl <file>.tex
+Syntax: pst2pdf.pl <file>.tex [options]
-alternative: perl PST2pdf.pl <file>.tex
+alternative: perl pst2pdf.pl <file>.tex [options]
Some restrictions:
@@ -27,9 +27,19 @@ The postscript environment should be used for all other
PostScript related commands, which are not part of
a pspicture environment, e.g. nodes inside normal text.
-PST2pdf creates a document <file>-pdf.tex for use with
+pst2pdf creates a document <file>-pdf.tex for use with
pdflatex, which then creates <file>-pdf.pdf. The created
images are named <file>-tmp-<No>.pdf
+Options:
+--imageDir=<path>
+--Iext=<.ext>
+--DPI=<int>
+--Iscale=<real>
+--tempDir=<dir>
+--verbose
+--clear
+--noImages
+
--
-Herbert Voss 2007-07-04
+Herbert Voss 2008-09-24
diff --git a/Master/texmf-dist/scripts/pst2pdf/pst2pdf.pl b/Master/texmf-dist/scripts/pst2pdf/pst2pdf.pl
index 2262e9e15a2..adc88a33c59 100755
--- a/Master/texmf-dist/scripts/pst2pdf/pst2pdf.pl
+++ b/Master/texmf-dist/scripts/pst2pdf/pst2pdf.pl
@@ -3,8 +3,8 @@ eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' && eval 'exec perl -S $0 $
use strict; # to be sure, that all is safe ... :-)
-# v. 0.06 simplify the use of PSTricks with pdf
-# 2007-08-28 (c) hvoss@tug.org
+# v. 0.07 simplify the use of PSTricks with pdf
+# 2008-09-29 (c) hvoss@tug.org
use File::Path; # creating/removing dirs
use File::Basename; # scan argument
use IO::File; # simple IO operation
@@ -14,7 +14,7 @@ use Getopt::Long; # read parameter
my $imageDir = "images"; # where to save the images
#my @imageType = ("eps","pdf","png"); # all image types (png only for Linux)
my @imageType = ("eps","pdf"); # all image types
-my $Iext = ".png"; # leave empty, if not a special one
+my $Iext = ".pdf"; # leave empty, if not a special one
my $tempDir = "."; # temporary directory
my $verbose = 1; # 0 or 1, logfile
my $clear = 0; # 0 or 1, clears all temporary files
@@ -292,6 +292,7 @@ sub runpdfTeX() {
if ($iPS > 0) {
print PDF substr($_,$iPS+15); # rest of line
$ignore = 0;
+ $type=-1;
} # end Scan
} elsif ( $type == 1 ) { # pspicture env
my $iPST = index($_,"end{pspicture}");
@@ -329,12 +330,12 @@ __END__
=head1 NAME
-B<PST2pdf> - run a TeX source, and convert all PS-related part as single images
- (pdf and eps)
+B<pst2pdf> - run a TeX source, and convert all PS-related part as single images
+ (pdf and/or eps and/or png and/or ...) and then runs pdflatex.
=head1 SYNOPSIS
- PSTpdf <texfile>
+ pst2pdf.pl <texfile[,tex]> [Options]
TODO