Преглед изворни кода

Add README and rendered example image to tikz/intersecting-lines examples

Martin Thoma пре 9 година
родитељ
комит
3d36e8daf4

+ 4 - 2
tikz/intersecting-lines-1/Makefile

@@ -1,7 +1,7 @@
 SOURCE = intersecting-lines-1
 DELAY = 80
 DENSITY = 300
-WIDTH = 500
+WIDTH = 512
 
 make:
 	pdflatex $(SOURCE).tex -output-format=pdf
@@ -28,4 +28,6 @@ svg:
 	#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
+	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

+ 3 - 0
tikz/intersecting-lines-1/README.md

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

BIN
tikz/intersecting-lines-1/intersecting-lines-1.png


+ 4 - 2
tikz/intersecting-lines-2/Makefile

@@ -1,7 +1,7 @@
 SOURCE = intersecting-lines-2
 DELAY = 80
 DENSITY = 300
-WIDTH = 500
+WIDTH = 512
 
 make:
 	pdflatex $(SOURCE).tex -output-format=pdf
@@ -28,4 +28,6 @@ svg:
 	#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
+	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

+ 3 - 0
tikz/intersecting-lines-2/README.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](intersecting-lines-2.png)

BIN
tikz/intersecting-lines-2/intersecting-lines-2.png


+ 4 - 2
tikz/intersecting-lines-3/Makefile

@@ -1,7 +1,7 @@
 SOURCE = intersecting-lines-3
 DELAY = 80
 DENSITY = 300
-WIDTH = 500
+WIDTH = 512
 
 make:
 	pdflatex $(SOURCE).tex -output-format=pdf
@@ -28,4 +28,6 @@ svg:
 	#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
+	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

+ 3 - 0
tikz/intersecting-lines-3/README.md

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

BIN
tikz/intersecting-lines-3/intersecting-lines-3.png


+ 4 - 2
tikz/intersecting-lines-4/Makefile

@@ -1,7 +1,7 @@
 SOURCE = intersecting-lines-4
 DELAY = 80
 DENSITY = 300
-WIDTH = 500
+WIDTH = 512
 
 make:
 	pdflatex $(SOURCE).tex -output-format=pdf
@@ -28,4 +28,6 @@ svg:
 	#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
+	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

+ 3 - 0
tikz/intersecting-lines-4/README.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](intersecting-lines-4.png)

BIN
tikz/intersecting-lines-4/intersecting-lines-4.png


+ 4 - 2
tikz/intersecting-lines-5/Makefile

@@ -1,7 +1,7 @@
 SOURCE = intersecting-lines-5
 DELAY = 80
 DENSITY = 300
-WIDTH = 500
+WIDTH = 512
 
 make:
 	pdflatex $(SOURCE).tex -output-format=pdf
@@ -28,4 +28,6 @@ svg:
 	#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
+	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

+ 3 - 0
tikz/intersecting-lines-5/README.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](intersecting-lines-5.png)

BIN
tikz/intersecting-lines-5/intersecting-lines-5.png