Pārlūkot izejas kodu

Add README.md and rendered png to all folders except for /documents

The examples were found by

```bash
$ find . -not -path '*/\.*' -type d '!' -exec test -e "{}/README.md" ';' -print
```

To do so, a cleanup-script .meta/add_readme.py was created.
Martin Thoma 9 gadi atpakaļ
vecāks
revīzija
2de9065138
100 mainītis faili ar 368 papildinājumiem un 164 dzēšanām
  1. 3 0
      .gitattributes
  2. 37 0
      .meta/add_readme.py
  3. 3 0
      documents/chess-chessboard-4x4/README.md
  4. BIN
      documents/chess-chessboard-4x4/chess-chessboard-4x4.png
  5. 3 0
      documents/chess-chessboard-shortest-game/README.md
  6. BIN
      documents/chess-chessboard-shortest-game/chess-chessboard-shortest-game.png
  7. 3 0
      documents/chess-chessboard-simple-example/README.md
  8. BIN
      documents/chess-chessboard-simple-example/chess-chessboard-simple-example.png
  9. 3 0
      documents/chess-skak-simple-example/README.md
  10. BIN
      documents/chess-skak-simple-example/chess-skak-simple-example.png
  11. 27 1
      documents/eaz/Makefile
  12. 3 0
      documents/eaz/README.md
  13. BIN
      documents/eaz/eaz.pdf
  14. BIN
      documents/eaz/eaz.png
  15. 3 0
      documents/math-euklidische-normalform/README.md
  16. BIN
      documents/math-euklidische-normalform/math-euklidische-normalform.png
  17. 3 0
      documents/math-sylvester-diagonal-matrix/README.md
  18. BIN
      documents/math-sylvester-diagonal-matrix/math-sylvester-diagonal-matrix.png
  19. 27 4
      documents/size/Makefile
  20. 3 0
      documents/size/README.md
  21. BIN
      documents/size/size.pdf
  22. BIN
      documents/size/size.png
  23. 1 0
      documents/table-multiple-pages/README.md
  24. 2 0
      documents/zwischenmiete-vertrag/README.md
  25. 27 1
      images/basic/Makefile
  26. 1 0
      images/basic/README.md
  27. 26 1
      images/float/Makefile
  28. 3 0
      images/float/README.md
  29. BIN
      images/float/float.png
  30. 26 1
      images/scaling/Makefile
  31. 3 0
      images/scaling/README.md
  32. BIN
      images/scaling/scaling.png
  33. 26 1
      images/side-by-side-subfig/Makefile
  34. BIN
      images/side-by-side-subfig/side-by-side-subfig.png
  35. 26 1
      images/side-by-side/Makefile
  36. 3 0
      images/side-by-side/README.md
  37. BIN
      images/side-by-side/side-by-side.pdf
  38. BIN
      images/side-by-side/side-by-side.png
  39. 3 0
      math/commutative-diagramm/README.md
  40. BIN
      math/commutative-diagramm/commutative-diagramm.png
  41. 1 0
      presentations/Tutorenschlung/presentation/README.md
  42. 3 0
      source-code/Pseudocode/quotes/README.md
  43. BIN
      source-code/Pseudocode/quotes/quotes.png
  44. 3 0
      tikz/b-tree-2-small-2/README.md
  45. BIN
      tikz/b-tree-2-small-2/b-tree-2-small-2.png
  46. 3 0
      tikz/b-tree-2-small-3/README.md
  47. BIN
      tikz/b-tree-2-small-3/b-tree-2-small-3.png
  48. 3 0
      tikz/b-tree-2-small-4/README.md
  49. BIN
      tikz/b-tree-2-small-4/b-tree-2-small-4.png
  50. 5 3
      tikz/b-tree-2-small/Makefile
  51. 3 0
      tikz/b-tree-2-small/README.md
  52. BIN
      tikz/b-tree-2-small/b-tree-2-small.png
  53. 3 0
      tikz/b-tree-3-evolution/README.md
  54. BIN
      tikz/b-tree-3-evolution/b-tree-3-evolution.png
  55. 3 0
      tikz/b-tree-node/README.md
  56. BIN
      tikz/b-tree-node/b-tree-node.png
  57. 3 0
      tikz/binary-search-tree/README.md
  58. BIN
      tikz/binary-search-tree/binary-search-tree.png
  59. 3 0
      tikz/bounding-box-lines-1/README.md
  60. BIN
      tikz/bounding-box-lines-1/bounding-box-lines-1.png
  61. 3 0
      tikz/bounding-box-lines-2/README.md
  62. BIN
      tikz/bounding-box-lines-2/bounding-box-lines-2.png
  63. 3 0
      tikz/bounding-box-lines-3/README.md
  64. BIN
      tikz/bounding-box-lines-3/bounding-box-lines-3.png
  65. 3 0
      tikz/bounding-box-lines-4/README.md
  66. BIN
      tikz/bounding-box-lines-4/bounding-box-lines-4.png
  67. 3 0
      tikz/cache-4-way-associative/README.md
  68. BIN
      tikz/cache-4-way-associative/cache-4-way-associative.png
  69. 3 0
      tikz/chemistry-example/README.md
  70. BIN
      tikz/chemistry-example/chemistry-example.png
  71. 3 0
      tikz/circle-convex-metric-space/README.md
  72. BIN
      tikz/circle-convex-metric-space/circle-convex-metric-space.png
  73. 3 0
      tikz/circles-closed/README.md
  74. BIN
      tikz/circles-closed/circles-closed.png
  75. 3 0
      tikz/circular-cone/README.md
  76. 3 0
      tikz/circular-sector-centroid/README.md
  77. BIN
      tikz/circular-sector-centroid/circular-sector-centroid.png
  78. 3 0
      tikz/cmos-nor/README.md
  79. 3 0
      tikz/cmos-sram-cell/README.md
  80. BIN
      tikz/cmos-sram-cell/cmos-sram-cell.png
  81. 3 0
      tikz/countable-sets/README.md
  82. BIN
      tikz/countable-sets/countable-sets.png
  83. 4 2
      tikz/cubic-function/Makefile
  84. 3 0
      tikz/cubic-function/README.md
  85. BIN
      tikz/cubic-function/cubic-function.png
  86. 3 0
      tikz/dijkstra-fail/README.md
  87. 0 25
      tikz/dijkstra/Makefile
  88. 0 2
      tikz/dijkstra/README
  89. 0 93
      tikz/dijkstra/dijkstra.py
  90. 0 24
      tikz/dijkstra/dot-product-1.tex
  91. 3 0
      tikz/dot-product-1/README.md
  92. 3 0
      tikz/dot-product-2/README.md
  93. 3 0
      tikz/dot-product-4/README.md
  94. 3 0
      tikz/dot-product-5/README.md
  95. 3 0
      tikz/dot-product-6/README.md
  96. 3 0
      tikz/doubly-linked-list/README.md
  97. 3 5
      tikz/earth-skizze-2/Makefile
  98. 3 0
      tikz/earth-skizze-2/README.md
  99. BIN
      tikz/earth-skizze-2/earth-skizze-2.png
  100. 0 0
      tikz/earth-skizze/README.md

