I would like to be able to import an EPS file in to LaTeX while using some 3rd party image viewer/editor to quickly find crop coordinates. What are some good free tools for this? GIMP (the GNU Image Manipulation Program) is a free program that works on all major platforms, but it is not a vector graphics editor; will it work? It appears that you can choose any resolution with GIMP when you import. Additionally, since an EPS file is a vector graphics file, are there native units that LaTeX will recognize?
Method A: Dealing directly with PostScript
Method B: Cropping via PDF
You can use
Once chosen, you may ask to view the .eps file:
Then click on
The .texlua script can also be launched from the command line, if you want to do batch conversion.
Firstly, the GIMP does appear to be an adequate and convenient tool for the job. EPS files seem to include a default resolution, which is what the GIMP displays when you open an EPS file, so don't change it:
Next, you can easily use your cursor to find one of two defining coordinates. In this example we do the top-left coordinate. You can see the approximate region of where the cursor is by the small box that is north-west of the figure. The coordinates are shown in the lower-left hand corner of the canvas window. Be sure to choose coordinates that TeX can work with (I don't think the default, px -- pixels, is supported in TeX; What are the possible dimensions / sizes / units LaTeX understands?). In our example we use millimeters (mm):
Now we can import it into a document. Again we will just test this coordinate for now:
This results in the following output, showing that we have correctly made a close crop around the left and top edges of the figure.