generated from vicente-gonzalez-ruiz/TFG-plantillas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (36 loc) · 1.08 KB
/
Makefile
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
%.pdf: %.tex
pdflatex $*
while ( grep "Rerun to get cross-references" $*.log > /dev/null ); do \
echo '** Re-running LaTeX **'; \
pdflatex --interaction errorstopmode $*; \
done
bibtex $*
pdflatex $*
while ( grep "Rerun to get cross-references" $*.log > /dev/null ); do \
echo '** Re-running LaTeX **'; \
pdflatex --interaction errorstopmode $*; \
done
%.pdf: %.fig
@echo -e "\e[92mCompiling $*.fig\e[0m"
fig2dev -L pdftex $*.fig > /tmp/$*.pdf
fig2dev -L pdftex_t -f sf -p /tmp/$*.pdf $< > /tmp/$*.tex
pdflatex -halt-on-error -output-directory /tmp -jobname $*_raw << EOF \
\\documentclass[portrait,a0,final]{a0poster} \
\\usepackage{epsfig} \
\\usepackage{amsmath} \
\\usepackage{amssymb} \
\\usepackage{color} \
\\begin{document} \
\\sffamily \
\\def\\normalfont{\\sffamily} \
\\renewcommand{\\familydefault}{cmss} \
\\pagestyle{empty} \
\\thispagestyle{empty} \
\\input{/tmp/$*} \
\\end{document} \
EOF > /tmp/$*_raw.log
pdfcrop /tmp/$*_raw.pdf /tmp/$*_crop.pdf >> /tmp/$*_raw.log
mv /tmp/$*_crop.pdf $*.pdf
default: $(PDFs)
clean:
rm -f $(PDFs) *.aux *.log *.bbl *.blg *.out