소스 검색

added compiled example

Martin Thoma 12 년 전
부모
커밋
7c020f91b3
3개의 변경된 파일9개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      tikz/birthday-paradox/Makefile
  2. 3 0
      tikz/birthday-paradox/Readme.md
  3. BIN
      tikz/birthday-paradox/birthday-paradox.png

+ 6 - 2
tikz/birthday-paradox/Makefile

@@ -1,14 +1,14 @@
 SOURCE = birthday-paradox
 SOURCE = birthday-paradox
 DELAY = 80
 DELAY = 80
 DENSITY = 300
 DENSITY = 300
-WIDTH = 500
+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
@@ -25,7 +25,11 @@ transparentGif:
 	make clean
 	make clean
 
 
 svg:
 svg:
+	make
 	#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-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

+ 3 - 0
tikz/birthday-paradox/Readme.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](birthday-paradox.png)

BIN
tikz/birthday-paradox/birthday-paradox.png