Bladeren bron

TikZ'en von Bildern

Martin Thoma 11 jaren geleden
bovenliggende
commit
69b20a3872

+ 2 - 1
documents/GeoTopo/Arbeitszeit.md

@@ -40,4 +40,5 @@ in dem Erstellen dieses Skripts steckt:
 |21.01.2014 | 19:30 - 21:30 | Digitalisieren der Vorlesung von 21.01.2014
 |22.01.2014 | 06:00 - 06:30 | TikZ'en eines Bildes
 |22.01.2014 | 07:15 - 07:35 | TikZ'en eines Bildes
-|22.01.2014 | 00:00 - 10:00 | TikZ'en eines Bildes und Bemerkungen
+|23.01.2014 | 09:00 - 10:00 | TikZ'en eines Bildes und Bemerkungen
+|23.01.2014 | 10:30 - 12:15 | TikZ'en von Bildern

BIN
documents/GeoTopo/GeoTopo.pdf


+ 8 - 8
documents/GeoTopo/Kapitel4.tex

@@ -664,11 +664,11 @@ $\overset{\text{Strahlensatz}}{\Rightarrow} \frac{a}{h_c} = \frac{c}{h_a} \right
 \begin{figure}[ht]
     \centering
     \subfloat[$a,b$ sind Katheten und $c$ ist die Hypothenuse]{
-        \input{figures/todo.tex}
+        \input{figures/pythagoras.tex}
         \label{fig:pythagoras-bezeichnungen}
     }%
     \subfloat[Beweisskizze]{
-        \input{figures/todo.tex}
+        \input{figures/pythagoras-2.tex}
         \label{fig:bild-5}
     }%
     \label{fig:flaechengleichheit}
@@ -699,12 +699,12 @@ $\overset{\text{Strahlensatz}}{\Rightarrow} \frac{a}{h_c} = \frac{c}{h_a} \right
 
             \begin{figure}[ht]
                 \centering
