Giter VIP home page Giter VIP logo

epsfrag2pdf's Introduction

epsfrag2pdf

Convert EPS files to PDF files while performing psfrag replacements.

When working with Latex it is usually easier to use pdflatex to generate PDF files than going the long route of latex->dvips->ps2pdf.

However, one very useful package, the psfrag package, uses postscript commands and thus requires compiling the document with the long route. One way to circumvent this limitation is to compile a latex document with just the desired figure to create a PDF file of the figure with the replacements already done by psfrag. After that one can use pdflatex and use the PDF version of the figure instead of the original EPS file.

This project was created simple to make this conversion easier.

Usage Instructions

For each eps file, create a file with the same name and the "psfrags" extension. In this psfrag file, put the psfrag code you would normally put in your latex document. Furthermore, if the first line in the psfrag file starts with a bracket it will be considered as options to be passes to the includegraphics command during conversion. See the test.psfrags file as an example.

With the eps file and the corresponding psfrags file in the same folder, run the epsfrag2pdf.py script and pass the name of the eps file without extension. As an exemple, in the folder where you have all of the files here you can convert the test.eps file eith the comand

./epsfrag2pdf.py test

You can also run the eps2pdf_converter_gui.py to use a simple gui, but it is usually easier to convert running the epsfrag2pdf.py script in the command line.

epsfrag2pdf's People

Contributors

darcamo avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.