+ 3 - 0
.gitattributes

@@ -0,0 +1,3 @@
+*.gif diff=image
+*.jpg diff=image
+*.png diff=image

+ 37 - 0
.meta/add_readme.py

@@ -0,0 +1,37 @@
+#!/usr/bin/env python
+
+import os
+from os import listdir
+from os.path import isfile, join
+
+import logging
+import sys
+
+logging.basicConfig(format='%(asctime)s %(levelname)s %(message)s',
+                    level=logging.DEBUG,
+                    stream=sys.stdout)
+
+
+def create_readme(directory):
+    project_name = os.path.basename(directory)
+    onlyfiles = [f.lower()
+                 for f in listdir(directory)
+                 if isfile(join(directory, f))]
+    if ('%s.tex' % project_name) not in onlyfiles:
+        logging.warning("Dir '%s' has no standard .tex filename.", directory)
+        return
+    text = "Compiled example\n"
+    text += "----------------\n"
+    text += "![Example](%s.png)\n" % project_name
+    with open(os.path.join(directory, "README.md"), 'w') as f:
+        f.write(text)
+    os.system("make png -C %s" % directory)
+
+subdirs = [x[0] for x in os.walk('.')]
+subdirs = [f for f in subdirs
+           if not any([True for e in f.split('/')
+                       if e.startswith('.') and len(e) > 1])]
+for subdir in subdirs:
+    onlyfiles = [f.lower() for f in listdir(subdir) if isfile(join(subdir, f))]
+    if 'readme.md' not in onlyfiles:
+        create_readme(subdir)

