瀏覽代碼

adjusted Makefiles; added png

Martin Thoma 12 年之前
父節點
當前提交
76192d0ecd
共有 37 個文件被更改,包括 130 次插入28 次删除
  1. 5 2
      tikz/dot-product-1/Makefile
  2. 二進制
      tikz/dot-product-1/dot-product-1.png
  3. 11 1
      tikz/dot-product-2/Makefile
  4. 二進制
      tikz/dot-product-2/dot-product-2.png
  5. 11 1
      tikz/dot-product-3/Makefile
  6. 二進制
      tikz/dot-product-3/dot-product-3.1.png
  7. 11 1
      tikz/dot-product-4/Makefile
  8. 二進制
      tikz/dot-product-4/dot-product-4.png
  9. 11 1
      tikz/dot-product-5/Makefile
  10. 二進制
      tikz/dot-product-5/dot-product-5.png
  11. 11 1
      tikz/dot-product-6/Makefile
  12. 二進制
      tikz/dot-product-6/dot-product-6.png
  13. 6 2
      tikz/doubly-linked-list/Makefile
  14. 二進制
      tikz/doubly-linked-list/doubly-linked-list.png
  15. 6 2
      tikz/earth-skizze-2/Makefile
  16. 二進制
      tikz/earth-skizze-2/earth-skizze-2.png
  17. 6 2
      tikz/earth-skizze/Makefile
  18. 二進制
      tikz/earth-skizze/earth-skizze.png
  19. 5 1
      tikz/ellipsoid/Makefile
  20. 二進制
      tikz/ellipsoid/ellipsoid.png
  21. 1 1
      tikz/equilateral-triangle-circles/Makefile
  22. 二進制
      tikz/equilateral-triangle-circles/equilateral-triangle-circles.png
  23. 11 1
      tikz/equilateral-triangle/Makefile
  24. 二進制
      tikz/equilateral-triangle/equilateral-triangle.png
  25. 6 2
      tikz/evaluation-tree/Makefile
  26. 二進制
      tikz/evaluation-tree/evaluation-tree.png
  27. 6 2
      tikz/faktorraum/Makefile
  28. 二進制
      tikz/faktorraum/faktorraum.png
  29. 二進制
      tikz/graph-banner/graph-banner.png
  30. 6 2
      tikz/graph-circles/Makefile
  31. 二進制
      tikz/graph-circles/graph-circles.png
  32. 6 2
      tikz/half-space/Makefile
  33. 二進制
      tikz/half-space/half-space.png
  34. 6 2
      tikz/heap/Makefile
  35. 二進制
      tikz/heap/heap.png
  36. 5 2
      tikz/histogram/Makefile
  37. 二進制
      tikz/histogram/histogram.png

+ 5 - 2
tikz/dot-product-1/Makefile

@@ -1,14 +1,14 @@
 SOURCE = dot-product-1
 DELAY = 80
 DENSITY = 300
-WIDTH = 500
+WIDTH = 512
 
 make:
 	pdflatex $(SOURCE).tex -output-format=pdf
 	make clean
 
 clean:
-	rm -rf  $(TARGET) *.class *.html *.log *.aux
+	rm -rf  $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
 
 gif:
 	pdfcrop $(SOURCE).pdf
@@ -30,3 +30,6 @@ svg:
 	pdf2svg $(SOURCE).pdf $(SOURCE).svg
 	# Necessary, as pdf2svg does not always create valid svgs:
 	inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
+	rsvg-convert -a -w $(WIDTH) -f svg $(SOURCE).svg -o $(SOURCE)2.svg
+	inkscape $(SOURCE)2.svg --export-plain-svg=$(SOURCE).svg
+	rm $(SOURCE)2.svg

二進制
tikz/dot-product-1/dot-product-1.png


+ 11 - 1
tikz/dot-product-2/Makefile

@@ -1,25 +1,35 @@
 SOURCE = dot-product-2
 DELAY = 80
 DENSITY = 300
+WIDTH = 512
 
 make:
 	pdflatex $(SOURCE).tex -output-format=pdf
 	make clean
 
 clean:
