The time-honoured psfrag package can help, if your image is included as an encapsulated PostScript file. Place an unique text in your graphic, using the normal text features of your tool, and you can ask psfrag to replace the text with arbitrary La TeX material. Optional arguments permit adjustment of position, scale and rotation; full details may be found in pfgguide in the distribution. Since psfrag works in terms of encapsulated PostScript files, it needs extra work for use with pdfLaTeX. Two techniques are available, using pst-pdf package in a mode designed to do this work; and using pdfrack.
|Published (Last):||19 October 2005|
|PDF File Size:||7.74 Mb|
|ePub File Size:||17.23 Mb|
|Price:||Free* [*Free Regsitration Required]|
It only takes a minute to sign up. I can latex it without error, but when I try to pdfltex To the right of the figure is the figures' designator letter a. When I pdflatex in order to create a PDF file, then getting the aforementioned error message, I just , through it.
The resulting PDF is a blank page, save for the figures' letter designators, a , b , and c in a column down the center of the page with the "Fig. The figure1a is in the same directory as the document files as figure1a. I've imported figures in my own documents, but not in this fashion. I hate to re-tool this one if I can create something better and learn a new technique in the process. The psfrag package is used to remove labels and other text from. This can be used to ensure that fonts in figures are consistent with those in the main body of the document, regardless of whether your graphics software can access them.
It is particularly useful for inserting formulae and symbols, since a label in the eps file can be replaced by more or less arbitrary LaTeX code. In this example, the word 'typography' is replaced by an italic version in the current font. There is a package called pstool which works around this problem. Provided that shell escape is enabled, this version of the example will work with pdflatex.
Update: In my work environment we are using WinaXe xserver application to view. This generates a bonafide. Sign up to join this community. The best answers are voted up and rise to the top. Home Questions Tags Users Unanswered. What does psfrag do, and can it be made to work with pdflatex? Ask Question. Asked 5 years, 7 months ago. Active 2 years ago. Viewed 10k times. I'm picking up a document, thus far, created by someone else who is unavailable for questioning.
I've been able to come up with scant little help in the Leslie Lamport book. Can you tell me what the psfrag business is all about? Ian Thompson TommyK TommyK 1 1 gold badge 4 4 silver badges 11 11 bronze badges. One issue here is that pdflatex can't handle eps files straightforwardly. It is looking for any of the listed file types. Convert the eps to a pdf first and try again. See for example tex. That's best done using some automation.
I'm kind of new to LaTeX also, should I post commentary here or on the linked page? TommyK as Joseph pointed out, psfrag is intended to be used along the latex route.
I'm still confused. Active Oldest Votes. Ian Thompson Ian Thompson For pdflatex one can also load psfrag and auto-pst-pdf and use psfrag 's original syntax.
Linked Related Hot Network Questions. Question feed.
Getting psfrag to work in pdflatex
PSfrag will remove the tag and replace it by the specified LaTeX construction. PSfrag is not pdf-compatible, but there exist external solutions, like pstool, pst-pdf or pdfrack. From Wikipedia, the free encyclopedia. This article needs additional citations for verification.
Much of the time you'll be able to use graphics from matlab in LaTeX documents just as you use graphics from elsewhere - use the graphicx package. Sometimes however you might want to have sophisticated LaTeX in your matlab graphics, or you may not want the text in the graphics to scale when you scale the figure. Several solutions have emerged to deal with these situations. The use of pdflatex complicates matters, and some solutions require several non-standard packages to be installed. This page describes the possibilities.
Subscribe to RSS