I'm using the TexLive distribution on Ubuntu Linux 8.10. I learned how to use the psfrag package on other computers. I found it was missing on this installation. I downloaded psfrag.dtx and psfrag.ins and ran it to make psfrag.pro and psfrag.sty. I copied psfrag.sty to
/usr/share/texmf-texlive/tex/latex/graphics/psfrag.sty and
/usr/share/texmf-texlive/tex/latex/psfrag/psfrag.sty.
When I placed psfrag.pro in the folder with tex.pro,
/usr/share/texmf-texlive/dvips/base, and ran dvipdf, I saw this error:
dvips: ! Couldn't find header file psfrag.pro.
Note that an absolute path or a relative path with .. are denied in -R2 mode.
When I looked at that pdf, I found the psfrag tags on the left.
However, when I copied psfrag.pro to the folder where I placed my file, the psfrag tags wrote over the text in my eps figures as they were supposed to. Where should I place psfrag.pro so that this won't happen again if I need to use this package on a document not in that folder?
Graphics, Figures & Tables ⇒ psfrag installation
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
psfrag installation
The psfrag package is part of the texlive-latex-recommended bundle from the Ubuntu repositories [1]. If not done yet, you should install this bundle with your system's package manager. But before that you have to undo all operations you described above, especially the double copy of psfrag.sty in two different directories.
[1] Ubuntu - package texlive-latex-recommended
Best egards
Thorsten¹
[1] Ubuntu - package texlive-latex-recommended
Best egards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: psfrag installation
One anoying thing though, ubuntu still only has TeXLive 2007.
TeXLive 2008 has been released and now contains its own package manager.
It is still unknown when TL2008 will be added to Ubuntu.
TeXLive 2008 has been released and now contains its own package manager.
It is still unknown when TL2008 will be added to Ubuntu.