unsupported unsupported Aˆl–Ým_J*eJy@ãM\êbÑ¿�þ[’¬ÛŒ²WÈðÞy ? „BÁ_ˆI|¥�+$¾ÁÀ?÷%% PSTOOL.STY % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either % version 1.3c or (at your option) any later version. % The latest version of this license is in: % % % This work has the LPPL maintenance status `maintained'. % % The Current Maintainer of this work is Will Robertson. \ProvidesPackage{pstool}[2018/01/20 v1.5e Wrapper for processing PostScript/psfrag figures] % TODO: convert this package into expl3 syntax (will save many lines of code). % External packages: \RequirePackage{ catchfile,color,ifpdf,ifplatform,filemod, graphicx,psfrag,shellesc,suffix,trimspaces,xkeyval,expl3 } % Add an additional command before trimspaces.sty is updated formally: \providecommand*{\trim@multiple@spaces@in}[1]{% \let\trim@temp#1% \trim@spaces@in#1% \ifx\trim@temp#1% \else \expandafter\trim@multiple@spaces@in\expandafter#1% \fi } % \subsection{Allocations} \expandafter\newif\csname if@pstool@pdfcrop@\endcsname \expandafter\newif\csname if@pstool@verbose@\endcsname \expandafter\newif\csname if@pstool@crossref@\endcsname \expandafter\newif\csname if@pstool@has@written@aux\endcsname \newwrite\pstool@out \newread\pstool@mainfile@ior \newread\pstool@auxfile@ior % Macro used to store the name of the graphic's macro file: \let\pstool@tex\@empty % \subsection{Package options} \define@choicekey*{pstool.sty}{crop} [\@tempa\@tempb]{preview,pdfcrop}{% \ifcase\@tempb\relax \@pstool@pdfcrop@false \or \@pstool@pdfcrop@true \or \fi } \define@choicekey*{pstool.sty}{process} [\@tempa\pstool@process@choice]{all,none,auto}{} \ExecuteOptionsX{process=auto} \define@choicekey*{pstool.sty}{mode} [\@tempa\@tempb]{errorstop,nonstop,batch}{% \ifnum\@tempb=2\relax \@pstool@verbose@false \else \@pstool@verbose@true \fi \edef\pstool@mode{\@tempa mode}% } \ExecuteOptionsX{mode=batch} \DeclareOptionX{cleanup}{% \edef\pstool@rm@files{\zap@space #1 \@empty}% \if@pstool@crossref@ \@for\@ii:=\pstool@rm@files\do{% \edef\@tempa{\@ii}% \def\@tempb{.aux}% \ifx\@tempa\@tempb \PackageWarning{pstool}{^^J\space\space% You have requested that ".aux" files be deleted.^^J\space\space Cross-referencing within pstool graphics therefore disabled.^^J% This warning occurred} \fi }% \fi } \ExecuteOptionsX{cleanup={.tex,.dvi,.ps,.pdf,.log}} \define@choicekey*{pstool.sty}{crossref}[\@tempa\@tempb]{false,true}{% \ifcase\@tempb\relax \@pstool@crossref@false \or \@pstool@crossref@true \or \fi } \@onlypreamble\@pstool@crossref@true \@onlypreamble\@pstool@crossref@false \ExecuteOptionsX{crossref=true} \DeclareOptionX{suffix}{\def\pstool@suffix{#1}} \ExecuteOptionsX{suffix={-pstool}} % There is an implicit \cs{space} after the bitmap options. \define@choicekey*{pstool.sty}{bitmap} [\@tempa\@tempb]{auto,lossless,lossy}{% \ifcase\@tempb \let\pstool@bitmap@opts\@empty \or \def\pstool@bitmap@opts{% -dAutoFilterColorImages=false -dAutoFilterGrayImages=false -dColorImageFilter=/FlateEncode -dGrayImageFilter=/FlateEncode % space } \or \def\pstool@bitmap@opts{% -dAutoFilterColorImages=false -dAutoFilterGrayImages=false -dColorImageFilter=/DCTEncode -dGrayImageFilter=/DCTEncode % space } \fi } \ExecuteOptionsX{bitmap=lossless} \DeclareOptionX{latex-options}{\def\pstool@latex@opts{#1}} \DeclareOptionX{dvips-options}{\def\pstool@dvips@opts{#1}} \DeclareOptionX{ps2pdf-options}{\def\pstool@pspdf@opts{#1}} \DeclareOptionX{pdfcrop-options}{\def\pstool@pdfcrop@opts{#1}} \ExecuteOptionsX{ latex-options={}, dvips-options={}, ps2pdf-options={-dPDFSETTINGS=/prepress}, pdfcrop-options={} } \DeclareOptionX{macro-file}{% \IfFileExists{#1} {\def\pstool@macrofile{#1}} {% \let\pstool@macrofile\@empty \PackageError{pstool}{^^J\space\space%