2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-19 11:38:05 +02:00

Improve quality

This commit is contained in:
Martin Thoma 2016-06-18 10:09:37 +02:00
parent 3ec36a9361
commit e56992d7ca
2 changed files with 10 additions and 2 deletions

View file

@ -1,19 +1,25 @@
SOURCE = isosceles-triangle SOURCE = isosceles-triangle
DELAY = 80 DELAY = 80
DENSITY = 300 DENSITY = 300
WIDTH = 512
make: make:
pdflatex $(SOURCE).tex -output-format=pdf pdflatex $(SOURCE).tex -output-format=pdf
make clean make clean
clean: clean:
rm -rf $(TARGET) *.class *.html *.log *.aux rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
gif: gif:
pdfcrop $(SOURCE).pdf pdfcrop $(SOURCE).pdf
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
make clean make clean
png:
make
make svg
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
transparentGif: transparentGif:
convert $(SOURCE).pdf -transparent white result.gif convert $(SOURCE).pdf -transparent white result.gif
make clean make clean
@ -22,4 +28,6 @@ svg:
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg #inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
pdf2svg $(SOURCE).pdf $(SOURCE).svg pdf2svg $(SOURCE).pdf $(SOURCE).svg
# Necessary, as pdf2svg does not always create valid svgs: # Necessary, as pdf2svg does not always create valid svgs:
inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB