LyXpstool | Compilation aborted

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
scal
Posts: 4
Joined: Fri Jun 08, 2012 1:31 pm

pstool | Compilation aborted

Post by scal »

Hi All,

Problem occuring using psfragfig from the pstool package. When hit the pdflatex button all I get is a figure caption with no figure. In place of the figure I get a black box with a message in red text: An error occured processing graphic './xxx'. The log file is attached.

I use LyX on Windows XP so I changed the LaTeX (pdflatex) -> PDF (pdflatex) converter from pdflatex $$i to pdflatex --enable-write18 $$i

The only thing in my preamble is \usepackage[crop=pdfcrop]{pstool}

this is my code (2 methods for the same thing):

Code: Select all

\begin{figure}
\psfragfig*{sss}
\caption{no float insert}     
\end{figure}

\selectlanguage{english}%
\noindent \begin{flushleft}
\begin{figure}[h]
\selectlanguage{british}%
\noindent \psfragfig*{sss}

\selectlanguage{english}%
\caption{\selectlanguage{british}%
psfrag only\selectlanguage{english}
}
\end{figure}

\par\end{flushleft}\selectlanguage{british}
Why the hell won't it compile as expected?! (note - it compiles in ps2pdf however this will not run other packages i also wish to include in the future)

Please help!

Scal


----------->>>>>>>>>>>>>

Thanks guys, you've all been a big help. Solved it myself, took a millenia!

If you get a similar problem to me use \usepackage{pstool} on its own without pdfcrop (installed perl scripts but that did nothing to help!)

My main problem was that I was trying to run Lyx file from within My Documents. I think the spaces in the path cause it to bug out and not find the graphic, this is quite pathetic if you ask me! Place working folder on C: drive.

Next problem was the text labels not displaying with the figure. \usepackage{lmodern} fixed this (found by trial and error!)

Hope this will help eleviate someone elses grief,

scal
Attachments
newfile1.log
The log file.
(14.64 KiB) Downloaded 431 times

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply