diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/disser/include/latex.fig.mk')
-rw-r--r-- | Master/texmf-dist/doc/latex/disser/include/latex.fig.mk | 38 |
1 files changed, 30 insertions, 8 deletions
diff --git a/Master/texmf-dist/doc/latex/disser/include/latex.fig.mk b/Master/texmf-dist/doc/latex/disser/include/latex.fig.mk index f3e23d5ded5..55bdc57e4c1 100644 --- a/Master/texmf-dist/doc/latex/disser/include/latex.fig.mk +++ b/Master/texmf-dist/doc/latex/disser/include/latex.fig.mk @@ -6,25 +6,31 @@ E2E?=eps2eps EPSTOOL?=epstool EPSTOPDF?=epstopdf +GS?=gs E2EFLAGS?=-dSAFER ETFLAGS?=--quiet --copy --bbox +RES?=600 E2EFILES?=*.eps E2PFILES?=*.eps FBBFILES?=*.eps -FIGCLFILES?=*.pdf +PDF2PNGFILES?=*.pdf +PDF2TIFFILES?=*.pdf +FIGCLFILES?=*.pdf *.png *.tif SUFFIX?=~ # end of configuration help: @echo "Targets:" - @echo " clean clean PDF files" - @echo " epstoeps optimize EPS files" - @echo " epstopdf convert all figures to PDF" - @echo " fixbb fix BoundingBox of EPS files" - @echo " help (default) show help" + @echo " clean clean PDF files" + @echo " epstoeps optimize EPS files" + @echo " epstopdf convert all figures to PDF" + @echo " pdftopng256 convert PDF to PNG (256-color)" + @echo " pdftotiffg4 convert PDF to TIFF (b/w CCITT Group 4)" + @echo " fixbb fix BoundingBox of EPS files" + @echo " help (default) show help" clean: rm -f $(FIGCLFILES) @@ -40,6 +46,10 @@ epstoeps: $(E2EFILES) epstopdf: $(patsubst %.eps, %.pdf, $(wildcard $(E2PFILES))) +pdftopng256: $(patsubst %.pdf, %.png, $(wildcard $(PDF2PNGFILES))) + +pdftotiffg4: $(patsubst %.pdf, %.tif, $(wildcard $(PDF2TIFFILES))) + fixbb: $(FBBFILES) @for f in $^ ;\ do \ @@ -50,6 +60,18 @@ fixbb: $(FBBFILES) done %.pdf: %.eps - @echo -n "epstopdf: $<..." - @$(EPSTOPDF) "$<" + @echo -n "epstopdf: $^..." + @$(EPSTOPDF) "$^" + @echo "done" + +%.png: %.pdf + @echo -n "pdftopng256: $^..." + @$(GS) -sDEVICE=png256 -r$(RES) -q -sOutputFile=$(^:.pdf=.png) \ + -dNOPAUSE -dBATCH -dSAFER "$^" + @echo "done" + +%.tif: %.pdf + @echo -n "pdftotiffg4: $^..." + @$(GS) -sDEVICE=tiffg4 -r$(RES) -q -sOutputFile=$(^:.pdf=.tif) \ + -dNOPAUSE -dBATCH -dSAFER "$^" @echo "done" |