-	rm -rf  $(TARGET) *.class *.html *.log *.aux
+	rm -rf  $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
 
 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:
+	make
 	#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
 	pdf2svg $(SOURCE).pdf $(SOURCE).svg
 	# Necessary, as pdf2svg does not always create valid svgs:
 	inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
+	rsvg-convert -a -w $(WIDTH) -f svg $(SOURCE).svg -o $(SOURCE)2.svg
+	inkscape $(SOURCE)2.svg --export-plain-svg=$(SOURCE).svg
+	rm $(SOURCE)2.svg

二進制
tikz/dot-product-2/dot-product-2.png


+ 11 - 1
tikz/dot-product-3/Makefile

@@ -1,25 +1,35 @@
 SOURCE = dot-product-3.1
 DELAY = 80
 DENSITY = 300
+WIDTH = 512
 
 make:
 	pdflatex $(SOURCE).tex -output-format=pdf
 	make clean
 
 clean:
-	rm -rf  $(TARGET) *.class *.html *.log *.aux
+	rm -rf  $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
 
 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:
+	make
 	#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
 	pdf2svg $(SOURCE).pdf $(SOURCE).svg
 	# Necessary, as pdf2svg does not always create valid svgs:
 	inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
+	rsvg-convert -a -w $(WIDTH) -f svg $(SOURCE).svg -o $(SOURCE)2.svg
+	inkscape $(SOURCE)2.svg --export-plain-svg=$(SOURCE).svg
+	rm $(SOURCE)2.svg

二進制
tikz/dot-product-3/dot-product-3.1.png


+ 11 - 1
tikz/dot-product-4/Makefile

@@ -1,25 +1,35 @@
 SOURCE = dot-product-4
 DELAY = 80
 DENSITY = 300
+WIDTH = 512
 
 make:
 	pdflatex $(SOURCE).tex -output-format=pdf
 	make clean
 
 clean:
-	rm -rf  $(TARGET) *.class *.html *.log *.aux
+	rm -rf  $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
 
 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:
+	make
 	#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
 	pdf2svg $(SOURCE).pdf $(SOURCE).svg
 	# Necessary, as pdf2svg does not always create valid svgs:
 	inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
+	rsvg-convert -a -w $(WIDTH) -f svg $(SOURCE).svg -o $(SOURCE)2.svg
+	inkscape $(SOURCE)2.svg --export-plain-svg=$(SOURCE).svg
+	rm $(SOURCE)2.svg

二進制
tikz/dot-product-4/dot-product-4.png


+ 11 - 1
tikz/dot-product-5/Makefile

@@ -1,25 +1,35 @@
 SOURCE = dot-product-5
 DELAY = 80
 DENSITY = 300
+WIDTH = 512
 
 make:
 	pdflatex $(SOURCE).tex -output-format=pdf
 	make clean
 
 clean:
-	rm -rf  $(TARGET) *.class *.html *.log *.aux
+	rm -rf  $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
 
 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:
+	make
 	#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
 	pdf2svg $(SOURCE).pdf $(SOURCE).svg
 	# Necessary, as pdf2svg does not always create valid svgs:
 	inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
+	rsvg-convert -a -w $(WIDTH) -f svg $(SOURCE).svg -o $(SOURCE)2.svg
+	inkscape $(SOURCE)2.svg --export-plain-svg=$(SOURCE).svg
+	rm $(SOURCE)2.svg

二進制
tikz/dot-product-5/dot-product-5.png


+ 11 - 1
tikz/dot-product-6/Makefile

@@ -1,25 +1,35 @@
 SOURCE = dot-product-6
 DELAY = 80
 DENSITY = 300
+WIDTH = 512
 
 make:
 	pdflatex $(SOURCE).tex -output-format=pdf
 	make clean
 
 clean:
-	rm -rf  $(TARGET) *.class *.html *.log *.aux
+	rm -rf  $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
 
 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:
+	make
 	#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
 	pdf2svg $(SOURCE).pdf $(SOURCE).svg
 	# Necessary, as pdf2svg does not always create valid svgs:
 	inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
