Graphics, Figures & TablesHyperlinks and psfrag

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
jbroida
Posts: 6
Joined: Sun Feb 14, 2016 6:36 pm

Hyperlinks and psfrag

Post by jbroida »

I'm not sure how to use both psfrag and create hyperlinks in a pdf output. Using TexShop I have the Typeset option at "TeX and DVI" and psfrag works fine. But to use package hyperref I have to set the Typeset option to "Pdftex" which gives me the proper hyperlink, but psfrag doesn't work. How can I get both working?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Hyperlinks and psfrag

Post by Stefan Kottwitz »

Hi!

hyperref works with LaTeX in DVI mode too and is able to generate hyperlinks in a PDF converted using dvips, for example.
Perhaps post some details, such as your code and a PS file.

Stefan
LaTeX.org admin
jbroida
Posts: 6
Joined: Sun Feb 14, 2016 6:36 pm

Hyperlinks and psfrag

Post by jbroida »

Stefan, if you give me an email address I'll send you the codes I use to get either psfrag to work or the hyperlink to work, the xfig generated eps graphic that requires psfrag, as well as the outputs I get.
jbroida
Posts: 6
Joined: Sun Feb 14, 2016 6:36 pm

Hyperlinks and psfrag

Post by jbroida »

And here is the error message I get when I try to typeset everything with the Typeset option set to "TeX and DVI."
Attachments
Screen Shot 2017-01-16 at 9.07.30 PM.png
Screen Shot 2017-01-16 at 9.07.30 PM.png (140.39 KiB) Viewed 2232 times
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Hyperlinks and psfrag

Post by Johannes_B »

Do not load hyperref with the pdftex option.
That mistake is often seen with old templates that never get updated.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply