mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-19 11:38:05 +02:00
tikz/triangle-9-point-circle
This commit is contained in:
parent
a58c02101e
commit
211f0923eb
4 changed files with 125 additions and 0 deletions
31
tikz/triangle-9-point-circle/Makefile
Normal file
31
tikz/triangle-9-point-circle/Makefile
Normal file
|
@ -0,0 +1,31 @@
|
|||
SOURCE = triangle-9-point-circle
|
||||
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
|
3
tikz/triangle-9-point-circle/README.md
Normal file
3
tikz/triangle-9-point-circle/README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
Compiled example
|
||||
----------------
|
||||

|
BIN
tikz/triangle-9-point-circle/triangle-9-point-circle.png
Normal file
BIN
tikz/triangle-9-point-circle/triangle-9-point-circle.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 39 KiB |
91
tikz/triangle-9-point-circle/triangle-9-point-circle.tex
Normal file
91
tikz/triangle-9-point-circle/triangle-9-point-circle.tex
Normal file
|
@ -0,0 +1,91 @@
|
|||
\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}[very thick,font=\sansmath\sffamily]
|
||||
\tkzDefPoint(0,1){A}
|
||||
\tkzDefPoint(4,0){B}
|
||||
\tkzDefPoint(3,6){C}
|
||||
|
||||
\tkzLabelPoints[below left,font=\sansmath\sffamily](A)
|
||||
\tkzLabelPoints[below right,font=\sansmath\sffamily](B)
|
||||
\tkzLabelPoints[above,font=\sansmath\sffamily](C)
|
||||
|
||||
% Draw polygon
|
||||
\tkzDrawPolygon[thick,fill=gray!10](A,B,C)
|
||||
|
||||
% Mark angles
|
||||
% \tkzMarkAngle[arc=l,size=0.6cm,fill=green!30](B,A,C)
|
||||
% \tkzLabelAngle[pos=0.3](B,A,C){$\alpha$}
|
||||
|
||||
% \tkzMarkAngle[arc=l,size=0.6cm,fill=red!30](C,B,A)
|
||||
% \tkzLabelAngle[pos=0.4](C,B,A){$\beta$}
|
||||
|
||||
% \tkzMarkAngle[arc=l,size=0.6cm,fill=blue!30](A,C,B)
|
||||
% \tkzLabelAngle[pos=0.4](A,C,B){$\gamma$}
|
||||
|
||||
% Label lines
|
||||
% \tkzLabelSegment[below](A,B){$c$}
|
||||
% \tkzLabelSegment[left](A,C){$b$}
|
||||
% \tkzLabelSegment[right](B,C){$a$}
|
||||
|
||||
% Get mid points
|
||||
\tkzDefMidPoint(A,B) \tkzGetPoint{F}
|
||||
\tkzDefMidPoint(A,C) \tkzGetPoint{E}
|
||||
\tkzDefMidPoint(B,C) \tkzGetPoint{D}
|
||||
\tkzLabelPoints[right,font=\sansmath\sffamily](D)
|
||||
\tkzLabelPoints[left,font=\sansmath\sffamily](E)
|
||||
\tkzLabelPoints[below,font=\sansmath\sffamily](F)
|
||||
|
||||
\tkzDefCircle[circum,/tikz/overlay](D,E,F)\tkzGetPoint{Icircle}\tkzGetLength{rIN}
|
||||
\tkzDrawCircle[R](Icircle,\rIN pt)
|
||||
|
||||
% Get 'Hoehe'
|
||||
\tkzInterLC[/tikz/overlay](B,C)(A,B)\tkzGetPoints{hah1}{hah2}
|
||||
\tkzDefMidPoint(hah1,hah2) \tkzGetPoint{G}
|
||||
\tkzLabelPoints[right,font=\sansmath\sffamily](G)
|
||||
|
||||
\tkzInterLC[/tikz/overlay](A,B)(C,A)\tkzGetPoints{hch1}{hch2}
|
||||
\tkzDefMidPoint(hch1,hch2) \tkzGetPoint{H}
|
||||
\tkzLabelPoints[below,font=\sansmath\sffamily](H)
|
||||
|
||||
\tkzInterLC[/tikz/overlay](A,C)(B,A)\tkzGetPoints{hbh1}{hbh2}
|
||||
\tkzDefMidPoint(hbh1,hbh2) \tkzGetPoint{I}
|
||||
\tkzLabelPoints[left,font=\sansmath\sffamily](I)
|
||||
|
||||
% 'Hoehenschnittpunkt'
|
||||
\tkzInterLL(A,G)(C,H)\tkzGetPoint{S}
|
||||
\tkzLabelPoints[above right,font=\sansmath\sffamily](S)
|
||||
|
||||
% More points
|
||||
\tkzInterLC[/tikz/overlay,R](A,G)(Icircle,\rIN pt)\tkzGetPoints{G}{J}
|
||||
\tkzLabelPoints[above,font=\sansmath\sffamily](J)
|
||||
|
||||
\tkzInterLC[/tikz/overlay,R](B,I)(Icircle,\rIN pt)\tkzGetPoints{L}{I}
|
||||
\tkzLabelPoints[above,font=\sansmath\sffamily](L)
|
||||
|
||||
\tkzInterLC[/tikz/overlay,R](C,H)(Icircle,\rIN pt)\tkzGetPoints{H}{K}
|
||||
\tkzLabelPoints[above left,font=\sansmath\sffamily](K)
|
||||
|
||||
% Draw rest
|
||||
\tkzDrawSegments[dashed](A,G C,H B,I)
|
||||
\tkzDrawSegments[red,very thick](A,J J,S)
|
||||
\tkzDrawSegments[green,very thick](C,K K,S)
|
||||
\tkzDrawSegments[blue,very thick](B,L L,S)
|
||||
|
||||
\tkzDrawPoints[size=2,fill=black](D,E,F,I,G,H,S,J,L,K,Icircle)
|
||||
|
||||
% Draw polygon
|
||||
\tkzDrawPolygon[thick](A,B,C)
|
||||
\end{tikzpicture}
|
||||
\end{preview}
|
||||
\end{document}
|
Loading…
Add table
Add a link
Reference in a new issue