+	rsvg-convert -a -w $(WIDTH) -f svg $(SOURCE).svg -o $(SOURCE)2.svg
+	inkscape $(SOURCE)2.svg --export-plain-svg=$(SOURCE).svg
+	rm $(SOURCE)2.svg

二進制
tikz/dot-product-6/dot-product-6.png


+ 6 - 2
tikz/doubly-linked-list/Makefile

@@ -1,14 +1,14 @@
 SOURCE = doubly-linked-list
 DELAY = 80
 DENSITY = 300
-WIDTH = 500
+WIDTH = 512
 
 make:
 	pdflatex $(SOURCE).tex -output-format=pdf
 	make clean
 
 clean:
-	rm -rf  $(TARGET) *.class *.html *.log *.aux
+	rm -rf  $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
 
 gif:
 	pdfcrop $(SOURCE).pdf
@@ -25,7 +25,11 @@ transparentGif:
 	make clean
 
 svg:
+	make
 	#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
 	pdf2svg $(SOURCE).pdf $(SOURCE).svg
 	# Necessary, as pdf2svg does not always create valid svgs:
 	inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
+	rsvg-convert -a -w $(WIDTH) -f svg $(SOURCE).svg -o $(SOURCE)2.svg
+	inkscape $(SOURCE)2.svg --export-plain-svg=$(SOURCE).svg
+	rm $(SOURCE)2.svg

二進制
tikz/doubly-linked-list/doubly-linked-list.png


+ 6 - 2
tikz/earth-skizze-2/Makefile

@@ -1,14 +1,14 @@
 SOURCE = earth-skizze-2
 DELAY = 80
 DENSITY = 300
-WIDTH = 500
+WIDTH = 512
 
 make:
 	pdflatex $(SOURCE).tex -output-format=pdf
 	make clean
 
 clean:
-	rm -rf  $(TARGET) *.class *.html *.log *.aux
+	rm -rf  $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
 
 gif:
 	pdfcrop $(SOURCE).pdf
@@ -25,7 +25,11 @@ transparentGif:
 	make clean
 
 svg:
+	make
 	#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
 	pdf2svg $(SOURCE).pdf $(SOURCE).svg
 	# Necessary, as pdf2svg does not always create valid svgs:
 	inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
+	rsvg-convert -a -w $(WIDTH) -f svg $(SOURCE).svg -o $(SOURCE)2.svg
+	inkscape $(SOURCE)2.svg --export-plain-svg=$(SOURCE).svg
+	rm $(SOURCE)2.svg

二進制
tikz/earth-skizze-2/earth-skizze-2.png


+ 6 - 2
tikz/earth-skizze/Makefile

@@ -1,14 +1,14 @@
 SOURCE = earth-skizze
 DELAY = 80
 DENSITY = 300
-WIDTH = 500
+WIDTH = 512
 
 make:
 	pdflatex $(SOURCE).tex -output-format=pdf
 	make clean
 
 clean:
-	rm -rf  $(TARGET) *.class *.html *.log *.aux
+	rm -rf  $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
 
 gif:
 	pdfcrop $(SOURCE).pdf
@@ -25,7 +25,11 @@ transparentGif:
 	make clean
 
 svg:
+	make
 	#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
 	pdf2svg $(SOURCE).pdf $(SOURCE).svg
 	# Necessary, as pdf2svg does not always create valid svgs:
 	inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
+	rsvg-convert -a -w $(WIDTH) -f svg $(SOURCE).svg -o $(SOURCE)2.svg
+	inkscape $(SOURCE)2.svg --export-plain-svg=$(SOURCE).svg
+	rm $(SOURCE)2.svg

二進制
tikz/earth-skizze/earth-skizze.png


+ 5 - 1
tikz/ellipsoid/Makefile

@@ -1,7 +1,7 @@
 SOURCE = ellipsoid
 DELAY = 80
 DENSITY = 300
-WIDTH = 500
+WIDTH = 512
 
 make:
 	pdflatex $(SOURCE).tex -output-format=pdf
@@ -25,7 +25,11 @@ transparentGif:
 	make clean
 
 svg:
+	make
 	#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
 	pdf2svg $(SOURCE).pdf $(SOURCE).svg
 	# Necessary, as pdf2svg does not always create valid svgs:
 	inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
