tkz-euclide 绘图圆规标记,用于弧形构造

tkz-euclide 绘图圆规标记,用于弧形构造

我希望圆弧只出现在点 I 和 J 上(带有虚线或不像手册示例中那样),而不是像第一个 tex 输出那样。长圆线是不需要的。我只是想展示如何获取 I 和 J 点来确定三角形上的 Cm 点。

这是我的代码:

   \documentclass{standalone}
   \usepackage{tkz-euclide}
   \begin{document}

   \begin{tikzpicture}[scale=2]

    %triangle
    \tkzDefPoint(4,2){A}
    \tkzDefPoint(8,3){B}
    \tkzDefPoint(6,5){C}
    \tkzDrawPolygon(A,B,C)
    \tkzDrawPoints(A,B,C)

    %point Cm
    %intersect circles
    \tkzInterCC(A,B)(B,A) \tkzGetPoints{I}{J}
    %median line
    \tkzDrawLine[color=green!50!black,dashed, add=.04 and .04](I,J)

    %test arcs (type compass)
    \tkzSetUpCompass[color=blue] %blue don't show up :-(
    \tkzDrawArc[delta=10](A,B)(I)
    \tkzDrawArc[delta=8](B,I)(A)
    \tkzDrawArc[delta=10](B,A)(J)
    \tkzDrawArc[delta=8](A,J)(B)
    
    %label points
    \tkzLabelPoints[below left](A)
    \tkzLabelPoints[below right](B) 
    \tkzLabelPoints[above right=2mm](C)
    \tkzLabelPoint[above left, red](I){$I$}
    \tkzLabelPoint[below right, red](J){$J$}
    \tkzDrawPoints(I,J)

    %spec signs
    \node[magenta] at ($(A)!0.25!(B)$){$/$};
    \node[magenta] at ($(A)!0.75!(B)$){$/$};    
    
    %median line C-Cm
    \coordinate (Cm) at ($1/2*(A)+1/2*(B)$);
    \tkzDrawPoint(Cm)
    \tkzDrawLine[dashed, color=red, add=.1 and .15](C,Cm)
    \tkzLabelPoints[below right=2mm, magenta](Cm){$C_m$}

    \end{tikzpicture}
    \end{document}

在此处输入图片描述 在此处输入图片描述

答案1

相反,\tkzDrawArc您需要使用\tkzCompass\tkzCompass[length=1](A,I)添加一个长度为 1 的圆弧,中心为A并穿过I

\documentclass{standalone}
\usepackage{tkz-euclide}
\begin{document}

\begin{tikzpicture}[scale=2]

%triangle
\tkzDefPoint(4,2){A}
\tkzDefPoint(8,3){B}
\tkzDefPoint(6,5){C}
\tkzDrawPolygon(A,B,C)
\tkzDrawPoints(A,B,C)

%point Cm
%intersect circles
\tkzInterCC(A,B)(B,A) \tkzGetPoints{I}{J}
%median line
\tkzDrawLine[color=green!50!black,dashed, add=.04 and .04](I,J)

%test arcs (type compass)
\tkzSetUpCompass[color=blue] %blue don't show up :-(
\tkzCompass[length=1](A,I)
\tkzCompass[length=1](B,I)
\tkzCompass[length=1](A,J)
\tkzCompass[length=1](B,J)    
%\tkzDrawArc[delta=10](A,B)(I)
%\tkzDrawArc[delta=8](B,I)(A)
%\tkzDrawArc[delta=10](B,A)(J)
%\tkzDrawArc[delta=8](A,J)(B)

%label points
\tkzLabelPoints[below left](A)
\tkzLabelPoints[below right](B) 
\tkzLabelPoints[above right=2mm](C)
\tkzLabelPoint[above left, red](I){$I$}
\tkzLabelPoint[below right, red](J){$J$}
\tkzDrawPoints(I,J)

%spec signs
\node[magenta] at ($(A)!0.25!(B)$){$/$};
\node[magenta] at ($(A)!0.75!(B)$){$/$};    

%median line C-Cm
\coordinate (Cm) at ($1/2*(A)+1/2*(B)$);
\tkzDrawPoint(Cm)
\tkzDrawLine[dashed, color=red, add=.1 and .15](C,Cm)
\tkzLabelPoints[below right=2mm, magenta](Cm){$C_m$}

\end{tikzpicture}
\end{document}

 

相关内容