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

Improve quality of Triangle-9-point-circle-circumscribed-circle

* Round corners of triangle (polygon)
* Move blue circle to the background
This commit is contained in:
Martin Thoma 2016-06-26 13:42:51 +02:00
parent 8a46e994b5
commit d85550b33b
3 changed files with 7 additions and 5 deletions

View file

@ -1,14 +1,14 @@
SOURCE = triangle-9-point-circle-circumscribed-circle SOURCE = triangle-9-point-circle-circumscribed-circle
DELAY = 80 DELAY = 80
DENSITY = 300 DENSITY = 300
WIDTH = 500 WIDTH = 512
make: make:
pdflatex $(SOURCE).tex -output-format=pdf pdflatex $(SOURCE).tex -output-format=pdf
make clean make clean
clean: clean:
rm -rf $(TARGET) *.class *.html *.log *.aux rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
gif: gif:
pdfcrop $(SOURCE).pdf pdfcrop $(SOURCE).pdf
@ -28,4 +28,6 @@ svg:
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg #inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
pdf2svg $(SOURCE).pdf $(SOURCE).svg pdf2svg $(SOURCE).pdf $(SOURCE).svg
# Necessary, as pdf2svg does not always create valid svgs: # Necessary, as pdf2svg does not always create valid svgs:
inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg
rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg
rm $(SOURCE)1.svg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Before After
Before After

View file

@ -21,7 +21,7 @@
\tkzLabelPoints[above,font=\sansmath\sffamily](C) \tkzLabelPoints[above,font=\sansmath\sffamily](C)
% Draw polygon % Draw polygon
\tkzDrawPolygon[thick,fill=gray!10](A,B,C) \tkzDrawPolygon[rounded corners=0.1mm,thick,fill=gray!10](A,B,C)
% Get mid points % Get mid points
\tkzDefMidPoint(A,B) \tkzGetPoint{F} \tkzDefMidPoint(A,B) \tkzGetPoint{F}
@ -50,9 +50,9 @@
\tkzInterLC[/tikz/overlay,R](C,H)(Icircle,\rIN pt)\tkzGetPoints{H}{K} \tkzInterLC[/tikz/overlay,R](C,H)(Icircle,\rIN pt)\tkzGetPoints{H}{K}
% Draw polygon % Draw polygon
\tkzDrawPolygon[thick](A,B,C)
\tkzDefCircle[circum,/tikz/overlay](A,B,C) \tkzGetPoint{Ocircle} \tkzDefCircle[circum,/tikz/overlay](A,B,C) \tkzGetPoint{Ocircle}
\tkzDrawCircle[color=blue](Ocircle,A) \tkzDrawCircle[color=blue](Ocircle,A)
\tkzDrawPolygon[rounded corners=0.1mm,thick](A,B,C)
\tkzCalcLength(Ocircle,A) \tkzGetLength{dOcircle} \tkzCalcLength(Ocircle,A) \tkzGetLength{dOcircle}
% TODO: define shiftedOcircOrigin which is % TODO: define shiftedOcircOrigin which is