+ 3 - 0
documents/chess-chessboard-4x4/README.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](chess-chessboard-4x4.png)

BIN
documents/chess-chessboard-4x4/chess-chessboard-4x4.png


+ 3 - 0
documents/chess-chessboard-shortest-game/README.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](chess-chessboard-shortest-game.png)

BIN
documents/chess-chessboard-shortest-game/chess-chessboard-shortest-game.png


+ 3 - 0
documents/chess-chessboard-simple-example/README.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](chess-chessboard-simple-example.png)

BIN
documents/chess-chessboard-simple-example/chess-chessboard-simple-example.png


+ 3 - 0
documents/chess-skak-simple-example/README.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](chess-skak-simple-example.png)

BIN
documents/chess-skak-simple-example/chess-skak-simple-example.png


+ 27 - 1
documents/eaz/Makefile

@@ -1,7 +1,33 @@
 SOURCE = eaz
 SOURCE = eaz
+DELAY = 80
+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 *.out
+	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:
+	#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-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
documents/eaz/README.md

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

BIN
documents/eaz/eaz.pdf


BIN
documents/eaz/eaz.png


+ 3 - 0
documents/math-euklidische-normalform/README.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](math-euklidische-normalform.png)

BIN
documents/math-euklidische-normalform/math-euklidische-normalform.png


+ 3 - 0
documents/math-sylvester-diagonal-matrix/README.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](math-sylvester-diagonal-matrix.png)

BIN
documents/math-sylvester-diagonal-matrix/math-sylvester-diagonal-matrix.png


+ 27 - 4
documents/size/Makefile

@@ -1,10 +1,33 @@
 SOURCE = size
 SOURCE = size
+DELAY = 80
+DENSITY = 300
+WIDTH = 512
 
 
 make:
 make:
-	pdflatex $(SOURCE).tex -output-format=pdf # first run for the aux file
-	makeindex $(SOURCE)                       # now the index is generated
-	pdflatex $(SOURCE).tex -output-format=pdf # pdf with index :-)
+	pdflatex $(SOURCE).tex -output-format=pdf
 	make clean
 	make clean
 
 
 clean:
 clean:
-	rm -rf  $(TARGET) *.class *.html *.log *.aux *.out *.ind *.idx *.ilg *.toc *.bbl *.blg *.pyg
+	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:
+	#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-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
documents/size/README.md

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

BIN
documents/size/size.pdf


BIN
documents/size/size.png


+ 1 - 0
documents/table-multiple-pages/README.md

@@ -0,0 +1 @@
+Example with a very long table over multiple pages

+ 2 - 0
documents/zwischenmiete-vertrag/README.md

@@ -0,0 +1,2 @@
+Example for a contract - in German - about giving your apartment to somebody
+else for a short time.

+ 27 - 1
images/basic/Makefile

@@ -1,8 +1,34 @@
 SOURCE = basic
 SOURCE = basic
+DELAY = 80
+DENSITY = 300
+WIDTH = 512
 
 
 make:
 make:
 	pdflatex $(SOURCE).tex -output-format=pdf
 	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 *.out *.ind *.idx *.ilg *.toc *.bbl *.blg *.pyg
+	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:
+	#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-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

+ 1 - 0
images/basic/README.md

@@ -0,0 +1 @@
+Just include an image in a document in its original size

+ 26 - 1
images/float/Makefile

