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

Added images for exterior angle theorem

This commit is contained in:
Martin Thoma 2014-10-01 12:42:09 +02:00
parent 925ab20145
commit 80da75ae5b
8 changed files with 195 additions and 0 deletions

View file

@ -0,0 +1,31 @@
SOURCE = triangle-exteriour-angle-theorem-1
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](triangle-exteriour-angle-theorem-1.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View file

@ -0,0 +1,55 @@
\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.7,3){A}
\tkzDefPoint(0,0){B}
\tkzDefPoint(3.2,0){C}
\tkzDefPoint(4.5,0){D}
\tkzLabelPoints[above,font=\sansmath\sffamily](A)
\tkzLabelPoints[below left,font=\sansmath\sffamily](B)
\tkzLabelPoints[below,font=\sansmath\sffamily](C)
\tkzLabelPoints[below,font=\sansmath\sffamily](D)
% Draw polygon
\tkzDrawPolygon[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=green!30](C,B,A)
\tkzLabelAngle[pos=0.4](C,B,A){$\beta$}
\tkzMarkAngle[arc=l,size=0.6cm,fill=green!30](A,C,B)
\tkzLabelAngle[pos=0.4](A,C,B){$\gamma$}
\tkzMarkAngle[arc=l,size=0.6cm,fill=red!30](D,C,A)
\tkzLabelAngle[pos=0.4](D,C,A){$\delta$}
\tkzDrawLines[arrows=->](B,D)
% Label lines
% \tkzLabelSegment[below](A,B){$c$}
% \tkzLabelSegment[left](A,C){$b$}
% \tkzLabelSegment[right](B,C){$a$}
% Draw polygon
\tkzDrawPolygon(A,B,C)
% Make dots for points
\tkzDrawPoints[size=1.0](A,B,C,D)
\end{tikzpicture}
\end{preview}
\end{document}

View file

@ -0,0 +1,31 @@
SOURCE = triangle-exteriour-angle-theorem-2
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](triangle-exteriour-angle-theorem-2.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View file

@ -0,0 +1,72 @@
\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(-1,-1){A}
\tkzDefPoint(3.2,0){B}
\tkzDefPoint(0.7,3){C}
\tkzDefBarycentricPoint(A=-5,C=1)
\tkzGetPoint{D}
\tkzDefBarycentricPoint(C=1,B=-5)
\tkzGetPoint{E}
\tkzDefBarycentricPoint(A=1,C=-5)
\tkzGetPoint{F}
\tkzLabelPoints[above left,font=\sansmath\sffamily](A)
\tkzLabelPoints[above right,font=\sansmath\sffamily](B)
\tkzLabelPoints[above=0.3,font=\sansmath\sffamily](C)
% \tkzLabelPoints[below,font=\sansmath\sffamily](D)
% Draw polygon
\tkzDrawPolygon[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=green!30](C,B,A)
\tkzLabelAngle[pos=-0.4](C,B,A){$\beta$}
\tkzMarkAngle[arc=l,size=0.6cm,fill=green!30](A,C,B)
\tkzLabelAngle[pos=0.4](A,C,B){$\gamma$}
\tkzMarkAngle[arc=l,size=0.6cm,fill=red!30](D,A,B)
\tkzLabelAngle[pos=0.4](B,A,D){$\delta$}
\tkzMarkAngle[arc=l,size=0.6cm,fill=red!30](A,B,E)
\tkzLabelAngle[pos=0.4](A,B,E){$\epsilon$}
\tkzMarkAngle[arc=l,size=0.6cm,fill=red!30](B,C,F)
\tkzLabelAngle[pos=0.4](B,C,F){$\zeta$}
% \tkzMarkAngle[arc=l,size=0.6cm,fill=orange!30](D,C,A)
% \tkzLabelAngle[pos=0.4](D,C,A){$\delta$}
\tkzDrawLines(A,B B,C C,A)
% Label lines
% \tkzLabelSegment[below](A,B){$c$}
% \tkzLabelSegment[left](A,C){$b$}
% \tkzLabelSegment[right](B,C){$a$}
% Draw polygon
% \tkzDrawPolygon[thick](A,B,C)
% Make dots for points
\tkzDrawPoints[size=1.0](A,B,C)
\end{tikzpicture}
\end{preview}
\end{document}