我使用命令\tkzGetPoint{a}
来制作角的角平分线ABC
。但是,该点的位置a
比我想要的要远得多,这导致形状和其下方的文本之间有很大空间。我该如何解决这个问题?这是我的工作:
\documentclass{article}
\usepackage{tikz,amsmath,amssymb,tkz-euclide}
\begin{document}
\center
\begin{tikzpicture}
\tkzDefPoint(0,0){A}
\tkzLabelPoints[below,left](A)
\tkzDefPoint(2.25,3.320718914){B}
\tkzLabelPoints[above](B)
\tkzDefPoint(6,0){C}
\tkzLabelPoints[below,right](C)
\tkzDrawSegment(A,B)
\tkzDrawSegment(B,C)
\tkzDrawSegment(A,C)
\tkzDefLine[bisector](A,B,C)\tkzGetPoint{a}
\tkzLabelPoints[left](a)
\tkzInterLL(A,C)(B,a) \tkzGetPoint{D}
\tkzLabelPoints[below](D)
\tkzDrawSegment(B,D)
\tkzDefPoint(3,0){E}
\tkzDrawSegment(E,B)
\tkzLabelPoints[below](E)
\tkzDefMidPoint(A,B) \tkzGetPoint{12}
\tkzLabelPoints[left](12)
\tkzDefMidPoint(B,C) \tkzGetPoint{15}
\tkzLabelPoints[right=0.1cm](15)
\tkzDefMidPoint(A,C) \tkzGetPoint{18}
\tkzLabelPoints[below=0.4cm](18)
\end{tikzpicture}
$\angle{ACD}=\angle{BCD}=\frac{\angle{ACB}}{2}$
\end{document}
多谢。
编辑:我标记了要点A只是为了让它能被看见。
答案1
您可以指定一个边界框,例如
\tkzInit[xmin=-0.5,xmax=6.7,ymin=-0.7,ymax=3.5]
使用合适的坐标,然后用一些填充进行剪辑
\tkzClip[space=.25]
代码:
\documentclass{article}
\usepackage{tikz,amsmath,amssymb,tkz-euclide}
\begin{document}
\center
\begin{tikzpicture}
\tkzInit[xmin=-0.5,xmax=6.7,ymin=-0.7,ymax=3.5]
\tkzClip[space=.25]
\tkzDefPoint(0,0){A}
\tkzLabelPoints[below,left](A)
\tkzDefPoint(2.25,3.320718914){B}
\tkzLabelPoints[above](B)
\tkzDefPoint(6,0){C}
\tkzLabelPoints[below,right](C)
\tkzDrawSegment(A,B)
\tkzDrawSegment(B,C)
\tkzDrawSegment(A,C)
\tkzDefLine[bisector](A,B,C)\tkzGetPoint{a}
%\tkzLabelPoints[left](a)
\tkzInterLL(A,C)(B,a) \tkzGetPoint{D}
\tkzLabelPoints[below](D)
\tkzDrawSegment(B,D)
\tkzDefPoint(3,0){E}
\tkzDrawSegment(E,B)
\tkzLabelPoints[below](E)
\tkzDefMidPoint(A,B) \tkzGetPoint{12}
\tkzLabelPoints[left](12)
\tkzDefMidPoint(B,C) \tkzGetPoint{15}
\tkzLabelPoints[right=0.1cm](15)
\tkzDefMidPoint(A,C) \tkzGetPoint{18}
\tkzLabelPoints[below=0.4cm](18)
\end{tikzpicture}
$\angle{ACD}=\angle{BCD}=\frac{\angle{ACB}}{2}$
\end{document}