@@ -1,8 +1,33 @@
 SOURCE = float
 SOURCE = float
+DELAY = 80
+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 *.out *.ind *.idx *.ilg *.toc *.bbl *.blg *.pyg
+	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:
+	#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-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
images/float/README.md

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

BIN
images/float/float.png


+ 26 - 1
images/scaling/Makefile

@@ -1,8 +1,33 @@
 SOURCE = scaling
 SOURCE = scaling
+DELAY = 80
+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 *.out *.ind *.idx *.ilg *.toc *.bbl *.blg *.pyg
+	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:
+	#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-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
images/scaling/README.md

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

BIN
images/scaling/scaling.png


+ 26 - 1
images/side-by-side-subfig/Makefile

@@ -1,4 +1,7 @@
 SOURCE = side-by-side-subfig
 SOURCE = side-by-side-subfig
+DELAY = 80
+DENSITY = 300
+WIDTH = 512
 
 
 make:
 make:
 	pdflatex $(SOURCE).tex -output-format=pdf
 	pdflatex $(SOURCE).tex -output-format=pdf
@@ -6,4 +9,26 @@ make:
 	make clean
 	make clean
 
 
 clean:
 clean:
-	rm -rf  $(TARGET) *.class *.html *.log *.aux *.out *.ind *.idx *.ilg *.toc *.bbl *.blg *.pyg
+	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:
+	#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-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

BIN
images/side-by-side-subfig/side-by-side-subfig.png


+ 26 - 1
images/side-by-side/Makefile

@@ -1,4 +1,7 @@
 SOURCE = side-by-side
 SOURCE = side-by-side
+DELAY = 80
+DENSITY = 300
+WIDTH = 512
 
 
 make:
 make:
 	pdflatex $(SOURCE).tex -output-format=pdf
 	pdflatex $(SOURCE).tex -output-format=pdf
@@ -6,4 +9,26 @@ make:
 	make clean
 	make clean
 
 
 clean:
 clean:
-	rm -rf  $(TARGET) *.class *.html *.log *.aux *.out *.ind *.idx *.ilg *.toc *.bbl *.blg *.pyg
+	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:
+	#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-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
images/side-by-side/README.md

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

BIN
images/side-by-side/side-by-side.pdf


BIN
images/side-by-side/side-by-side.png


+ 3 - 0
math/commutative-diagramm/README.md

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

BIN
math/commutative-diagramm/commutative-diagramm.png


+ 1 - 0
presentations/Tutorenschlung/presentation/README.md

@@ -0,0 +1 @@
+Presentation of a softskill course at KIT.

+ 3 - 0
source-code/Pseudocode/quotes/README.md

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

BIN
source-code/Pseudocode/quotes/quotes.png


+ 3 - 0
tikz/b-tree-2-small-2/README.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](b-tree-2-small-2.png)

BIN
tikz/b-tree-2-small-2/b-tree-2-small-2.png


+ 3 - 0
tikz/b-tree-2-small-3/README.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](b-tree-2-small-3.png)

BIN
tikz/b-tree-2-small-3/b-tree-2-small-3.png


+ 3 - 0
tikz/b-tree-2-small-4/README.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](b-tree-2-small-4.png)

BIN
tikz/b-tree-2-small-4/b-tree-2-small-4.png


+ 5 - 3
tikz/b-tree-2-small/Makefile

@@ -1,14 +1,14 @@
 SOURCE = b-tree-2-small
 SOURCE = b-tree-2-small
 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
@@ -28,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

+ 3 - 0
tikz/b-tree-2-small/README.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](b-tree-2-small.png)

BIN
tikz/b-tree-2-small/b-tree-2-small.png


+ 3 - 0
tikz/b-tree-3-evolution/README.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](b-tree-3-evolution.png)

BIN
tikz/b-tree-3-evolution/b-tree-3-evolution.png


+ 3 - 0
tikz/b-tree-node/README.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](b-tree-node.png)

BIN
tikz/b-tree-node/b-tree-node.png


+ 3 - 0
tikz/binary-search-tree/README.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](binary-search-tree.png)

