ソースを参照

Improve image quality

Martin Thoma 9 年 前
コミット
558bdc8ec5

+ 5 - 3
tikz/triangle-gergonne-point/Makefile

@@ -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

BIN
tikz/triangle-gergonne-point/triangle-gergonne-point.png


+ 8 - 6
tikz/triangle-gergonne-point/triangle-gergonne-point.tex

@@ -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}