Dear LyX Users and Developers,
I am using MacTeX on OS X 10.8.2 with the pstool package installed. I am
trying to get the matlabfrag Matlab package to work. It can be found here:
http://www.mathworks.com/matlabcentral/fileexchange/21286-matlabfrag
The User Guide explicitly says to include the generated .eps file in LyX
via a LaTeX inset containing the \psfragfig macro inside a float
environment. The foo.eps file resides in the figures/ folder relative to
the .lyx file. I also had to enable -shell-escape in the converters
settings under preferences.
The LaTeX source thus reads:
\begin{figure}
\psfragfig{figures/EulerImplizit}
\caption{\label{fig:Implizites-Eulerverfahren-Matlab}Implizites
Eulerverfahren
mit Matlab. Verschiedene Schrittweiten $h$ für die Differentialgleichung
$x'=-x$}
\end{figure}
Now when I try to compile the document, I see the line:
=== pstool: begin processing ===
Error exporting to format
pdf2/Users/Shared/LyX/lyx-2.0.4/src/support/Systemcall.cpp(273):
Systemcall: 'pdflatex -synctex=-1 -shell-escape "skriptum.tex"'
finished with exit code 1
in the messages pane and get the error:
I can't write on file `figures/EulerExplizit-pstool.tex'.
Now I assume that the external command from pstool is run inside the
temporary LyX directory and it thus cannot find the figures/ folder to
write the .tex file to...
Is anyone using this setup? Or otherwise related to psfragfig? Can you
give me hints on how to solve this?
Best Regards,
Michael Bach