Ok, although I did not solve this in terms of LyX configuration: Just a
quick notice for sake of completeness and in case someone is plagued by
this issue and might be happy to find this.
On 10/26/12 12:29 PM, Michael Bach wrote:
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...
AFAIK, LyX does not copy the .eps and .tex psfrag files to the temporary
directory, because it does not parse the ERT for the psfragfig macro. I
decided to reference the files under figures/ directly with absolute
paths to the source dir. This does work via "openout_any = a" in
texmf.cnf but then compiling foreign documents does not feel secure
anymore...
I read the LyX "Customization" manual under 'Copier' for a better
solution, but could not find a reference to the LyX temporary directory
and have no clue how to best solve this in terms of LyX policy.
Michael