summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/disser/templates/latex.fig.mk
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/disser/templates/latex.fig.mk')
-rw-r--r--Master/texmf-dist/doc/latex/disser/templates/latex.fig.mk31
1 files changed, 31 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/disser/templates/latex.fig.mk b/Master/texmf-dist/doc/latex/disser/templates/latex.fig.mk
new file mode 100644
index 00000000000..a3e37c98505
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/disser/templates/latex.fig.mk
@@ -0,0 +1,31 @@
+#
+# Makefile for figures
+# Author: Stanislav Kruchinin <stas@crypt.org.ru>
+#
+
+all:
+ @echo "run: make fixbb to fix BoundingBox"
+ @echo "run: make pdf to convert all figures to PDF"
+ @echo "run: make clean to clean PDF files"
+
+fixbb: *.eps
+ @echo -e "\nFixing BoundingBoxes...\n"
+ @for f in *.eps ; \
+ do \
+ echo -n "$$f..." ;\
+ epstool --quiet --copy --bbox $$f $$f~ ;\
+ mv $$f~ $$f ;\
+ echo "OK" ;\
+ done
+
+pdf: *.eps
+ @echo -e "\nConverting figures to PDF...\n"
+ @for f in *.eps ; \
+ do \
+ echo -n "$$f..." ;\
+ epstopdf $$f ;\
+ echo "OK" ;\
+ done
+
+clean:
+ rm -f *.pdf