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 238 times
pfgguide.pdf
pdf given in the demo
(67.8 KiB) Downloaded 256 times
psfrag.zip
Ctan demo for psfrag
(122.72 KiB) Downloaded 177 times

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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: 10348
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