mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-19 11:38:05 +02:00
Improve image quality
This commit is contained in:
parent
efd58788ea
commit
558bdc8ec5
3 changed files with 13 additions and 9 deletions
|
@ -1,14 +1,14 @@
|
|||
SOURCE = triangle-gergonne-point
|
||||
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: 22 KiB After Width: | Height: | Size: 23 KiB |
|
@ -25,22 +25,24 @@
|
|||
|
||||
% Draw polygon
|
||||
\tkzDrawPolygon[thick](A,B,C)
|
||||
\tkzDefCircle[in,/tikz/overlay](A,B,C) \tkzGetPoint{Ocircle}\tkzGetLength{dOcircle}
|
||||
\tkzDrawCircle[R](Ocircle,\dOcircle pt)
|
||||
\tkzDefCircle[in,/tikz/overlay](A,B,C) \tkzGetPoint{M}\tkzGetLength{dOcircle}
|
||||
\tkzDrawCircle[R,color=blue](M,\dOcircle pt)
|
||||
|
||||
\tkzInterLC[R,/tikz/overlay](B,C)(Ocircle,\dOcircle pt)\tkzGetPoints{X}{X2}
|
||||
\tkzInterLC[R,/tikz/overlay](A,C)(Ocircle,\dOcircle pt)\tkzGetPoints{Y}{Y2}
|
||||
\tkzInterLC[R,/tikz/overlay](A,B)(Ocircle,\dOcircle pt)\tkzGetPoints{Z}{Z2}
|
||||
\tkzInterLC[R,/tikz/overlay](B,C)(M,\dOcircle pt)\tkzGetPoints{X}{X2}
|
||||
\tkzInterLC[R,/tikz/overlay](A,C)(M,\dOcircle pt)\tkzGetPoints{Y}{Y2}
|
||||
\tkzInterLC[R,/tikz/overlay](A,B)(M,\dOcircle pt)\tkzGetPoints{Z}{Z2}
|
||||
\tkzInterLL(A,X)(B,Y)\tkzGetPoint{G}
|
||||
|
||||
\tkzDrawSegments[dashed](A,X B,Y C,Z)
|
||||
|
||||
\tkzDrawPoints[size=2,fill=black](Ocircle,X,Y,Z)
|
||||
\tkzDrawPoints[size=2,fill=black](X,Y,Z)
|
||||
\tkzDrawPoints[size=2,fill=red,color=red](G)
|
||||
\tkzDrawPoints[size=2,fill=blue,color=blue](M)
|
||||
|
||||
\tkzLabelPoints[above right,font=\sansmath\sffamily](X)
|
||||
\tkzLabelPoints[left,font=\sansmath\sffamily](Y)
|
||||
\tkzLabelPoints[below,font=\sansmath\sffamily](Z)
|
||||
\tkzLabelPoints[blue,right,font=\sansmath\sffamily](M)
|
||||
\tkzLabelPoints[red,above left,font=\sansmath\sffamily](G)
|
||||
\end{tikzpicture}
|
||||
\end{preview}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue