[OS X TeX] \psfragfig no longer working if eps files are in subdirectory

Dan Fridline dan.fridline at gmail.com
Mon Mar 15 19:27:50 CET 2021

I've been using \psfragig replacements for years on MacOS quite successfully. My general workflow is to have my main .tex file in a directory and all of my image files (bar*.eps) along with the corresponding text replacement files (bar*.tex) in a subdirectory (foo) under the main directory. I have never had any problems with this setup.

However, I just switched to a new machine (also a Mac) with an upgraded OS (Big Sur) and the process just described no longer seems to work. If my images are in a subdirectory I get the following error:

I can't write on file `foo/bar-pstool.tex'
The process works fine as long as the images are in the main directory so at least I know that I set the --shell-escape up correctly. I believe it to be some kind of OS permissions issue.  I did add the following line to my local texmf.cnf file:

openout_any = a
But no success (I didn’t think it would help but tried since that is supposed to allow processing of image files in directories outside of the main source directory).

Any suggestions (other than don't use \psfragfig would be appreciated.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/macostex-archives/attachments/20210315/03dc8427/attachment.html>
-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex

More information about the macostex-archives mailing list.