Graphics, Figures & TablesUsing psfrag on sharelatex.com

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
speppin
Posts: 2
Joined: Wed Dec 10, 2014 3:26 am

Using psfrag on sharelatex.com

Post by speppin »

Hello all,

Attached is a psfrag demo downloaded from http://www.ctan.org/pkg/psfrag. When compiling pfgguide.tex on sharelatex.com, the figures in the dvi contain the original strings instead of the LateX overlays. Any ideas why it is not working? Have also tried it on writelatex.com and get the same result. Attached is a pdf of the output for comparison with the demo.

Many thanks,

Steve
Attachments
pfgguide_sharelatex_output.pdf
pdf generated by sharelatex
(224.62 KiB) Downloaded 235 times
pfgguide.pdf
pdf given in the demo
(67.8 KiB) Downloaded 251 times
psfrag.zip
Ctan demo for psfrag
(122.72 KiB) Downloaded 173 times

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

speppin
Posts: 2
Joined: Wed Dec 10, 2014 3:26 am

Re: Using psfrag on sharelatex.com

Post by speppin »

Got a solution from the sharelatex.com team ~ turns out the default compiler is pdflatex which (as has been mentioned here) doesn't work with psfrag. Solution is to choose the LaTeX compiler from the menu and then it works fine! :)
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Using psfrag on sharelatex.com

Post by Stefan Kottwitz »

Hello speppin,

welcome to the forum!

Great, that you posted the solution you got. In addition, I'd like to mention, that even with pdfLaTeX, which has advantages, psfrag can work together with \usepackage{auto-pst-pdf}.

Stefan
LaTeX.org admin
Post Reply