Browse Source

TikZed image

Martin Thoma 11 years ago
parent
commit
d8cced3a57

+ 1 - 0
documents/GeoTopo/Arbeitszeit.md

@@ -39,3 +39,4 @@ in dem Erstellen dieses Skripts steckt:
 |20.01.2014 | 20:00 - 20:15 | TikZ'en eines Bildes
 |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

BIN
documents/GeoTopo/GeoTopo.pdf


+ 2 - 2
documents/GeoTopo/Kapitel4.tex

@@ -610,8 +610,8 @@ Sei im Folgenden \enquote{IWS} die \enquote{Innenwinkelsumme}.
 
 \begin{figure}
     \centering
-    \input{figures/todo.tex}
-    \caption{Bild 3}
+    \input{figures/triangle-similar.tex}
+    \caption{Die Dreiecke $\triangle ABC$ und $\triangle AB'C'$ sind ähnlich.}
     \label{fig:bild-3}
 \end{figure}
 

+ 25 - 0
documents/GeoTopo/figures/triangle-similar.tex

@@ -0,0 +1,25 @@
+\begin{tikzpicture}
+    \tkzSetUpPoint[shape=circle,size=10,color=black,fill=black]
+    \tkzSetUpLine[line width=1]
+    \tkzDefPoints{0/0/A, 3/0/B', 2/2/C, 4/4/C'}
+    \tkzDefLine[parallel=through C](B',C') \tkzGetPoint{Phelper}
+    \tkzInterLL(A,B')(C,Phelper) \tkzGetPoint{B}
+    \tkzDrawLine[add=0 and 0.2](A,B')
+    \tkzDrawLine[add=0 and 0.2](A,C')
+    \tkzDrawSegment(B',C')
+
+    \node at ($(A)+(-0.1,-0.2)$)  {$A$};
+    \node at ($(B')+(0.2,-0.2)$)  {$B'$}; % \tkzLabelPoint[below](B){$B$} is not accurate enough
+    \node at ($(C')+(0,0.4)$)  {$C'$};
+    \node at ($(B)+(0.2,-0.2)$)  {$B$};
+    \node at ($(C)+(0.28,0.5)$)  {$C$};
+    \tkzDrawPolygon[ultra thick,color=blue,fill=blue!20](A,B',C') 
+    \tkzDrawPolygon[line width=0.3pt,color=red,fill=red!20](A,B,C) 
+    \tkzDrawPoints(A,B',C',B,C)
+    \tkzLabelSegment[below,red](A,B){$c$}
+    \tkzLabelSegment[left,red](A,C){$b$}
+    \tkzLabelSegment[right,red](B,C){$a$}
+    \tkzLabelSegment[below,blue,pos=0.8](A,B'){$c'$}
+    \tkzLabelSegment[left,blue,pos=0.8](A,C'){$b'$}
+    \tkzLabelSegment[right,blue](B',C'){$a'$}
+\end{tikzpicture}

+ 31 - 0
tikz/rectangle-2/Makefile

@@ -0,0 +1,31 @@
+SOURCE  = triangle-similar
+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/rectangle-2/Readme.md

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

BIN
tikz/rectangle-2/triangle-similar.png


+ 32 - 0
tikz/rectangle-2/triangle-similar.tex

@@ -0,0 +1,32 @@
+\documentclass[varwidth=true, border=2pt]{standalone}
+\usepackage{tikz}
+\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, 3/0/B', 2/2/C, 4/4/C'}
+    \tkzDefLine[parallel=through C](B',C') \tkzGetPoint{Phelper}
+    \tkzInterLL(A,B')(C,Phelper) \tkzGetPoint{B}
+    \tkzDrawLine[add=0 and 0.2](A,B')
+    \tkzDrawLine[add=0 and 0.2](A,C')
+    \tkzDrawSegment(B',C')
+
+    \node at ($(A)+(-0.1,-0.2)$)  {$A$};
+    \node at ($(B')+(0.2,-0.2)$)  {$B'$};
+    \node at ($(C')+(0,0.4)$)  {$C'$};
+    \node at ($(B)+(0.2,-0.2)$)  {$B$};
+    \node at ($(C)+(0.28,0.5)$)  {$C$};
+    \tkzDrawPolygon[ultra thick,color=blue,fill=blue!20](A,B',C') 
+    \tkzDrawPolygon[line width=0.3pt,color=red,fill=red!20](A,B,C) 
+    \tkzDrawPoints(A,B',C',B,C)
+    \tkzLabelSegment[below,red](A,B){$c$}
+    \tkzLabelSegment[left,red](A,C){$b$}
+    \tkzLabelSegment[right,red](B,C){$a$}
+    \tkzLabelSegment[below,blue,pos=0.8](A,B'){$c'$}
+    \tkzLabelSegment[left,blue,pos=0.8](A,C'){$b'$}
+    \tkzLabelSegment[right,blue](B',C'){$a'$}
+\end{tikzpicture}
+\end{document}

+ 5 - 0
tikz/rectangle/Readme.md

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

BIN
tikz/rectangle/rectangle-1.png


BIN
tikz/rectangle/rectangle-2.png


BIN
tikz/rectangle/rectangle-3.png


+ 31 - 0
tikz/triangle-similar/Makefile

@@ -0,0 +1,31 @@
+SOURCE  = triangle-similar
+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/triangle-similar/Readme.md

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

BIN
tikz/triangle-similar/triangle-similar.png


+ 32 - 0
tikz/triangle-similar/triangle-similar.tex

@@ -0,0 +1,32 @@
+\documentclass[varwidth=true, border=2pt]{standalone}
+\usepackage{tikz}
+\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, 3/0/B', 2/2/C, 4/4/C'}
+    \tkzDefLine[parallel=through C](B',C') \tkzGetPoint{Phelper}
+    \tkzInterLL(A,B')(C,Phelper) \tkzGetPoint{B}
+    \tkzDrawLine[add=0 and 0.2](A,B')
+    \tkzDrawLine[add=0 and 0.2](A,C')
+    \tkzDrawSegment(B',C')
+
+    \node at ($(A)+(-0.1,-0.2)$)  {$A$};
+    \node at ($(B')+(0.2,-0.2)$)  {$B'$};
+    \node at ($(C')+(0,0.4)$)  {$C'$};
+    \node at ($(B)+(0.2,-0.2)$)  {$B$};
+    \node at ($(C)+(0.28,0.5)$)  {$C$};
+    \tkzDrawPolygon[ultra thick,color=blue,fill=blue!20](A,B',C') 
+    \tkzDrawPolygon[line width=0.3pt,color=red,fill=red!20](A,B,C) 
+    \tkzDrawPoints(A,B',C',B,C)
+    \tkzLabelSegment[below,red](A,B){$c$}
+    \tkzLabelSegment[left,red](A,C){$b$}
+    \tkzLabelSegment[right,red](B,C){$a$}
+    \tkzLabelSegment[below,blue,pos=0.8](A,B'){$c'$}
+    \tkzLabelSegment[left,blue,pos=0.8](A,C'){$b'$}
+    \tkzLabelSegment[right,blue](B',C'){$a'$}
+\end{tikzpicture}
+\end{document}