2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00

TikZ'en von Bildern

This commit is contained in:
Martin Thoma 2014-01-23 12:12:01 +01:00
parent 8a429a6044
commit 69b20a3872
28 changed files with 468 additions and 9 deletions

31
tikz/pythagoras/Makefile Normal file
View file

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

View file

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View file

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