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

added thaleskreis

This commit is contained in:
Martin Thoma 2014-10-04 14:22:36 +02:00
parent c7eff931fd
commit 92bc39a797
4 changed files with 90 additions and 0 deletions

View file

@ -0,0 +1,31 @@
SOURCE = thales-circle-triangle
DELAY = 80
DENSITY = 300
WIDTH = 500
make:
pdflatex $(SOURCE).tex -output-format=pdf
make clean
clean:
rm -rf $(TARGET) *.class *.html *.log *.aux
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](thales-circle-triangle.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View file

@ -0,0 +1,56 @@
\documentclass{article}
\usepackage[pdftex,active,tightpage]{preview}
\setlength\PreviewBorder{2mm}
\usepackage{tikz}
\usepackage{tkz-euclide}
\usetkzobj{all}
\usetikzlibrary{shapes, calc, decorations}
\usepackage{amsmath,amssymb}
\usepackage{helvet}
\usepackage[eulergreek]{sansmath}
\begin{document}
\begin{preview}
\begin{tikzpicture}[scale=1.5,font=\sansmath\sffamily]
\tkzDefPoint(0,0){A}
\tkzDefPoint(4,0){B}
\tkzDefPoint(2,0){M}
\tkzDefPoint(3,2){H}
\tkzInterLC[/tikz/overlay](M,H)(M,B) \tkzGetPoints{E}{C}
\tkzLabelPoints[above right](C)
\tkzMarkAngle[fill=blue!30,size=0.6cm,opacity=.5](C,B,A)
\tkzLabelAngle[pos=0.4](A,B,C){$\beta$}
\tkzMarkAngle[fill=blue!30,size=0.6cm,opacity=.5](M,C,B)
\tkzLabelAngle[pos=0.4](B,C,M){$\beta$}
\tkzMarkAngle[fill=blue!30,size=0.6cm,opacity=.5](B,M,C)
\tkzLabelAngle[pos=0.4](B,M,C){$\delta$}
\tkzMarkAngle[fill=blue!30,size=0.6cm,opacity=.5](M,A,C)
\tkzLabelAngle[pos=0.4](M,A,C){$\alpha$}
\tkzMarkAngle[fill=blue!30,size=0.6cm,opacity=.5](A,C,M)
\tkzLabelAngle[pos=0.4](A,C,M){$\alpha$}
\tkzMarkAngle[fill=blue!30,size=0.6cm,opacity=.5](C,M,A)
\tkzLabelAngle[pos=0.4](C,M,A){$\gamma$}
\tkzDrawSector[thick](M,B)(A)
\tkzLabelSegment[below=-1pt](A,M){$r$}
\tkzLabelSegment[below=-1pt](M,B){$r$}
\tkzLabelSegment[right=-1pt](M,C){$r$}
\tkzLabelPoints[below left](A)
\tkzLabelPoints[below right](B)
\tkzLabelPoints[below](M)
\tkzDrawSegments(A,B B,C C,A)
\tkzDrawSegments(M,B B,C C,M)
\end{tikzpicture}
\end{preview}
\end{document}