-                \subfloat[Schritt 1 (Bild 10)]{
-                    \input{figures/todo.tex}
+                \subfloat[Schritt 1]{
+                    \input{figures/coordinate-system-1.tex}
                     \label{fig:14.13.1}
                 }%
-                \subfloat[Schritt 2 (Bild 11)]{
-                    \input{figures/todo.tex}
+                \subfloat[Schritt 2]{
+                    \input{figures/coordinate-system-2.tex}
                     \label{fig:14.13.2}
                 }%
                 \label{fig:14.13.0.1}
@@ -729,8 +729,8 @@ $\overset{\text{Strahlensatz}}{\Rightarrow} \frac{a}{h_c} = \frac{c}{h_a} \right
             \begin{beweis}[von 2]
                 \begin{figure}[ht]
                     \centering
-                    \subfloat[Schritt 1 (Bild 12)]{
-                        \input{figures/todo.tex}
+                    \subfloat[Schritt 1]{
+                        \input{figures/coordinate-system-2.tex}
                         \label{fig:14.13.3}
                     }%
                     \subfloat[Schritt 2 (Bild 13)]{

+ 13 - 0
documents/GeoTopo/figures/coordinate-system-1.tex

@@ -0,0 +1,13 @@
+\begin{tikzpicture}
+    \tkzSetUpPoint[shape=circle,size=10,color=black,fill=black]
+    \tkzSetUpLine[line width=1]
+    \tkzDefPoints{0/0/O, 1/0/X, 0/1/Y, 2/1/P}
+    \tkzDrawLine[add=3 and 2](O,X)
+    \tkzLabelLine[below,pos=3](O,X){$g_1$}
+    \tkzLabelLine[right,pos=3](O,Y){$g_2$}
+    \tkzDrawLine[add=3 and 2](O,Y)
+
+    \tkzLabelPoint(P){$P$}
+    \node at ($(-2,2)$){$X$};
+    \tkzDrawPoints(P)
+\end{tikzpicture}

+ 28 - 0
documents/GeoTopo/figures/coordinate-system-2.tex

@@ -0,0 +1,28 @@
+\begin{tikzpicture}
+    \tkzSetUpPoint[shape=circle,size=10,color=black,fill=black]
+    \tkzSetUpLine[line width=1]
+    \tkzDefPoints{0/0/O, 1/0/X, 0/1/Y, 2/1/P}
+    \tkzDrawLine[add=3 and 2](O,X)
+    \tkzLabelLine[below,pos=3](O,X){$g_1$}
+    \tkzLabelLine[right,pos=3](O,Y){$g_2$}
+    \tkzDrawLine[add=3 and 2](O,Y)
+
+    \tkzDefLine[orthogonal=through P,/tikz/overlay](O,X) \tkzGetPoint{helper}
+    \tkzInterLL(O,X)(P,helper) \tkzGetPoint{xp}
+    \draw [decorate,decoration={brace,amplitude=4pt,mirror}]
+        (O) -- (xp) node [black,midway,xshift=0cm, yshift=-0.3cm] 
+        {\footnotesize $x_P$};
+
+    \tkzDefLine[orthogonal=through P,/tikz/overlay](O,Y) \tkzGetPoint{helper}
+    \tkzInterLL(O,Y)(P,helper) \tkzGetPoint{yp}
+    \draw [decorate,decoration={brace,amplitude=4pt}]
+        (O) -- (yp) node [black,midway,xshift=-0.4cm] 
+        {\footnotesize $y_P$};
+
+    \tkzDrawPolygon(O,xp,P,yp)
+
+    \tkzLabelPoint[above right](P){$P$}
+    \tkzLabelPoint[below left](O){$0$}
+    \node at ($(-2,2)$){$X$};
+    \tkzDrawPoints(P)
+\end{tikzpicture}

+ 43 - 0
documents/GeoTopo/figures/coordinate-system-3.tex

@@ -0,0 +1,43 @@
+\begin{tikzpicture}
+    \tkzSetUpPoint[shape=circle,size=10,color=black,fill=black]
+    \tkzSetUpLine[line width=1]
+    \tkzDefPoints{0/0/O, 1/0/X, 0/1/Y, 2/1/P, 3/3/Q}
+    \tkzDrawLine[add=3 and 2.2](O,X)
+    \tkzLabelLine[below,pos=3](O,X){$g_1$}
+    \tkzLabelLine[left,pos=3](O,Y){$g_2$}
+    \tkzDrawLine[add=3 and 2.2](O,Y)
+
+    \tkzDefLine[orthogonal=through P,/tikz/overlay](O,X) \tkzGetPoint{helper}
+    \tkzInterLL(O,X)(P,helper) \tkzGetPoint{xp}
+    \draw [decorate,decoration={brace,amplitude=4pt,mirror}]
+        (O) -- (xp) node [black,midway,xshift=0cm, yshift=-0.3cm] 
+        {\footnotesize $x_P$};
+
+    \tkzDefLine[orthogonal=through P,/tikz/overlay](O,Y) \tkzGetPoint{helper}
+    \tkzInterLL(O,Y)(P,helper) \tkzGetPoint{yp}
+    \draw [decorate,decoration={brace,amplitude=4pt}]
+        (O) -- (yp) node [black,midway,xshift=-0.4cm] 
+        {\footnotesize $y_P$};
+
+    \tkzDrawPolygon(O,xp,P,yp)
+
+    \tkzDefLine[orthogonal=through Q,/tikz/overlay](O,X) \tkzGetPoint{helper}
+    \tkzInterLL(O,X)(Q,helper) \tkzGetPoint{xq}
+    \tkzDefLine[orthogonal=through Q,/tikz/overlay](O,Y) \tkzGetPoint{helper}
+    \tkzInterLL(O,Y)(Q,helper) \tkzGetPoint{yq}
+
+    \tkzInterLL(yp,P)(Q,xq) \tkzGetPoint{qxp}
+    \tkzInterLL(xp,P)(Q,yq) \tkzGetPoint{R}
+
+    \tkzDrawPolygon(O,xq,Q,yq)
+
+    \tkzDrawSegments[green](xp,xq R,Q)
+    \tkzDrawSegments[very thick,orange](yp,yq P,R)
+
+    \tkzLabelPoint[above right](P){$P$}
+    \tkzLabelPoint[above right](Q){$Q$}
+    \tkzLabelPoint[below left](O){$0$}
+    \tkzLabelPoint[above](R){$R$}
+    \node at ($(-2,2)$){$X$};
+    \tkzDrawPoints(P,Q,R)
+\end{tikzpicture}

+ 25 - 0
documents/GeoTopo/figures/pythagoras-2.tex

@@ -0,0 +1,25 @@
+\begin{tikzpicture}
+    \tkzSetUpPoint[shape=circle,size=10,color=black,fill=black]
+    \tkzSetUpLine[line width=1]
+    \tkzDefPoints{0/0/A, 4/0/B, 4/4/C, 0/4/D, 1/0/W, 4/1/X, 3/4/Y, 0/3/Z}
+    \tkzDrawPolygon(A,B,C,D)
+    \tkzDrawPolygon(W,X,Y,Z)
+    \tkzLabelSegment[below](A,W){$b$}
+    \tkzLabelSegment[below](W,B){$a$}
+    \tkzLabelSegment[right](B,X){$b$}
+    \tkzLabelSegment[right](X,C){$a$}
+    \tkzLabelSegment[above](C,Y){$b$}
+    \tkzLabelSegment[above](Y,D){$a$}
+    \tkzLabelSegment[left](D,Z){$b$}
+    \tkzLabelSegment[left](Z,A){$a$}
+    \tkzLabelAngle[pos=-0.24](D,C,B){$\cdot$}
+    \tkzMarkAngle[arc=l,size=0.4cm](D,C,B)
+    \tkzLabelAngle[pos=0.24](C,B,A){$\cdot$}
+    \tkzMarkAngle[arc=l,size=0.4cm](C,B,A)
+    \tkzLabelAngle[pos=0.24](B,A,D){$\cdot$}
+    \tkzMarkAngle[arc=l,size=0.4cm](B,A,D)
+    \tkzLabelAngle[pos=0.24](A,D,C){$\cdot$}
+    \tkzMarkAngle[arc=l,size=0.4cm](A,D,C)
+    \tkzLabelAngle[pos=0.24](W,Z,Y){$\gamma$}
+    \tkzMarkAngle[arc=l,size=0.4cm](W,Z,Y)
+\end{tikzpicture}

+ 16 - 0
documents/GeoTopo/figures/pythagoras.tex

@@ -0,0 +1,16 @@
+\begin{tikzpicture}
+    \tkzSetUpPoint[shape=circle,size=10,color=black,fill=black]
+    \tkzSetUpLine[line width=1]
+    \tkzDefPoints{0/0/A, 5/0/B}
+    \tkzInterCC[R,/tikz/overlay](A,4cm)(B,3cm) \tkzGetPoints{C}{D}
+    \tkzDrawPolygon(A,B,C)
+    \tkzDrawPoints(A,B,C)
+    \tkzLabelSegment[below](A,B){$c$}
+    \tkzLabelSegment[above left](A,C){$b$}
+    \tkzLabelSegment[above right](B,C){$a$}
+    \tkzLabelPoint[below](A){$A$}
+    \tkzLabelPoint[below](B){$B$}
+    \tkzLabelPoint[above](C){$C$}
+    \tkzLabelAngle[pos=0.24](A,C,B){$\cdot$}
+    \tkzMarkAngle[arc=l,size=0.4cm](A,C,B)
+\end{tikzpicture}

+ 31 - 0
tikz/coordinate-system-1/Makefile

@@ -0,0 +1,31 @@
+SOURCE  = coordinate-system-1
+DELAY   = 80
+DENSITY = 300
+WIDTH   = 512
+
+make:
+	pdflatex $(SOURCE).tex -output-format=pdf
+	make clean
+
+clean:
+	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-plain-svg=$(SOURCE).svg

+ 3 - 0
tikz/coordinate-system-1/Readme.md

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

BIN
tikz/coordinate-system-1/coordinate-system-1.png


+ 21 - 0
tikz/coordinate-system-1/coordinate-system-1.tex

@@ -0,0 +1,21 @@
+\documentclass[varwidth=true, border=2pt]{standalone}
+\usepackage{tkz-euclide}
+\usepackage{tikz}
+\usetikzlibrary{patterns}
+
+\begin{document}
+\usetkzobj{all}
+\begin{tikzpicture}
+    \tkzSetUpPoint[shape=circle,size=10,color=black,fill=black]
+    \tkzSetUpLine[line width=1]
+    \tkzDefPoints{0/0/O, 1/0/X, 0/1/Y, 2/1/P}
+    \tkzDrawLine[add=3 and 2](O,X)
+    \tkzLabelLine[below,pos=3](O,X){$g_1$}
+    \tkzLabelLine[right,pos=3](O,Y){$g_2$}
+    \tkzDrawLine[add=3 and 2](O,Y)
+
+    \tkzLabelPoint(P){$P$}
+    \node at ($(-2,2)$){$X$};
+    \tkzDrawPoints(P)
+\end{tikzpicture}
+\end{document}

+ 31 - 0
tikz/coordinate-system-2/Makefile

@@ -0,0 +1,31 @@
+SOURCE  = coordinate-system-2
+DELAY   = 80
+DENSITY = 300
+WIDTH   = 512
+
+make:
+	pdflatex $(SOURCE).tex -output-format=pdf
+	make clean
+
+clean:
+	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-plain-svg=$(SOURCE).svg

+ 3 - 0
tikz/coordinate-system-2/Readme.md

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

BIN
tikz/coordinate-system-2/coordinate-system-2.png


+ 37 - 0
tikz/coordinate-system-2/coordinate-system-2.tex

@@ -0,0 +1,37 @@
+\documentclass[varwidth=true, border=2pt]{standalone}
+\usepackage{tkz-euclide}
+\usepackage{tikz}
+\usetikzlibrary{decorations.pathreplacing}
+
+
+\begin{document}
+\usetkzobj{all}
+\begin{tikzpicture}
+    \tkzSetUpPoint[shape=circle,size=10,color=black,fill=black]
+    \tkzSetUpLine[line width=1]
+    \tkzDefPoints{0/0/O, 1/0/X, 0/1/Y, 2/1/P}
+    \tkzDrawLine[add=3 and 2](O,X)
+    \tkzLabelLine[below,pos=3](O,X){$g_1$}
+    \tkzLabelLine[right,pos=3](O,Y){$g_2$}
+    \tkzDrawLine[add=3 and 2](O,Y)
+
+    \tkzDefLine[orthogonal=through P,/tikz/overlay](O,X) \tkzGetPoint{helper}
+    \tkzInterLL(O,X)(P,helper) \tkzGetPoint{xp}
+    \draw [decorate,decoration={brace,amplitude=4pt,mirror}]
+        (O) -- (xp) node [black,midway,xshift=0cm, yshift=-0.3cm] 
+        {\footnotesize $x_P$};
+
+    \tkzDefLine[orthogonal=through P,/tikz/overlay](O,Y) \tkzGetPoint{helper}
+    \tkzInterLL(O,Y)(P,helper) \tkzGetPoint{yp}
+    \draw [decorate,decoration={brace,amplitude=4pt}]
+        (O) -- (yp) node [black,midway,xshift=-0.4cm] 
+        {\footnotesize $y_P$};
+
+    \tkzDrawPolygon(O,xp,P,yp)
+
+    \tkzLabelPoint[above right](P){$P$}
+    \tkzLabelPoint[below left](O){$0$}
+    \node at ($(-2,2)$){$X$};
+    \tkzDrawPoints(P)
+\end{tikzpicture}
+\end{document}

+ 31 - 0
tikz/coordinate-system-3/Makefile

@@ -0,0 +1,31 @@
+SOURCE  = coordinate-system-3
+DELAY   = 80
+DENSITY = 300
+WIDTH   = 512
+
+make:
+	pdflatex $(SOURCE).tex -output-format=pdf
+	make clean
+
+clean:
+	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-plain-svg=$(SOURCE).svg

+ 3 - 0
tikz/coordinate-system-3/Readme.md

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

BIN
tikz/coordinate-system-3/coordinate-system-3.png


+ 52 - 0
tikz/coordinate-system-3/coordinate-system-3.tex

@@ -0,0 +1,52 @@
+\documentclass[varwidth=true, border=2pt]{standalone}
+\usepackage{tkz-euclide}
+\usepackage{tikz}
+\usetikzlibrary{decorations.pathreplacing}
+
+
+\begin{document}
+\usetkzobj{all}
+\begin{tikzpicture}
+    \tkzSetUpPoint[shape=circle,size=10,color=black,fill=black]
+    \tkzSetUpLine[line width=1]
+    \tkzDefPoints{0/0/O, 1/0/X, 0/1/Y, 2/1/P, 3/3/Q}
+    \tkzDrawLine[add=3 and 2.2](O,X)
+    \tkzLabelLine[below,pos=3](O,X){$g_1$}
+    \tkzLabelLine[left,pos=3](O,Y){$g_2$}
+    \tkzDrawLine[add=3 and 2.2](O,Y)
+
+    \tkzDefLine[orthogonal=through P,/tikz/overlay](O,X) \tkzGetPoint{helper}
+    \tkzInterLL(O,X)(P,helper) \tkzGetPoint{xp}
+    \draw [decorate,decoration={brace,amplitude=4pt,mirror}]
+        (O) -- (xp) node [black,midway,xshift=0cm, yshift=-0.3cm] 
+        {\footnotesize $x_P$};
+
+    \tkzDefLine[orthogonal=through P,/tikz/overlay](O,Y) \tkzGetPoint{helper}
+    \tkzInterLL(O,Y)(P,helper) \tkzGetPoint{yp}
+    \draw [decorate,decoration={brace,amplitude=4pt}]
+        (O) -- (yp) node [black,midway,xshift=-0.4cm] 
+        {\footnotesize $y_P$};
+
+    \tkzDrawPolygon(O,xp,P,yp)
+
+    \tkzDefLine[orthogonal=through Q,/tikz/overlay](O,X) \tkzGetPoint{helper}
+    \tkzInterLL(O,X)(Q,helper) \tkzGetPoint{xq}
+    \tkzDefLine[orthogonal=through Q,/tikz/overlay](O,Y) \tkzGetPoint{helper}
+    \tkzInterLL(O,Y)(Q,helper) \tkzGetPoint{yq}
+
+    \tkzInterLL(yp,P)(Q,xq) \tkzGetPoint{qxp}
+    \tkzInterLL(xp,P)(Q,yq) \tkzGetPoint{R}
+
+    \tkzDrawPolygon(O,xq,Q,yq)
+
+    \tkzDrawSegments[green](xp,xq R,Q)
+    \tkzDrawSegments[very thick,orange](yp,yq P,R)
+
+    \tkzLabelPoint[above right](P){$P$}
+    \tkzLabelPoint[above right](Q){$Q$}
+    \tkzLabelPoint[below left](O){$0$}
+    \tkzLabelPoint[above](R){$R$}
+    \node at ($(-2,2)$){$X$};
+    \tkzDrawPoints(P,Q,R)
+\end{tikzpicture}
+\end{document}

+ 31 - 0
tikz/pythagoras-2/Makefile

@@ -0,0 +1,31 @@
+SOURCE  = pythagoras-2
+DELAY   = 80
+DENSITY = 300
+WIDTH   = 512
+
+make:
+	pdflatex $(SOURCE).tex -output-format=pdf
+	make clean
+
+clean:
+	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-plain-svg=$(SOURCE).svg

+ 3 - 0
tikz/pythagoras-2/Readme.md

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

BIN
tikz/pythagoras-2/pythagoras-2.png


+ 31 - 0
tikz/pythagoras-2/pythagoras-2.tex

@@ -0,0 +1,31 @@
+\documentclass[varwidth=true, border=2pt]{standalone}
+\usepackage{tkz-euclide}
+
+\begin{document}
+\usetkzobj{all}
+\begin{tikzpicture}
+    \tkzSetUpPoint[shape=circle,size=10,color=black,fill=black]
+    \tkzSetUpLine[line width=1]
+    \tkzDefPoints{0/0/A, 4/0/B, 4/4/C, 0/4/D, 1/0/W, 4/1/X, 3/4/Y, 0/3/Z}
+    \tkzDrawPolygon(A,B,C,D)
+    \tkzDrawPolygon(W,X,Y,Z)
+    \tkzLabelSegment[below](A,W){$b$}
+    \tkzLabelSegment[below](W,B){$a$}
+    \tkzLabelSegment[right](B,X){$b$}
+    \tkzLabelSegment[right](X,C){$a$}
+    \tkzLabelSegment[above](C,Y){$b$}
+    \tkzLabelSegment[above](Y,D){$a$}
+    \tkzLabelSegment[left](D,Z){$b$}
+    \tkzLabelSegment[left](Z,A){$a$}
+    \tkzLabelAngle[pos=-0.24](D,C,B){$\cdot$}
+    \tkzMarkAngle[arc=l,size=0.4cm](D,C,B)
+    \tkzLabelAngle[pos=0.24](C,B,A){$\cdot$}
+    \tkzMarkAngle[arc=l,size=0.4cm](C,B,A)
+    \tkzLabelAngle[pos=0.24](B,A,D){$\cdot$}
+    \tkzMarkAngle[arc=l,size=0.4cm](B,A,D)
+    \tkzLabelAngle[pos=0.24](A,D,C){$\cdot$}
+    \tkzMarkAngle[arc=l,size=0.4cm](A,D,C)
+    \tkzLabelAngle[pos=0.24](W,Z,Y){$\gamma$}
+    \tkzMarkAngle[arc=l,size=0.4cm](W,Z,Y)
+\end{tikzpicture}
+\end{document}

+ 31 - 0
tikz/pythagoras/Makefile

@@ -0,0 +1,31 @@
+SOURCE  = pythagoras
+DELAY   = 80
+DENSITY = 300
+WIDTH   = 512
+
+make:
+	pdflatex $(SOURCE).tex -output-format=pdf
+	make clean
+
+clean:
+	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-plain-svg=$(SOURCE).svg

+ 3 - 0
tikz/pythagoras/Readme.md

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

BIN
tikz/pythagoras/pythagoras.png


+ 22 - 0
tikz/pythagoras/pythagoras.tex

@@ -0,0 +1,22 @@
+\documentclass[varwidth=true, border=2pt]{standalone}
+\usepackage{tkz-euclide}
+
+\begin{document}
+\usetkzobj{all}
+\begin{tikzpicture}
+    \tkzSetUpPoint[shape=circle,size=10,color=black,fill=black]
+    \tkzSetUpLine[line width=1]
+    \tkzDefPoints{0/0/A, 5/0/B}
+    \tkzInterCC[R,/tikz/overlay](A,4cm)(B,3cm) \tkzGetPoints{C}{D}
+    \tkzDrawPolygon(A,B,C)
+    \tkzDrawPoints(A,B,C)
+    \tkzLabelSegment[below](A,B){$c$}
+    \tkzLabelSegment[above left](A,C){$b$}
+    \tkzLabelSegment[above right](B,C){$a$}
+    \tkzLabelPoint[below](A){$A$}
+    \tkzLabelPoint[below](B){$B$}
+    \tkzLabelPoint[above](C){$C$}
+    \tkzLabelAngle[pos=0.24](A,C,B){$\cdot$}
+    \tkzMarkAngle[arc=l,size=0.4cm](A,C,B)
+\end{tikzpicture}
+\end{document}