Skip to content

Commit 0d6d342

Browse files
committed
Add README.md and rendered image to many examples
The examples were found by ```bash $ find . -mindepth 2 -maxdepth 2 -type d '!' -exec test -e "{}/README.md" ';' -print ```
1 parent 02808f8 commit 0d6d342

33 files changed

+202
-18
lines changed
Loading

cheat-sheets/analysis/Makefile

+28-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,36 @@ author := Martin Thoma
77
version := 1.0
88

99
DATE=$(shell date +%Y-%m-%d)
10+
SOURCE = Analysis_Wichtige_Formeln
11+
DELAY = 80
12+
DENSITY = 300
13+
WIDTH = 512
1014

1115
make:
12-
pdflatex Analysis_Wichtige_Formeln.tex -output-format=pdf
16+
pdflatex $(SOURCE).tex -output-format=pdf
1317
make clean
1418

1519
clean:
16-
rm -rf $(TARGET) *.class *.html *.log *.aux
20+
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
21+
22+
gif:
23+
pdfcrop $(SOURCE).pdf
24+
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
25+
make clean
26+
27+
png:
28+
make
29+
make svg
30+
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
31+
32+
transparentGif:
33+
convert $(SOURCE).pdf -transparent white result.gif
34+
make clean
35+
36+
svg:
37+
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
38+
pdf2svg $(SOURCE).pdf $(SOURCE).svg
39+
# Necessary, as pdf2svg does not always create valid svgs:
40+
inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg
41+
rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg
42+
rm $(SOURCE)1.svg

cheat-sheets/analysis/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Compiled example
2+
----------------
3+
![Example](Analysis_Wichtige_Formeln.png)

circuits/d-latch-with-nand/Makefile

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
SOURCE = d-latch-with-nand
22
DELAY = 80
33
DENSITY = 300
4-
WIDTH = 500
4+
WIDTH = 512
55

66
make:
77
pdflatex $(SOURCE).tex -output-format=pdf
@@ -28,4 +28,6 @@ svg:
2828
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
2929
pdf2svg $(SOURCE).pdf $(SOURCE).svg
3030
# Necessary, as pdf2svg does not always create valid svgs:
31-
inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
31+
inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg
32+
rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg
33+
rm $(SOURCE)1.svg

circuits/d-latch-with-nand/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Compiled example
2+
----------------
3+
![Example](d-latch-with-nand.png)
7.29 KB
Loading

circuits/simple-example-tikz-circuit-library/Makefile

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
SOURCE = simple-example-tikz-circuit-library
22
DELAY = 80
33
DENSITY = 300
4-
WIDTH = 500
4+
WIDTH = 512
55

66
make:
77
pdflatex $(SOURCE).tex -output-format=pdf
@@ -28,4 +28,6 @@ svg:
2828
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
2929
pdf2svg $(SOURCE).pdf $(SOURCE).svg
3030
# Necessary, as pdf2svg does not always create valid svgs:
31-
inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
31+
inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg
32+
rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg
33+
rm $(SOURCE)1.svg
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Compiled example
2+
----------------
3+
![Example](simple-example-tikz-circuit-library.png)
Loading

circuits/simple-example/Makefile

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
SOURCE = simple-example
22
DELAY = 80
33
DENSITY = 300
4-
WIDTH = 500
4+
WIDTH = 512
55

66
make:
77
pdflatex $(SOURCE).tex -output-format=pdf
@@ -28,4 +28,6 @@ svg:
2828
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
2929
pdf2svg $(SOURCE).pdf $(SOURCE).svg
3030
# Necessary, as pdf2svg does not always create valid svgs:
31-
inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
31+
inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg
32+
rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg
33+
rm $(SOURCE)1.svg

circuits/simple-example/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Compiled example
2+
----------------
3+
![Example](simple-example.png)
3.84 KB
Loading

math/fractions/Makefile

+26-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,33 @@
11
SOURCE = fractions
2+
DELAY = 80
3+
DENSITY = 300
4+
WIDTH = 512
25

36
make:
47
pdflatex $(SOURCE).tex -output-format=pdf
58
make clean
69

710
clean:
8-
rm -rf $(TARGET) *.class *.html *.log *.aux
11+
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
12+
13+
gif:
14+
pdfcrop $(SOURCE).pdf
15+
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
16+
make clean
17+
18+
png:
19+
make
20+
make svg
21+
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
22+
23+
transparentGif:
24+
convert $(SOURCE).pdf -transparent white result.gif
25+
make clean
26+
27+
svg:
28+
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
29+
pdf2svg $(SOURCE).pdf $(SOURCE).svg
30+
# Necessary, as pdf2svg does not always create valid svgs:
31+
inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg
32+
rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg
33+
rm $(SOURCE)1.svg

math/fractions/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Compiled example
2+
----------------
3+
![Example](fractions.png)

math/fractions/fractions.png

25.6 KB
Loading

math/sizes/Makefile

+26-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,33 @@
11
SOURCE = sizes
2+
DELAY = 80
3+
DENSITY = 300
4+
WIDTH = 512
25

36
make:
47
pdflatex $(SOURCE).tex -output-format=pdf
58
make clean
69

