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

Bilder hinzugefügt und verbessert

This commit is contained in:
Martin Thoma 2014-01-16 23:21:56 +01:00
parent efd599136a
commit 076970f475
23 changed files with 308 additions and 42 deletions

View file

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View file

@ -0,0 +1,34 @@
\documentclass[varwidth=true, border=2pt]{standalone}
\usepackage{tkz-euclide}
\usetkzobj{all}
\begin{document}
\begin{tikzpicture}
\tkzSetUpPoint[shape=circle,size=10,color=black,fill=black]
\tkzSetUpLine[line width=1]
\tkzDefPoints{0/1/P, -1/-1/Q, 1/-1/R, -2/-1/links, 2/-1/rechts, -1.5/-2/helperLeft, 1.5/-2/helperRight, -0.25/1.5/helperTopLeft, 0.25/1.5/helperTopRight}
\tkzMarkAngle[arc=l,size=0.6cm,color=green,fill=green!20](R,Q,P)
\tkzMarkAngle[arc=l,size=0.6cm,color=green,fill=green!20](P,R,Q)
\tkzMarkAngle[arc=l,size=0.6cm,color=green,fill=green!20](Q,P,R)
\tkzMarkAngle[arc=lll,size=0.6cm,color=blue,fill=blue!20](P,Q,links)
\tkzMarkAngle[arc=lll,size=0.6cm,color=blue,fill=blue!20](helperLeft,Q,R)
\tkzMarkAngle[arc=lll,size=0.6cm,color=blue,fill=blue!20](helperTopLeft,P,Q)
\tkzMarkAngle[arc=lll,size=0.6cm,color=blue,fill=blue!20](R,P,helperTopRight)
\tkzMarkAngle[arc=lll,size=0.6cm,color=blue,fill=blue!20](rechts,R,P)
\tkzMarkAngle[arc=lll,size=0.6cm,color=blue,fill=blue!20](Q,R,helperRight)
\tkzDrawLine[add=0.35 and 0.35](P,Q)
\tkzDrawLine[add=0.35 and 0.35](P,R)
\tkzDrawLine[add=0.4 and 0.4](Q,R)
\node at ($(P) + (0.03,0.4)$) {$P$};
\node at ($(Q) + (-0.3,-0.22)$) {$Q$};
\node at ($(R) + ( 0.3,-0.18)$) {$R$};
%\tkzLabelPoint[above=0.2cm](P){$P$}
%\tkzLabelPoint[below left](Q){$Q$}
%\tkzLabelPoint[below right](R){$R$}
\tkzDrawPoints(P, Q, R)
\end{tikzpicture}
\end{document}