+	rsvg-convert -a -w $(WIDTH) -f svg $(SOURCE).svg -o $(SOURCE)2.svg
+	inkscape $(SOURCE)2.svg --export-plain-svg=$(SOURCE).svg
+	rm $(SOURCE)2.svg

二進制
tikz/ellipsoid/ellipsoid.png


+ 1 - 1
tikz/equilateral-triangle-circles/Makefile

@@ -1,7 +1,7 @@
 SOURCE = equilateral-triangle-circles
 DELAY = 80
 DENSITY = 300
-WIDTH = 500
+WIDTH = 512
 
 make:
 	pdflatex $(SOURCE).tex -output-format=pdf

二進制
tikz/equilateral-triangle-circles/equilateral-triangle-circles.png


+ 11 - 1
tikz/equilateral-triangle/Makefile

@@ -1,25 +1,35 @@
 SOURCE = equilateral-triangle
 DELAY = 80
 DENSITY = 300
+WIDTH = 512
 
 make:
 	pdflatex $(SOURCE).tex -output-format=pdf
 	make clean
 
 clean:
-	rm -rf  $(TARGET) *.class *.html *.log *.aux
+	rm -rf  $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
 
 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:
+	make
 	#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
 	pdf2svg $(SOURCE).pdf $(SOURCE).svg
 	# Necessary, as pdf2svg does not always create valid svgs:
 	inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
+	rsvg-convert -a -w $(WIDTH) -f svg $(SOURCE).svg -o $(SOURCE)2.svg
+	inkscape $(SOURCE)2.svg --export-plain-svg=$(SOURCE).svg
+	rm $(SOURCE)2.svg

二進制
tikz/equilateral-triangle/equilateral-triangle.png


+ 6 - 2
tikz/evaluation-tree/Makefile

@@ -1,14 +1,14 @@
 SOURCE = evaluation-tree
 DELAY = 80
 DENSITY = 300
-WIDTH = 500
+WIDTH = 512
 
 make:
 	pdflatex $(SOURCE).tex -output-format=pdf
 	make clean
 
 clean:
-	rm -rf  $(TARGET) *.class *.html *.log *.aux
+	rm -rf  $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
 
 gif:
 	pdfcrop $(SOURCE).pdf
@@ -25,7 +25,11 @@ transparentGif:
 	make clean
 
 svg:
+	make
 	#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
 	pdf2svg $(SOURCE).pdf $(SOURCE).svg
 	# Necessary, as pdf2svg does not always create valid svgs:
 	inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
+	rsvg-convert -a -w $(WIDTH) -f svg $(SOURCE).svg -o $(SOURCE)2.svg
+	inkscape $(SOURCE)2.svg --export-plain-svg=$(SOURCE).svg
+	rm $(SOURCE)2.svg

二進制
tikz/evaluation-tree/evaluation-tree.png


+ 6 - 2
tikz/faktorraum/Makefile

@@ -1,14 +1,14 @@
 SOURCE = faktorraum
 DELAY = 80
 DENSITY = 300
-WIDTH = 500
+WIDTH = 512
 
 make:
 	pdflatex $(SOURCE).tex -output-format=pdf
 	make clean
 
 clean:
-	rm -rf  $(TARGET) *.class *.html *.log *.aux
+	rm -rf  $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
 
 gif:
 	pdfcrop $(SOURCE).pdf
@@ -25,7 +25,11 @@ transparentGif:
 	make clean
 
 svg:
+	make
 	#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
 	pdf2svg $(SOURCE).pdf $(SOURCE).svg
 	# Necessary, as pdf2svg does not always create valid svgs:
 	inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
+	rsvg-convert -a -w $(WIDTH) -f svg $(SOURCE).svg -o $(SOURCE)2.svg
+	inkscape $(SOURCE)2.svg --export-plain-svg=$(SOURCE).svg
+	rm $(SOURCE)2.svg

二進制
tikz/faktorraum/faktorraum.png


二進制
tikz/graph-banner/graph-banner.png


+ 6 - 2
tikz/graph-circles/Makefile

@@ -1,14 +1,14 @@
 SOURCE = graph-circles
 DELAY = 80
 DENSITY = 300
