summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/pstool/README2
-rw-r--r--Master/texmf-dist/doc/latex/pstool/example.pdfbin0 -> 13318 bytes
-rw-r--r--Master/texmf-dist/doc/latex/pstool/example.tex (renamed from Master/texmf-dist/doc/latex/pstool/example/example.tex)2
-rw-r--r--Master/texmf-dist/doc/latex/pstool/macros.tex (renamed from Master/texmf-dist/doc/latex/pstool/example/macros.tex)0
-rw-r--r--Master/texmf-dist/doc/latex/pstool/pstool.pdfbin431220 -> 425798 bytes
-rw-r--r--Master/texmf-dist/doc/latex/pstool/subdir/trial2-psfrag.eps (renamed from Master/texmf-dist/doc/latex/pstool/example/subdir/trial2-psfrag.eps)0
-rw-r--r--Master/texmf-dist/doc/latex/pstool/subdir/trial2-psfrag.tex (renamed from Master/texmf-dist/doc/latex/pstool/example/subdir/trial2-psfrag.tex)0
-rw-r--r--Master/texmf-dist/doc/latex/pstool/trial.eps (renamed from Master/texmf-dist/doc/latex/pstool/example/trial.eps)0
-rw-r--r--Master/texmf-dist/doc/latex/pstool/trial.tex (renamed from Master/texmf-dist/doc/latex/pstool/example/trial.tex)0
-rw-r--r--Master/texmf-dist/source/latex/pstool/pstool.tex74
-rw-r--r--Master/texmf-dist/tex/latex/pstool/pstool.sty31
11 files changed, 58 insertions, 51 deletions
diff --git a/Master/texmf-dist/doc/latex/pstool/README b/Master/texmf-dist/doc/latex/pstool/README
index 7fde3208408..461bcc848f4 100644
--- a/Master/texmf-dist/doc/latex/pstool/README
+++ b/Master/texmf-dist/doc/latex/pstool/README
@@ -1,6 +1,6 @@
__________________
The pstool package
-v1.2a
+v1.2b
A package like "pst-pdf" for processing PostScript graphics
with psfrag labels within pdfLaTeX documets. The difference
diff --git a/Master/texmf-dist/doc/latex/pstool/example.pdf b/Master/texmf-dist/doc/latex/pstool/example.pdf
new file mode 100644
index 00000000000..235fea29758
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/pstool/example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/pstool/example/example.tex b/Master/texmf-dist/doc/latex/pstool/example.tex
index 6ec8924650e..b075b6deccb 100644
--- a/Master/texmf-dist/doc/latex/pstool/example/example.tex
+++ b/Master/texmf-dist/doc/latex/pstool/example.tex
@@ -14,7 +14,7 @@ External macros: \a, \b, \c
\psfrag{[Mp]}{$M_\a$!}%
}
-\psfragfig{subdir/trial2}{%
+\psfragfig[angle=45]{subdir/trial2}{%
\psfrag{[Mp]}{$Z_\b$}%
}
diff --git a/Master/texmf-dist/doc/latex/pstool/example/macros.tex b/Master/texmf-dist/doc/latex/pstool/macros.tex
index c2c38e58298..c2c38e58298 100644
--- a/Master/texmf-dist/doc/latex/pstool/example/macros.tex
+++ b/Master/texmf-dist/doc/latex/pstool/macros.tex
diff --git a/Master/texmf-dist/doc/latex/pstool/pstool.pdf b/Master/texmf-dist/doc/latex/pstool/pstool.pdf
index 5096e9893e5..a15685d8b81 100644
--- a/Master/texmf-dist/doc/latex/pstool/pstool.pdf
+++ b/Master/texmf-dist/doc/latex/pstool/pstool.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/pstool/example/subdir/trial2-psfrag.eps b/Master/texmf-dist/doc/latex/pstool/subdir/trial2-psfrag.eps
index 696c79c9e7a..696c79c9e7a 100644
--- a/Master/texmf-dist/doc/latex/pstool/example/subdir/trial2-psfrag.eps
+++ b/Master/texmf-dist/doc/latex/pstool/subdir/trial2-psfrag.eps
diff --git a/Master/texmf-dist/doc/latex/pstool/example/subdir/trial2-psfrag.tex b/Master/texmf-dist/doc/latex/pstool/subdir/trial2-psfrag.tex
index e61e307d709..e61e307d709 100644
--- a/Master/texmf-dist/doc/latex/pstool/example/subdir/trial2-psfrag.tex
+++ b/Master/texmf-dist/doc/latex/pstool/subdir/trial2-psfrag.tex
diff --git a/Master/texmf-dist/doc/latex/pstool/example/trial.eps b/Master/texmf-dist/doc/latex/pstool/trial.eps
index 67b4e045d4d..67b4e045d4d 100644
--- a/Master/texmf-dist/doc/latex/pstool/example/trial.eps
+++ b/Master/texmf-dist/doc/latex/pstool/trial.eps
diff --git a/Master/texmf-dist/doc/latex/pstool/example/trial.tex b/Master/texmf-dist/doc/latex/pstool/trial.tex
index e1f0a782eda..e1f0a782eda 100644
--- a/Master/texmf-dist/doc/latex/pstool/example/trial.tex
+++ b/Master/texmf-dist/doc/latex/pstool/trial.tex
diff --git a/Master/texmf-dist/source/latex/pstool/pstool.tex b/Master/texmf-dist/source/latex/pstool/pstool.tex
index d7159547dc4..d4b434b399f 100644
--- a/Master/texmf-dist/source/latex/pstool/pstool.tex
+++ b/Master/texmf-dist/source/latex/pstool/pstool.tex
@@ -2,7 +2,7 @@
\begin{filecontents*}{README.txt}
__________________
The pstool package
-v1.2a
+v1.2b
A package like "pst-pdf" for processing PostScript graphics
with psfrag labels within pdfLaTeX documets. The difference
@@ -22,7 +22,7 @@ Copyright 2008
\end{filecontents*}
\begin{filecontents}{pstool.sty}
-\ProvidesPackage{pstool}[2009/05/25 v1.2a
+\ProvidesPackage{pstool}[2009/07/03 v1.2b
Wrapper for processing PostScript/psfrag figures]
% External packages
@@ -221,8 +221,8 @@ Copyright 2008
}
\def\pstool@stripEPS#1.eps#2\@nil{#1}
-% |test.eps\@nil|->|test|\\
-% |test.eps.eps\@nil|->|test|
+% |test.eps\@nil| $\to$ |test| (|#2| $\to$ \<empty>)\\
+% |test.eps.eps\@nil| $\to$ |test| (|#2| $\to$ |.eps|)
% \section{Command parsing}
% User input is \cmd\pstool\ (with optional |*| or |!| suffix) which turns into one of the following three macros depending on the mode.
@@ -233,7 +233,7 @@ Copyright 2008
\ifpdf
\newcommand\pstool@neverprocess[3][]{%
- \pstool@includegraphics[#1]{#2}}
+ \pstool@includegraphics{#2}}
\else
\newcommand\pstool@neverprocess[3][]{%
\begingroup
@@ -250,7 +250,7 @@ Copyright 2008
\pstool@IfnewerEPS{% needs info from |\pstool@getpaths|
\pstool@process{#1}{#3}%
}{%
- \pstool@includegraphics[#1]{#2}%
+ \pstool@includegraphics{#2}%
}%
}{%
\pstool@process{#1}{#3}%
@@ -297,7 +297,7 @@ Copyright 2008
-interaction=\pstool@mode\space
\pstool@latex@opts\space
"\pstool@jobname.tex"}%
-% Execute dvips in quiet mode if latex is not run in (non/error)stop mode:
+% Execute |dvips| in quiet mode if |latex| is not run in (non/error)stop mode:
\pstool@exe{dvips}{\ip@directpath}{%
dvips \if@pstool@verbose@\else -q \fi -Ppdf
\pstool@dvips@opts\space "\pstool@jobname.dvi"}%
@@ -315,7 +315,7 @@ Copyright 2008
\fi
\pstool@endprocess{%
\pstool@cleanup
- \pstool@includegraphics[#1]{%
+ \pstool@includegraphics{%
\ip@directpath\ip@lastelement}%
}%
\pstool@echo@verbose{^^J=== pstool: end processing ===^^J}%
@@ -371,8 +371,12 @@ Copyright 2008
% for EPS figures with psfrag:
\newcommand\psfragfig[2][]{\pstool@psfragfig{#1}{#2}{}}
-\WithSuffix\newcommand\psfragfig*[2][]{\pstool@psfragfig{#1}{#2}{*}}
-\WithSuffix\newcommand\psfragfig![2][]{\pstool@psfragfig{#1}{#2}{!}}
+\WithSuffix\newcommand\psfragfig*[2][]{%
+ \pstool@psfragfig{#1}{#2}{*}%
+}
+\WithSuffix\newcommand\psfragfig![2][]{%
+ \pstool@psfragfig{#1}{#2}{!}%
+}
% Parse optional \<input definitions>
\newcommand\pstool@psfragfig[3]{%
@@ -387,10 +391,10 @@ Copyright 2008
%
% |#1|: possible graphicx options\\
% |#2|: graphic name (possibly with path)\\
-% |#3|: |\pstool| suffix (i.e., |!| or |*| or empty\\
-% |#4|: possible \pkg{psfrag} macros
+% |#3|: |\pstool| suffix (i.e., |!| or |*| or \<empty>)\\
+% |#4|: possible \pkg{psfrag} (or other) macros
\newcommand\pstool@@psfragfig[4]{%
- % Find the.eps file to use.
+ % Find the .eps file to use.
\IfFileExists{#2-psfrag.eps}{%
\edef\pstool@eps{#2-psfrag}%
\OnlyIfFileExists{#2.eps}{%
@@ -444,6 +448,7 @@ Copyright 2008
}%
}
+% That's it.
\end{filecontents}
%%%%%%%%%1%%%%%%%%%2%%%%%%%%%3%%%%%%%%%4%%%%%%%%%5
@@ -472,7 +477,7 @@ Copyright 2008
\usepackage[rm,medium]{titlesec}
-\usepackage{bigfoot,xcolor}
+\usepackage{xcolor}
\usepackage[colorlinks,linktocpage]{hyperref}
\usepackage{gmdoc}
\usepackage{gmverb}
@@ -480,6 +485,9 @@ Copyright 2008
\stanzaskip=\bigskipamount
\CodeSpacesGrey
+\usepackage{enumitem}
+\setlist{noitemsep}
+
\usepackage{tocloft,varwidth}
\setcounter{tocdepth}{1}
\def\tocwidthA{0.45}
@@ -542,13 +550,13 @@ More flexible usage to provide a complete replacement for \pkg{pst-pdf} (e.g., s
\section{Getting started}
-Load the package as usual; no package options are required by default, but there are a few useful options described later in section~\ref{pkgopt}. Note that you do not need to load \pkg{psfrag} separately.
+Load the package as usual; no package options are required by default, but there are a few useful options described later in section~\ref{pkgopt}. Note that you do not need to load \pkg{psfrag} separately. You also do not need to load \pkg{graphicx} separately, but if you do so, ensure that you do \emph{not} include driver information (such as |[pdftex]|); this will play havoc with \pkg{pstool}'s automatic processing stage.
-The generic command provided by this package is
-\begin{center}
+The generic command provided by this package is\par
+{\centering
\cmd\pstool\ \arg[graphicx options] \arg{filename} \arg{input definitions}
-\end{center}
-It converts the graphic \<filename>|.eps| to \<filename>|.pdf| through a unique \DVI$\to$\PS$\to$\PDF\ process for each graphic, using the preamble of the main document. The resulting graphic is then inserted into the document, with optional \<graphicx options>. The third argument to \cmd\pstool\ allows arbitrary \<input definitions> (such as \cmd\psfrag\ directives) to be inserted before the figure as it is processed.
+\par}
+It converts the graphic \<filename>|.eps| to \<filename>|.pdf| through a unique \DVI$\to$\PS$\to$\PDF\ process for each graphic, using the preamble of the main document. The resulting graphic is then inserted into the document, with optional \<graphicx options>. Note that these optional arguments take effect in the \emph{processing stage}; if you change the \<options>, you must re-process the figure. The third argument to \cmd\pstool\ allows arbitrary \<input definitions> (such as \cmd\psfrag\ directives) to be inserted before the figure as it is processed.
The command \cmd\pstool\ can take an optional |*| or |!| suffix to change the behaviour of the command:
\begin{description}
@@ -562,9 +570,9 @@ It is useful to define higher-level commands based on \cmd\pstool\ for including
\begin{description}
\item[{\cmd\psfragfig\arg[opts]\arg{filename}}]
This is the catch-all macro to support a wide range of graphics naming schemes. It inserts an \EPS\ file named either \<filename>|-psfrag.eps| or \<filename>|.eps| (in that order of preference), and uses \pkg{psfrag} definitions contained within either \<filename>|-psfrag.tex| or \<filename>|.tex|.
-
-This command can be used to insert figures produced by the \textsc{Mathematica} package \pkg{MathPSfrag} or the \textsc{Matlab} package \pkg{matlabfrag}. \cmd\psfragfig\ also accepts an optional braced argument as shown next.
-
+\end{description}
+This command can be used to insert figures produced by the \textsc{Mathematica} package \pkg{MathPSfrag} or the \textsc{Matlab} package \pkg{matlabfrag}. \cmd\psfragfig\ also accepts an optional braced argument:
+\begin{description}
\item[{\cmd\psfragfig\arg[opts]\arg{filename}\arg{input definitions}}]
As above, but inserts the arbitrary code \<input definitions>, which will usually be used to define new or override existing \pkg{psfrag} commands.
\end{description}
@@ -575,23 +583,19 @@ As above, but inserts the arbitrary code \<input definitions>, which will usuall
\subsection{Forcing/disabling graphics processing}
\label{process}
-While the suffixes |*| and |!| can be used to force or disable (respectively) the processing of each individual graphic, sometimes we want to do this on a global level. The following package options override \emph{all} \cmd\pstool\ (and related) macros:
+While the suffixes |*| and |!| can be used to force or disable (respectively) the processing of each individual graphic, sometimes we want to do this on a global level. The following package options override \emph{all} \pkg{pstool} macros:
\begin{description}
\item[\pkgopt{process=auto}] This is the default mode as described in the previous section, in which graphics with suffixes are only (re-)processed if the \EPS\ file is newer or the \PDF\ file does not exist;
\item[\pkgopt{process=all}] Suffixes are ignored and all \cmd\pstool\ graphics are processed;
\item[\pkgopt{process=none}] Suffixes are ignored and no \cmd\pstool\ graphics are processed.\footnote{If \pkg{pstool} is loaded in a \LaTeX\ document in \DVI\ mode, this is the option that is used since no external processing is required for these graphics.}
\end{description}
-Also note that it would be nice to detect the age of files other than the \EPS\ and \PDF\ graphics in order to affect the processing decisions. This is planned for a possible future release.
-
\subsection{Cropping graphics}
The default option \pkgopt{crop=preview} selects the \pkg{preview} package to crop graphics to the appropriate size for each auxiliary process.
However, when an inserted label protrudes from the natural bounding box of the figure, or when the original bounding box of the figure is wrong, the \pkg{preview} package will not always produce a good result (with parts of the graphic trimmed off the edge). A robust method to solve this problem is to use the \pkg{pdfcrop} program instead.%
\footnote{\pkg{pdfcrop} requires a Perl installation under Windows, freely available from \url{http://www.activestate.com/Products/activeperl/index.plex}} This can be activated in \pkg{pstool} with the \pkgopt{crop=pdfcrop} package option.
-In the future I plan to also support \pkg{epstool} for doing the same thing.
-
\subsection{Temporary files \& cleanup}
Each figure that is processed spawns an auxiliary \LaTeX\ compilation through \DVI$\to$\PS$\to$\PDF. This process is named after the name of the figure with an appended string suffix; the default is \pkgopt{suffix=\{-pstool\}}. All of these suffixed files are ``temporary'' in that they may be deleted once they are no longer needed.
@@ -611,10 +615,10 @@ These three package options correspond to the \LaTeX\ command line options \text
\subsection{Auxiliary processing command line options}
The command line options passed to each program of the auxiliary processing can be changed with the following package options:
\begin{description}
-\item[\pkgopt{latex-options}] ;
-\item[\pkgopt{dvips-options}] ;
-\item[\pkgopt{ps2pdf-options}] ; and,
-\item[\pkgopt{pdfcrop-options}] .
+\item[\pkgopt{latex-options=...}];
+\item[\pkgopt{dvips-options=...}];
+\item[\pkgopt{ps2pdf-options=...}]; and,
+\item[\pkgopt{pdfcrop-options=...}].
\end{description}
For the most part these will be unnecessary, although passing the correct options to |ps2pdf| can sometimes be a little obscure. For example, I use the following for generating figures in my thesis:\par
{\centering|ps2pdf-options={-dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress}|\par}
@@ -630,7 +634,7 @@ where-ever you'd like the preamble in the auxiliary processing to end (although
\subsection{Cross-reference limitations}
-The initial release of this package does not support cross-references within the \pkg{psfrag} labels of the included graphics. (If, say, you wish to refer to an equation number within a figure.) A future release of \pkg{pstool} will hopefully lift this limitation.
+The initial release of this package does not support cross-references within the \pkg{psfrag} labels of the included graphics. (If, say, you wish to refer to an equation number or a citation within a figure.)
\subsection{A note on file paths}
@@ -642,18 +646,16 @@ One problem that \pkg{pstool} does not (currently) solve on its own is the inclu
|openout_any=a pdflatex ...|
\item Create a symbolic link in the working directory to a point higher in the path: |ln -s ../../PhD ./PhD|, for example, and then refer to the graphics through this symbolic link.
\end{enumerate}
-I hope to directly solve this problem in the future by using a caching folder for the auxiliary processing in such cases.
\section{Package information}
The most recent publicly released version of \pkg{pstool} is available at \textsc{CTAN}:\\
\centerline{\url{http://tug.ctan.org/pkg/pstool/}}\\
Historical and developmental versions are available at GitHub:\\ \centerline{\url{http://github.com/wspr/pstool/}}\\
-While general feedback at \url{wspr81@gmail.com} is welcomed, specific bugs should be reported through the bug tracker at FogBugz: \url{https://wspr.fogbugz.com/} (click `\textsc{tasks}: Enter a New Case').
+While general feedback at \url{wspr81@gmail.com} is welcomed, specific bugs should be reported through the issue tracker at GitHub: \url{http://github.com/wspr/pstool/issues}.
\subsection{Licence}
-This package is freely modifiable and distributable under the terms and conditions of the \LaTeX\ Project Public Licence, version 1.3c or greater (your choice). The latest version of
-this license is available at: \url{http://www.latex-project.org/lppl.txt}. This work is maintained by \textsc{Will Robertson}.
+This package is freely modifiable and distributable under the terms and conditions of the \LaTeX\ Project Public Licence, version 1.3c or greater (your choice).\footnote{\url{http://www.latex-project.org/lppl.txt}} This work consists of the files |pstool.tex| and the derived files |pstool.sty|, |pstool.ins|, and |pstool.pdf|. This work is maintained by \textsc{Will Robertson}.
{\addtocontents{toc}{\protect\end{varwidth}\protect\hfill}}
{\addtocontents{toc}{\protect\begin{varwidth}[t]{\protect\tocwidthB\protect\linewidth}}}
diff --git a/Master/texmf-dist/tex/latex/pstool/pstool.sty b/Master/texmf-dist/tex/latex/pstool/pstool.sty
index dfb1d7d0e5d..f4124251176 100644
--- a/Master/texmf-dist/tex/latex/pstool/pstool.sty
+++ b/Master/texmf-dist/tex/latex/pstool/pstool.sty
@@ -1,8 +1,8 @@
%% LaTeX2e file `pstool.sty'
%% generated by the `filecontents' environment
-%% from source `pstool' on 2009/05/25.
+%% from source `pstool' on 2009/07/03.
%%
-\ProvidesPackage{pstool}[2009/05/25 v1.2a
+\ProvidesPackage{pstool}[2009/07/03 v1.2b
Wrapper for processing PostScript/psfrag figures]
% External packages
@@ -201,8 +201,8 @@
}
\def\pstool@stripEPS#1.eps#2\@nil{#1}
-% |test.eps\@nil|->|test|\\
-% |test.eps.eps\@nil|->|test|
+% |test.eps\@nil| $\to$ |test| (|#2| $\to$ \<empty>)\\
+% |test.eps.eps\@nil| $\to$ |test| (|#2| $\to$ |.eps|)
% \section{Command parsing}
% User input is \cmd\pstool\ (with optional |*| or |!| suffix) which turns into one of the following three macros depending on the mode.
@@ -213,7 +213,7 @@
\ifpdf
\newcommand\pstool@neverprocess[3][]{%
- \pstool@includegraphics[#1]{#2}}
+ \pstool@includegraphics{#2}}
\else
\newcommand\pstool@neverprocess[3][]{%
\begingroup
@@ -230,7 +230,7 @@
\pstool@IfnewerEPS{% needs info from |\pstool@getpaths|
\pstool@process{#1}{#3}%
}{%
- \pstool@includegraphics[#1]{#2}%
+ \pstool@includegraphics{#2}%
}%
}{%
\pstool@process{#1}{#3}%
@@ -277,7 +277,7 @@
-interaction=\pstool@mode\space
\pstool@latex@opts\space
"\pstool@jobname.tex"}%
-% Execute dvips in quiet mode if latex is not run in (non/error)stop mode:
+% Execute |dvips| in quiet mode if |latex| is not run in (non/error)stop mode:
\pstool@exe{dvips}{\ip@directpath}{%
dvips \if@pstool@verbose@\else -q \fi -Ppdf
\pstool@dvips@opts\space "\pstool@jobname.dvi"}%
@@ -295,7 +295,7 @@
\fi
\pstool@endprocess{%
\pstool@cleanup
- \pstool@includegraphics[#1]{%
+ \pstool@includegraphics{%
\ip@directpath\ip@lastelement}%
}%
\pstool@echo@verbose{^^J=== pstool: end processing ===^^J}%
@@ -351,8 +351,12 @@
% for EPS figures with psfrag:
\newcommand\psfragfig[2][]{\pstool@psfragfig{#1}{#2}{}}
-\WithSuffix\newcommand\psfragfig*[2][]{\pstool@psfragfig{#1}{#2}{*}}
-\WithSuffix\newcommand\psfragfig![2][]{\pstool@psfragfig{#1}{#2}{!}}
+\WithSuffix\newcommand\psfragfig*[2][]{%
+ \pstool@psfragfig{#1}{#2}{*}%
+}
+\WithSuffix\newcommand\psfragfig![2][]{%
+ \pstool@psfragfig{#1}{#2}{!}%
+}
% Parse optional \<input definitions>
\newcommand\pstool@psfragfig[3]{%
@@ -367,10 +371,10 @@
%
% |#1|: possible graphicx options\\
% |#2|: graphic name (possibly with path)\\
-% |#3|: |\pstool| suffix (i.e., |!| or |*| or empty\\
-% |#4|: possible \pkg{psfrag} macros
+% |#3|: |\pstool| suffix (i.e., |!| or |*| or \<empty>)\\
+% |#4|: possible \pkg{psfrag} (or other) macros
\newcommand\pstool@@psfragfig[4]{%
- % Find the.eps file to use.
+ % Find the .eps file to use.
\IfFileExists{#2-psfrag.eps}{%
\edef\pstool@eps{#2-psfrag}%
\OnlyIfFileExists{#2.eps}{%
@@ -424,3 +428,4 @@
}%
}
+% That's it.