BIN
tikz/binary-search-tree/binary-search-tree.png


+ 3 - 0
tikz/bounding-box-lines-1/README.md

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

BIN
tikz/bounding-box-lines-1/bounding-box-lines-1.png


+ 3 - 0
tikz/bounding-box-lines-2/README.md

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

BIN
tikz/bounding-box-lines-2/bounding-box-lines-2.png


+ 3 - 0
tikz/bounding-box-lines-3/README.md

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

BIN
tikz/bounding-box-lines-3/bounding-box-lines-3.png


+ 3 - 0
tikz/bounding-box-lines-4/README.md

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

BIN
tikz/bounding-box-lines-4/bounding-box-lines-4.png


+ 3 - 0
tikz/cache-4-way-associative/README.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](cache-4-way-associative.png)

BIN
tikz/cache-4-way-associative/cache-4-way-associative.png


+ 3 - 0
tikz/chemistry-example/README.md

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

BIN
tikz/chemistry-example/chemistry-example.png


+ 3 - 0
tikz/circle-convex-metric-space/README.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](circle-convex-metric-space.png)

BIN
tikz/circle-convex-metric-space/circle-convex-metric-space.png


+ 3 - 0
tikz/circles-closed/README.md

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

BIN
tikz/circles-closed/circles-closed.png


+ 3 - 0
tikz/circular-cone/README.md

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

+ 3 - 0
tikz/circular-sector-centroid/README.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](circular-sector-centroid.png)

BIN
tikz/circular-sector-centroid/circular-sector-centroid.png


+ 3 - 0
tikz/cmos-nor/README.md

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

+ 3 - 0
tikz/cmos-sram-cell/README.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](cmos-sram-cell.png)

BIN
tikz/cmos-sram-cell/cmos-sram-cell.png


+ 3 - 0
tikz/countable-sets/README.md

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

BIN
tikz/countable-sets/countable-sets.png


+ 4 - 2
tikz/cubic-function/Makefile

@@ -1,7 +1,7 @@
 SOURCE = cubic-function
 SOURCE = cubic-function
 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
@@ -28,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

+ 3 - 0
tikz/cubic-function/README.md

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

BIN
tikz/cubic-function/cubic-function.png


+ 3 - 0
tikz/dijkstra-fail/README.md

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

+ 0 - 25
tikz/dijkstra/Makefile

@@ -1,25 +0,0 @@
-SOURCE = dot-product-1
-DELAY = 80
-DENSITY = 300
-
-make:
-	pdflatex $(SOURCE).tex -output-format=pdf
-	make clean
-
-clean:
-	rm -rf  $(TARGET) *.class *.html *.log *.aux
-
-gif:
-	pdfcrop $(SOURCE).pdf
-	convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
-	make clean
-
-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:
-	inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg

+ 0 - 2
tikz/dijkstra/README

@@ -1,2 +0,0 @@
-Das ist nicht fertig!
-TODO: Fertig stellen

+ 0 - 93
tikz/dijkstra/dijkstra.py

