2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-25 06:18:05 +02:00
LaTeX-examples/tikz/triangle-pappus/Makefile

34 lines
823 B
Makefile
Raw Permalink Normal View History

2015-01-04 21:34:25 +01:00
SOURCE = triangle-pappus
DELAY = 80
DENSITY = 300
2016-06-27 09:44:54 +02:00
WIDTH = 512
2015-01-04 21:34:25 +01:00
make:
pdflatex $(SOURCE).tex -output-format=pdf
make clean
clean:
2016-06-27 09:44:54 +02:00
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
2015-01-04 21:34:25 +01:00
gif:
pdfcrop $(SOURCE).pdf
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
make clean
png:
make
make svg
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
transparentGif:
convert $(SOURCE).pdf -transparent white result.gif
make clean
svg:
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
pdf2svg $(SOURCE).pdf $(SOURCE).svg
# Necessary, as pdf2svg does not always create valid svgs:
2016-06-27 09:44:54 +02:00
inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg
rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg
rm $(SOURCE)1.svg