Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse Search

Direc­tory tex-archive/graphics/figfrag

FIGFRAG - convert FIG to EPS replacing all text by its LaTeX equivalent.


Latest features:
  - color support
  - fontstyle support


1. Why figfrag?  

The idea of figfrag started when I wanted to use LaTeX commands in
xfig figures. So far, nothing new: use the special text options in
xfig and use the pstex backend. However, I also wanted to create
standalone EPS figures which consequently should be converted to PDF
in order to use the figures with pdflatex. So I wrote a first script
based on the pstex backend, but soon switched to use the psfrag package 
instead and, voila, the first version of figfrag was born. 


2. Requirements

To use figfrag you need the following:
- the fig2dev program (http://www.xfig.org) 
- a working (La)TeX environment
- the psfrag, epsfig, graphics, color, calc and ifthen packages
- perl (I use version 5.6.1, and I haven't tried other versions)
- the epscrop script (uses bash and awk)


3. Usage

See the help text (figfrag -h). For best results enable the use of 
Type1 for Computer Modern fonts. This results in scalable (non bitmapped
version) text and math.


4. Bugs

Plenty of course ;-) I just haven't found them yet. Be warned: I have
only been able to test figfrag on my own machine (Linux - Debian 3.0).


5. Acknowledgements

Thanks to Hylke van Dijk and Jacco Taal for their valuable comments, 
support and patches.



Have fun with it!
Maarten Ditzel (ditzel@cobalt.et.tudelft.nl)

Files

Name Size Date Notes
README 1439 2003-08-29 09:51
epscrop 2590 2003-08-29 09:52
figfrag 7321 2003-08-29 09:53
test.eps 81357 2003-08-29 09:50
test.fig 911 2003-08-29 09:48

Down­load the con­tents of this pack­age in one zip archive (38.8k).

figfrag – Con­vert xfig fig­ures with em­bed­ded la­tex com­mands to EPS

Figfrag gen­er­ates EPS from xfig fig­ures re­plac­ing all text with its LaTeX equiv­a­lent. Con­se­quently, the EPS may be con­verted to PDF for use with pdfla­tex. Figfrag in­cludes sup­port for colour and font style.

Pack­age De­tailsfigfrag
Li­censeGNU Gen­eral Public Li­cense
Main­tainerMaarten Ditzel
Topics text within graph­ics (drawn or over­laid)
pre­pare graph­ics for use with *TeX
Guest Book Sitemap Contact