@@ -1,93 +0,0 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-
-class Node(object):
-    """ A node. """
-
-    def __init__(self, x, y, data):
-        self._data  = data  # data connected to the node
-        self._x     = x     # x-position
-        self._y     = y     # y-position
-
-    data    = property(fget=lambda self: self._data)
-    x       = property(fget=lambda self: self._x)
-    y       = property(fget=lambda self: self._y)
-
-    def __str__(self):
-        return "{(%i,%i)/%s}" % (self.x, self.y, str(self.data))
-
-    def __repr__(self):
-        return "{(%i,%i)/%s}" % (self.x, self.y, str(self.data))
-
-class Edge(object):
-    """ An edge. """
-
-    def __init__(self, startNode, endNode, weight=0, directed=False):
-        self._startNode = startNode
-        self._endNode   = endNode
-        self._weight    = weight
-        self._directed  = directed
-
-    startNode   = property(fget=lambda self: self._startNode)
-    endNode     = property(fget=lambda self: self._endNode)
-    weight      = property(fget=lambda self: self._weight)
-    directed    = property(fget=lambda self: self._directed)
-
-    def __str__(self):
-        return "%s/%s/%i" % (str(id(self.startNode)), str(id(self.endNode)), self.weight)
-
-    def __repr__(self):
-        return "%s/%s/%i" % (str(id(self.startNode)), str(id(self.endNode)), self.weight)
-
-class Graph(object):
-    """ A graph. """
-
-    def __init__(self, directed=False):
-        self._directed  = directed
-        self._edges     = []
-        self._vertices  = []
-
-    directed    = property(fget=lambda self: self._directed)
-    edges       = property(fget=lambda self: self._edges)
-    vertices    = property(fget=lambda self: self._vertices)
-
-    def printVertices(self):
-        vertexString = ""
-        for vertex in self.vertices:
-            vertexString += str(vertex)
-        return vertexString
-
-    def printEdges(self):
-        edgeString = "% Connect vertices with edges and draw weights\n"
-        edgeString += "\\foreach \source/ \dest /\weight in {"
-        for i, edge in enumerate(self.edges):
-            if i != 0:
-                edgeString += ", "
-            edgeString += str(edge)
-        edgeString += "}\n"
-        edgeString += "\path[edge] (\source) -- node[weight] {$\weight$} (\dest);"
-        return edgeString
-
-    def printGraph(self):
-        print("\\begin{tikzpicture}[scale=1.8, auto,swap]")
-        print("\\foreach \pos/\\name in {" + self.printVertices() + "}")
-        print("\t\\node[vertex] (\\name) at \pos {$\\name$};")
-        print(self.printEdges())
-        print("\end{tikzpicture}")
-
-if '__main__' == __name__:
-    graph = Graph()
-    k1 = Node(1,2, 1)
-    k2 = Node(3,0, 2)
-    k3 = Node(3,3, 3)
-    k6 = Node(1,4, 6)
-    k5 = Node(4,5, 5)
-    k4 = Node(5,3, 4)
-    graph._vertices.append(k1)
-    graph._vertices.append(k2)
-    graph._vertices.append(k3)
-    graph._vertices.append(k4)
-    graph._vertices.append(k5)
-    graph._vertices.append(k6)
-    graph._edges.append(Edge(k1,k2, 7))
-    graph.printGraph()

+ 0 - 24
tikz/dijkstra/dot-product-1.tex

@@ -1,24 +0,0 @@
-\documentclass{article}
-\usepackage[pdftex,active,tightpage]{preview}
-\setlength\PreviewBorder{2mm}
-\usepackage{tikz}
-\usetikzlibrary{arrows,positioning}
-\tikzset{
-    %Define standard arrow tip
-    >=stealth',
-    % Define arrow style
-    pil/.style={
-           ->,
-           thick}
-}
-
-\begin{document}
-\begin{preview}
-\begin{tikzpicture}
-    \draw[fill=green!30] (0,0) -- (90:.75cm) arc (90:27:.75cm);
-    \draw[pil,color=black] (0,0) -- node[right=2pt] {$\vec a$} (27:2.2cm);
-    \draw[pil,color=black] (0,0) -- node[near end, right=-3pt] {$\vec b$} (90:2cm);
-    \draw(60:0.5cm) node {$\varphi$};
-  \end{tikzpicture}
-\end{preview}
-\end{document}

+ 3 - 0
tikz/dot-product-1/README.md

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

+ 3 - 0
tikz/dot-product-2/README.md

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

+ 3 - 0
tikz/dot-product-4/README.md

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

+ 3 - 0
tikz/dot-product-5/README.md

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

+ 3 - 0
tikz/dot-product-6/README.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](dot-product-6.png)

+ 3 - 0
tikz/doubly-linked-list/README.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](doubly-linked-list.png)

+ 3 - 5
tikz/earth-skizze-2/Makefile

@@ -25,11 +25,9 @@ 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
-	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
+	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/earth-skizze-2/README.md

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

BIN
tikz/earth-skizze-2/earth-skizze-2.png


+ 0 - 0
tikz/earth-skizze/README.md


Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels