Generalpstool

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
remusmp
Posts: 25
Joined: Sat Oct 17, 2009 8:37 pm

pstool

Post by remusmp »

Hi,

I cannot get pstool to work on my machine: Windows + Miktex 2.9.

Here is a small example:

Code: Select all

\documentclass{article}
\usepackage{pstool}

\begin{document}
\begin{figure}[h]
	\centering
	\pstool[width=\textwidth]{Wind3DField1}{}
\end{figure}

\end{document}
The log file:

Code: Select all

This is pdfTeX, Version 3.1415926-1.40.11 (MiKTeX 2.9) (preloaded format=pdflatex 2010.11.26) 27 NOV 2010 23:06
entering extended mode
**main.tex
("D:\Master\LaTeX\Problem14\main.tex"
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat
vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm
an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese,
romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis
sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u
senglishmax, welsh, loaded.
("C:\Program Files\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX 2.9\tex\latex\base\size10.clo"
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
("C:\Program Files\MiKTeX 2.9\tex\latex\pstool\pstool.sty"
Package: pstool 2009/07/17 v1.3 Wrapper for processing PostScript/psfrag figure
s
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\catchfile.sty"
Package: catchfile 2010/04/28 v1.5 Catches the contents of a file (HO)
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\infwarerr.sty"
Package: infwarerr 2010/04/08 v1.3 Providing info/warning/message (HO)
)
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ltxcmds.sty"
Package: ltxcmds 2010/04/26 v1.7 LaTeX kernel commands for general use (HO)
)
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\etexcmds.sty"
Package: etexcmds 2010/01/28 v1.3 Prefix for e-TeX command names (HO)
Package etexcmds Info: Could not find \expanded.
(etexcmds) That can mean that you are not using pdfTeX 1.50 or
(etexcmds) that some package has redefined \expanded.
(etexcmds) In the latter case, load this package earlier.
))
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\color.sty"
Package: color 2005/11/14 v1.0j Standard LaTeX Color (DPC)
("C:\Program Files\MiKTeX 2.9\tex\latex\00miktex\color.cfg"
File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
)
Package color Info: Driver file: pdftex.def on input line 130.
("C:\Program Files\MiKTeX 2.9\tex\latex\pdftex-def\pdftex.def"
File: pdftex.def 2010/09/14 v0.05b Graphics/color for pdfTeX
\Gread@gobject=\count87
))
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifpdf.sty"
Package: ifpdf 2010/01/28 v2.1 Provides the ifpdf switch (HO)
Package ifpdf Info: pdfTeX in pdf mode detected.
)
("C:\Program Files\MiKTeX 2.9\tex\latex\ifplatform\ifplatform.sty"
Package: ifplatform 2009/09/10 v0.3a Testing for the operating system
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\pdftexcmds.sty"
Package: pdftexcmds 2010/04/01 v0.9 Utility functions of pdfTeX for LuaTeX (HO)
("C:\Program Files\MiKTeX 2.9\tex\generic\oberdiek\ifluatex.sty"
Package: ifluatex 2010/03/01 v1.3 Provides the ifluatex switch (HO)
Package ifluatex Info: LuaTeX not detected.
)
Package pdftexcmds Info: LuaTeX not detected.
Package pdftexcmds Info: \pdf@primitive is available.
Package pdftexcmds Info: \pdf@ifprimitive is available.
))
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphicx.sty"
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\keyval.sty"
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks14
)
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\graphics.sty"
Package: graphics 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
("C:\Program Files\MiKTeX 2.9\tex\latex\graphics\trig.sty"
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
("C:\Program Files\MiKTeX 2.9\tex\latex\00miktex\graphics.cfg"
File: graphics.cfg 2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
)
Package graphics Info: Driver file: pdftex.def on input line 91.
)
\Gin@req@height=\dimen103
\Gin@req@width=\dimen104
)
("C:\Program Files\MiKTeX 2.9\tex\latex\psfrag\psfrag.sty"
Package: psfrag 1998/04/11 v3.04 PSfrag (MCG)
\pfg@pcount=\count88
\pfg@scount=\count89
\pfg@temp=\write3
)
("C:\Program Files\MiKTeX 2.9\tex\latex\bigfoot\suffix.sty"
Package: suffix 2006/07/15 1.5 Variant command support
)
("C:\Program Files\MiKTeX 2.9\tex\latex\xkeyval\xkeyval.sty"
Package: xkeyval 2008/08/13 v2.6a package option processing (HA)
("C:\Program Files\MiKTeX 2.9\tex\generic\xkeyval\xkeyval.tex"
\XKV@toks=\toks15
\XKV@tempa@toks=\toks16
\XKV@depth=\count90
File: xkeyval.tex 2008/08/13 v2.6a key=value parser (HA)
))
\pstool@out=\write4
)
("D:\Master\LaTeX\Problem14\main.aux")
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 4.
LaTeX Font Info: ... okay on input line 4.
("C:\Program Files\MiKTeX 2.9\tex\context\base\supp-pdf.mkii"
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count91
\scratchdimen=\dimen105
\scratchbox=\box26
\nofMPsegments=\count92
\nofMParguments=\count93
\everyMPshowfont=\toks17
\MPscratchCnt=\count94
\MPscratchDim=\dimen106
\MPnumerator=\count95
\everyMPtoPDFconversion=\toks18
)
runsystem(echo "
=== pstool: begin processing ===")...executed.
runsystem(cd "./" & latex -shell-escape -output-format=dvi -output-directory=".
/" -interaction=batchmode "Wind3DField1-pstool.tex" & call echo ^%ERRORLEVEL^%
> pstool-statusfile.txt)...executed.
("D:\Master\LaTeX\Problem14\pstool-statusfile.txt")
runsystem(cd "./"& del "pstool-statusfile.txt" )...executed.
runsystem(cd "./" & dvips -q -Ppdf "Wind3DField1-pstool.dvi" & call echo ^%ERR
ORLEVEL^%> pstool-statusfile.txt)...executed.
("D:\Master\LaTeX\Problem14\pstool-statusfile.txt")
runsystem(cd "./"& del "pstool-statusfile.txt" )...executed.
runsystem(cd "./" & ps2pdf "-dAutoFilterColorImages=false" "-dAutoFilterGrayIma
ges=false" "-dColorImageFilter=/FlateEncode" "-dGrayImageFilter=/FlateEncode" "
-dPDFSETTINGS=/prepress" "Wind3DField1-pstool.ps" "Wind3DField1.pdf" & call ech
o ^%ERRORLEVEL^%> pstool-statusfile.txt)...executed.
("D:\Master\LaTeX\Problem14\pstool-statusfile.txt")
runsystem(cd "./"& del "pstool-statusfile.txt" )...executed.
runsystem(cd "./"& del "Wind3DField1-pstool.tex" )...executed.
runsystem(cd "./"& del "Wind3DField1-pstool.dvi" )...executed.
runsystem(cd "./"& del "Wind3DField1-pstool.ps" )...executed.
runsystem(cd "./"& del "Wind3DField1-pstool.log" )...executed.
runsystem(cd "./"& del "Wind3DField1-pstool.aux" )...executed.
! LaTeX Error: File `./Wind3DField1' not found.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.7 \pstool[width=\textwidth]{Wind3DField1}{}
I could not locate the file with any of these extensions:
.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPEG,.JBIG2,.JB2
Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
runsystem(echo "
=== pstool: end processing ===
")...executed.
[1
Non-PDF special ignored!
{C:/Documents and Settings/All Users/Application Data/MiKTeX/2.9/pdftex/config/
pdftex.map}] ("D:\Master\LaTeX\Problem14\main.aux") )
Here is how much of TeX's memory you used:
1608 strings out of 494019
22653 string characters out of 3146443
75853 words of memory out of 3000000
4883 multiletter control sequences out of 15000+200000
3640 words of font info for 14 fonts, out of 3000000 for 9000
714 hyphenation exceptions out of 8191
32i,5n,32p,413b,247s stack positions out of 5000i,500n,10000p,200000b,50000s
<C:/Program Files/MiKT
eX 2.9/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on main.pdf (1 page, 8410 bytes).
PDF statistics:
10 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)
There are a Wind3DField1.eps and a Wind3DField1.tex file in the same folder.

What am I doing wrong?

Thanks.
R.

LE:
I think ps2pdf is not working properly. If I call ps2pdf from command line I get this error:

Code: Select all

Files\gs\gs9.00\bin\/==/ was unexpected at this time.
I am running Win XP SP3.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply