Quellcode durchsuchen

Bilder geTikZ't

Martin Thoma vor 11 Jahren
Ursprung
Commit
3c0527313a

BIN
documents/GeoTopo/GeoTopo.pdf


+ 4 - 2
documents/GeoTopo/Kapitel4.tex

@@ -340,7 +340,8 @@ aufgestellt.
 
 \begin{figure}
     \centering
-    \includegraphics[width=0.5\linewidth, keepaspectratio]{figures/todo/bild-6.jpg}
+    %\input{figures/geometry-6.tex}
+    \includegraphics[width=0.5\linewidth, keepaspectratio]{figures/geometry-6.pdf}
     \caption{TODO}
     \label{fig:bild-6}
 \end{figure}
@@ -360,7 +361,8 @@ aufgestellt.
 
     \begin{figure}
         \centering
-        \includegraphics[width=0.5\linewidth, keepaspectratio]{figures/todo/bild-7.jpg}
+        %\input{figures/geometry-7.tex}
+        \includegraphics[width=0.5\linewidth, keepaspectratio]{figures/geometry-7.pdf}
         \caption{TODO}
         \label{fig:bild-6}
     \end{figure}

+ 22 - 0
documents/GeoTopo/figures/geometry-7.tex

@@ -0,0 +1,22 @@
+\usetkzobj{all}
+\begin{tikzpicture}
+    \tkzSetUpPoint[shape=circle,size=10,color=black,fill=black]
+    \tkzSetUpLine[line width=1]
+    \tkzDefPoints{0/0/Q, 2/0/P, 1/2/R}
+
+
+    \pgfmathsetmacro{\firstAngle}{0}
+    \pgfmathsetmacro{\secondAngle}{-120}
+    \path[draw,red, fill=red!40] (Q) -- ++(\firstAngle:.4) arc[start angle=\firstAngle, delta angle=\secondAngle,radius=.4];
+
+    \tkzMarkAngle[arc=l,size=0.8cm,color=green,fill=green!20](Q,R,P)
+    \path[draw] ++(-50:.2) node[rotate=-50] {$\alpha$};
+    \node at (1,1.5) {$\beta$};
+    \tkzDrawLine(Q,P)
+    \tkzDrawLine(Q,R)
+    \tkzDrawLine(P,R)
+    \tkzDrawPoints(P,Q,R)
+    \tkzLabelPoint[below left](P){$P$}
+    \tkzLabelPoint[above left](Q){$Q$}
+    \tkzLabelPoint[above=0.2cm](R){$R$}
+\end{tikzpicture}

BIN
documents/GeoTopo/figures/todo/bild-6.jpg


BIN
documents/GeoTopo/figures/todo/bild-7.jpg


+ 31 - 0
tikz/geometry-7/Makefile

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

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

BIN
tikz/geometry-7/geometry-7.png


+ 27 - 0
tikz/geometry-7/geometry-7.tex

@@ -0,0 +1,27 @@
+\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/Q, 2/0/P, 1/2/R}
+
+
+    \pgfmathsetmacro{\firstAngle}{0}
+    \pgfmathsetmacro{\secondAngle}{-120}
+    \path[draw,red, fill=red!40] (Q) -- ++(\firstAngle:.4) arc[start angle=\firstAngle, delta angle=\secondAngle,radius=.4];
+
+    \tkzMarkAngle[arc=l,size=0.8cm,color=green,fill=green!20](Q,R,P)
+    \path[draw] ++(-50:.2) node[rotate=-50] {$\alpha$};
+    \node at (1,1.5) {$\beta$};
+    \tkzDrawLine(Q,P)
+    \tkzDrawLine(Q,R)
+    \tkzDrawLine(P,R)
+    \tkzDrawPoints(P,Q,R)
+    \tkzLabelPoint[below left](P){$P$}
+    \tkzLabelPoint[above left](Q){$Q$}
+    \tkzLabelPoint[above=0.2cm](R){$R$}
+\end{tikzpicture}
+\end{document}