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}
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