File: TeXfig2eps

package info (click to toggle)
xfig 1%3A3.2.8-3%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 26,600 kB
  • sloc: ansic: 75,767; sh: 3,136; makefile: 279; javascript: 22; csh: 5
file content (25 lines) | stat: -rw-r--r-- 904 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# With Xfig, it's possible to let TeX do the formatting of text in
# the figure. To switch this on, select "Special flag = ON" in the
# "Text Flags" section down in the middle when in "text-insert-mode"
# (Or specify this flag in the "Edit" window), and then, to turn the
# .fig file into an .eps file, you can use this file TeXfig2eps:
#
# make -f fig2eps myfile.eps
#

%.eps: %.fig
	fig2dev -L pstex $< $*.pstex
	fig2dev -L pstex_t -p $*.pstex $< $*.pstex_t
	(echo '\documentclass{article}\pagestyle{empty} ';\
	 echo '\usepackage{graphics,color}\begin{document} ';\
	 cat $*.pstex_t;\
	 echo ' \end{document}')>$*.tex
	latex $*.tex
	dvips -E -o $@ $*.dvi 
	#
	#Now I use a simple programme that tries to get the
	#bounding box right, as dvips ajusts it to the TeX text only.
	#(see dvips(1)). the bbtest below simply takes the "bb.ps"
	#file available elsewhere, and feeds it through gs.
	#bbtest $@