|Published (Last):||8 August 2013|
|PDF File Size:||16.94 Mb|
|ePub File Size:||12.55 Mb|
|Price:||Free* [*Free Regsitration Required]|
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. In fact, the pst-pdf support package auto-pst-pdf offers a configuration setting precisely for use with psfrag. The script aims to cut each figure out of your source, using it to produce a small LaTeX file with nothing but the figure inclusion commands.
Pdfrack is written to use the Unix Bourne shell or equivalent ; thus your environment needs to be a Unix-based system, or some equivalent such as cygwin under windows.
The psfragx package goes one step further than psfrag : it provides a means whereby you can put the psfrag commands into the preamble of your EPS file itself. Psfrag has such a command itself, but deprecates it; psfragx has cleaned up the facility, and provides a script laprint for use with Matlab to produce appropriately tagged output.
In principle, other graphics applications could provide a similar facility, but apparently none does. You create iteblock environments containing graphics and text, and may then invoke iTe to arrange the elements relative to one another. This treatment lends itself to ready placement of texts and the like on top of a graphic. The package discusses direct use of ghostscript as well as customised viewers such as gsview or gv.
Pstricks can of course do everything that overpic , lpic or pinlabel can, with all the flexibility of PostScript programming that it offers.
This capability is exemplified by the pst-layout package, which seems to be a superset of both overpic and lpic. The pstricks web site has a page with several examples of labelling which will get you started; if pstricks is an option for you , this route is worth a try. The confident user may, of course, do the whole job in a picture environment which itself includes the graphic. I would recommend overpic or the pstricks approach, but such things are plainly little more than a convenience over what is achievable with the do-it-yourself approach.
Subscribe to RSS
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.
Getting psfrag to work in pdflatex
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. The psfrag package is part of most LaTeX installations. If you have an EPS encapsulated postscript file with some displayed text, the package lets you replace the text with a latex fragment.
psfrag – Replace strings in encapsulated PostScript figures