Bienvenue à l'Onera, le centre français de recherche aérospatiale

Ligne orange
Bouton Aronautique Bouton Espace Bouton Dfense et scurit Bouton Transfert de technologie Bouton Souffleries

ENGLISH

RECHERCHE DIRECTE

L’Onera de A à Z

ONERA-ISA

ONERA-ISA

Pages personnelles professionnelles

Pdfrack Home page

I am a happy user of the psfrag LaTeX package. Nervertheless, I sometimes need to use pdflatex to produce pdf documents (less and less now than the dvips drivers handles hyperlinks).

But, since psfrag uses some special Postscript features, it is incompatible with pdflatex which directly generates the pdf document from the LaTeX source. And, there is no pdffrag package :-(

Then, I have developped for my personnal use a hack that uses latex + dvips + some ps to pdf filter, to generates one pdf figure for each ps figure, with the psfrag replacements.

More details can be found in the README, or the documentation

You download it there.

You can also find it on CTAN, in the /support directory.

Other solutions

  • dvips + ps2pdf + hyperref: Did you really need pdflatex ? Sometimes, you only want to what the "cool" hyperlinks in your pdf. In this case, just use \usepackage{hyperref} in your code and use dvips and ps2pdf.
  • pst-pdf, pd4pdf
    See also these two packages (ps4pdf is deprecated and replaced by pst-pdf). which also seem to try to generate Pdf figure from Postscript code, in a more transparent way that mine (they call some script directly from latex compilation: my solution left external use). You can get it from CTAN.
  • DrawAt
    Matthijs Douze (another member from ENSEEIHT) has developped DrawAt, a solution for MacOS X only.
  • unpsfrag
    Félix Valado Pomarinho has developped a perl script: unpsfrag
  • fragmaster
    Tilman Vogel developped fragmaster, another perl-oriented solution.
  • pstoedit and [X]fig
    With [X]fig, you can already make a figure and, setting the special flag to a text zone, you already can put on your figures some LaTeX code, and export in the combined mode either in postcript or pdf.
    In the combined Postscript/LaTeX, if your file is named figure.fig, it creates a figure.pstex file which is the postcript version of your fig figure without the special-tagged texts, and a figure.pstex_t file which juste include the figure.pstex (with the \includegraphics command) and adds the LaTeX text at the right place.
    In the combined Pdf/LaTeX, this is the same except that figure.pstex is named figure.pdf and figure.pstex_t is named figure.pdf_t and includes figure.pdf.

    If you like to avoid the graphic interface, this ca be done in command line with fig2dev.
    	  fig2dev -L  pstex_t figure.fig figure.pstex_t
    fig2dev -L pstex figure.fig figure.pstex
    If you do not have a fig figure, you can transform a postcript file into a fig one with pstoedit (try pstoedit -dis -f fig example.eps > example.fig ).
  • figfrag
    With figfrag, you can use the psfrag feature in your fig picture and create a standalone eps figure with the psfrag replacements.
Stats with StatCounter

Précédente | Haut | Fin


Marc Boyer

Thèmes de recherche

Publications

Tools

pdfrack

Marc Boyer,

Ingénieur de recherche
 


 


Mis à jour le 11 mars 2009 - © ONERA 2008 - Crédits et conditions d'utilisation