710
clean:
8-
rm -rf $(TARGET) *.class *.html *.log *.aux
11+
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
12+
13+
gif:
14+
pdfcrop $(SOURCE).pdf
15+
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
16+
make clean
17+
18+
png:
19+
make
20+
make svg
21+
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
22+
23+
transparentGif:
24+
convert $(SOURCE).pdf -transparent white result.gif
25+
make clean
26+
27+
svg:
28+
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
29+
pdf2svg $(SOURCE).pdf $(SOURCE).svg
30+
# Necessary, as pdf2svg does not always create valid svgs:
31+
inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg
32+
rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg
33+
rm $(SOURCE)1.svg

math/sizes/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Compiled example
2+
----------------
3+
![Example](sizes.png)

math/sizes/sizes.png

3.66 KB
Loading

math/strange-signs/Makefile

+26-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,33 @@
11
SOURCE = strange-signs
2+
DELAY = 80
3+
DENSITY = 300
4+
WIDTH = 512
25

36
make:
47
pdflatex $(SOURCE).tex -output-format=pdf
58
make clean
69

710
clean:
8-
rm -rf $(TARGET) *.class *.html *.log *.aux
11+
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
12+
13+
gif:
14+
pdfcrop $(SOURCE).pdf
15+
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
16+
make clean
17+
18+
png:
19+
make
20+
make svg
21+
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
22+
23+
transparentGif:
24+
convert $(SOURCE).pdf -transparent white result.gif
25+
make clean
26+
27+
svg:
28+
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
29+
pdf2svg $(SOURCE).pdf $(SOURCE).svg
30+
# Necessary, as pdf2svg does not always create valid svgs:
31+
inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg
32+
rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg
33+
rm $(SOURCE)1.svg

math/strange-signs/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Compiled example
2+
----------------
3+
![Example](strange-signs.png)

math/strange-signs/strange-signs.png

16.8 KB
Loading

source-code/Minted-Haskell/Makefile

+26-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,33 @@
11
SOURCE = Minted-Haskell
2+
DELAY = 80
3+
DENSITY = 300
4+
WIDTH = 512
25

36
make:
4-
pdflatex -shell-escape $(SOURCE).tex -output-format=pdf
57
pdflatex -shell-escape $(SOURCE).tex -output-format=pdf
68
make clean
79

810
clean:
9-
rm -rf $(TARGET) *.class *.html *.log *.aux *.out *.glo *.glg *.gls *.ist *.xdy *.1 *.toc *.pyg
11+
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot _minted-Minted-Haskell/
12+
13+
gif:
14+
pdfcrop $(SOURCE).pdf
15+
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
16+
make clean
17+
18+
png:
19+
make
20+
make svg
21+
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
22+
23+
transparentGif:
24+
convert $(SOURCE).pdf -transparent white result.gif
25+
make clean
26+
27+
svg:
28+
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
29+
pdf2svg $(SOURCE).pdf $(SOURCE).svg
30+
# Necessary, as pdf2svg does not always create valid svgs:
31+
inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg
32+
rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg
33+
rm $(SOURCE)1.svg
74.3 KB
Loading

source-code/Minted-Haskell/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Compiled example
2+
----------------
3+
![Example](Minted-Haskell.png)

source-code/Pseudocode/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The examples in this folder explain algorithms using pseudo-code.

tikz/2d-parted-function/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ svg:
3030
# Necessary, as pdf2svg does not always create valid svgs:
3131
inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg
3232
rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg
33-
rm $(SOURCE)1.svg
33+
rm $(SOURCE)1.svg

tikz/tensor-diagram/Makefile

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
SOURCE = tensor-diagram
22
DELAY = 80
33
DENSITY = 300
4-
WIDTH = 500
4+
WIDTH = 512
55

66
make:
77
pdflatex $(SOURCE).tex -output-format=pdf
88
make clean
99

1010
clean:
11-
rm -rf $(TARGET) *.class *.html *.log *.aux
11+
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
1212

1313
gif:
1414
pdfcrop $(SOURCE).pdf
@@ -25,8 +25,9 @@ transparentGif:
2525
make clean
2626

2727
svg:
28-
make
2928
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
3029
pdf2svg $(SOURCE).pdf $(SOURCE).svg
3130
# Necessary, as pdf2svg does not always create valid svgs:
32-
inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
31+
inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg
32+
rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg
33+
rm $(SOURCE)1.svg

tikz/tensor-diagram/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Compiled example
2+
----------------
3+
![Example](tensor-diagram.png)
11.9 KB
Loading

uml/class-diagramm/Makefile

+21
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ author := Martin Thoma
77
version := 1.0
88

99
DATE=$(shell date +%Y-%m-%d)
10+
SOURCE = class-diagram
11+
DELAY = 80
12+
DENSITY = 300
13+
WIDTH = 512
1014

1115
make:
1216
mpost meta.mp
@@ -15,3 +19,20 @@ make:
1519

1620
clean:
1721
rm -rf $(TARGET) *.class *.html *.log *.aux *.out *.1
22+
23+
png:
24+
make
25+
make svg
26+
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
27+
28+
transparentGif:
29+
convert $(SOURCE).pdf -transparent white result.gif
30+
make clean
31+
32+
svg:
33+
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
34+
pdf2svg $(SOURCE).pdf $(SOURCE).svg
35+
# Necessary, as pdf2svg does not always create valid svgs:
36+
inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg
37+
rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg
38+
rm $(SOURCE)1.svg

uml/class-diagramm/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Compiled example
2+
----------------
3+
![Example](class-diagram.png)

uml/class-diagramm/class-diagram.pdf

-1.88 KB
Binary file not shown.

uml/class-diagramm/class-diagram.png

119 KB
Loading

0 commit comments

Comments
 (0)