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:
parent
8a46e994b5
commit
d85550b33b
3 changed files with 7 additions and 5 deletions
|
@ -1,14 +1,14 @@
|
|||
SOURCE = triangle-9-point-circle-circumscribed-circle
|
||||
DELAY = 80
|
||||
DENSITY = 300
|
||||
WIDTH = 500
|
||||
WIDTH = 512
|
||||
|
||||
make:
|
||||
pdflatex $(SOURCE).tex -output-format=pdf
|
||||
make clean
|
||||
|
||||
clean:
|
||||
rm -rf $(TARGET) *.class *.html *.log *.aux
|
||||
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
|
||||
|
||||
gif:
|
||||
pdfcrop $(SOURCE).pdf
|
||||
|
@ -28,4 +28,6 @@ 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
|
||||
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 |
|
@ -21,7 +21,7 @@
|
|||
\tkzLabelPoints[above,font=\sansmath\sffamily](C)
|
||||
|
||||
% 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
|
||||
\tkzDefMidPoint(A,B) \tkzGetPoint{F}
|
||||
|
@ -50,9 +50,9 @@
|
|||
\tkzInterLC[/tikz/overlay,R](C,H)(Icircle,\rIN pt)\tkzGetPoints{H}{K}
|
||||
|
||||
% Draw polygon
|
||||
\tkzDrawPolygon[thick](A,B,C)
|
||||
\tkzDefCircle[circum,/tikz/overlay](A,B,C) \tkzGetPoint{Ocircle}
|
||||
\tkzDrawCircle[color=blue](Ocircle,A)
|
||||
\tkzDrawPolygon[rounded corners=0.1mm,thick](A,B,C)
|
||||
\tkzCalcLength(Ocircle,A) \tkzGetLength{dOcircle}
|
||||
|
||||
% TODO: define shiftedOcircOrigin which is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue