2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-19 11:38:05 +02:00

Bilder geTikZ't

This commit is contained in:
Martin Thoma 2014-01-14 16:26:06 +01:00
parent 9a74762365
commit 3c0527313a
9 changed files with 87 additions and 2 deletions

Binary file not shown.

View file

@ -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}

View file

@ -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}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

31
tikz/geometry-7/Makefile Normal file
View file

@ -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

View file

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View file

@ -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}