-WIDTH = 500
+WIDTH = 512
 
 make:
 	pdflatex $(SOURCE).tex -output-format=pdf
 	make clean
 
 clean:
-	rm -rf  $(TARGET) *.class *.html *.log *.aux
+	rm -rf  $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
 
 gif:
 	pdfcrop $(SOURCE).pdf
@@ -25,7 +25,11 @@ transparentGif:
 	make clean
 
 svg:
+	make
 	#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
 	pdf2svg $(SOURCE).pdf $(SOURCE).svg
 	# Necessary, as pdf2svg does not always create valid svgs:
 	inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
+	rsvg-convert -a -w $(WIDTH) -f svg $(SOURCE).svg -o $(SOURCE)2.svg
+	inkscape $(SOURCE)2.svg --export-plain-svg=$(SOURCE).svg
+	rm $(SOURCE)2.svg

二進制
tikz/graph-circles/graph-circles.png


+ 6 - 2
tikz/half-space/Makefile

@@ -1,14 +1,14 @@
 SOURCE = half-space
 DELAY = 80
 DENSITY = 300
-WIDTH = 500
+WIDTH = 512
 
 make:
 	pdflatex $(SOURCE).tex -output-format=pdf
 	make clean
 
 clean:
-	rm -rf  $(TARGET) *.class *.html *.log *.aux
+	rm -rf  $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
 
 gif:
 	pdfcrop $(SOURCE).pdf
@@ -25,7 +25,11 @@ transparentGif:
 	make clean
 
 svg:
+	make
 	#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
 	pdf2svg $(SOURCE).pdf $(SOURCE).svg
 	# Necessary, as pdf2svg does not always create valid svgs:
 	inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
+	rsvg-convert -a -w $(WIDTH) -f svg $(SOURCE).svg -o $(SOURCE)2.svg
+	inkscape $(SOURCE)2.svg --export-plain-svg=$(SOURCE).svg
+	rm $(SOURCE)2.svg

二進制
tikz/half-space/half-space.png


+ 6 - 2
tikz/heap/Makefile

@@ -1,14 +1,14 @@
 SOURCE = heap
 DELAY = 80
 DENSITY = 300
-WIDTH = 500
+WIDTH = 512
 
 make:
 	pdflatex $(SOURCE).tex -output-format=pdf
 	make clean
 
 clean:
-	rm -rf  $(TARGET) *.class *.html *.log *.aux
+	rm -rf  $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
 
 gif:
 	pdfcrop $(SOURCE).pdf
@@ -25,7 +25,11 @@ transparentGif:
 	make clean
 
 svg:
+	make
 	#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
 	pdf2svg $(SOURCE).pdf $(SOURCE).svg
 	# Necessary, as pdf2svg does not always create valid svgs:
 	inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
+	rsvg-convert -a -w $(WIDTH) -f svg $(SOURCE).svg -o $(SOURCE)2.svg
+	inkscape $(SOURCE)2.svg --export-plain-svg=$(SOURCE).svg
+	rm $(SOURCE)2.svg

二進制
tikz/heap/heap.png


+ 5 - 2
tikz/histogram/Makefile

@@ -1,14 +1,14 @@
 SOURCE = histogram
 DELAY = 80
 DENSITY = 300
-WIDTH = 500
+WIDTH = 512
 
 make:
 	pdflatex $(SOURCE).tex -output-format=pdf
 	make clean
 
 clean:
-	rm -rf  $(TARGET) *.class *.html *.log *.aux
+	rm -rf  $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
 
 gif:
 	pdfcrop $(SOURCE).pdf
@@ -30,3 +30,6 @@ svg:
 	pdf2svg $(SOURCE).pdf $(SOURCE).svg
 	# Necessary, as pdf2svg does not always create valid svgs:
 	inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
+	rsvg-convert -a -w $(WIDTH) -f svg $(SOURCE).svg -o $(SOURCE)2.svg
+	inkscape $(SOURCE)2.svg --export-plain-svg=$(SOURCE).svg
+	rm $(SOURCE)2.svg

二進制
tikz/histogram/histogram.png