From add0cf86e889459ca041543cfe8e6c816f3e50f0 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 30 Sep 2008 00:05:00 +0000 Subject: pst2pdf update (29sep08) git-svn-id: svn://tug.org/texlive/trunk@10791 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/pst2pdf/Changes | 4 +++- Master/texmf-dist/doc/latex/pst2pdf/README | 20 +++++++++++++++----- Master/texmf-dist/scripts/pst2pdf/pst2pdf.pl | 13 +++++++------ 3 files changed, 25 insertions(+), 12 deletions(-) (limited to 'Master') 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 - run a TeX source, and convert all PS-related part as single images - (pdf and eps) +B - 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 + pst2pdf.pl [Options] TODO -- cgit v1.2.3