![我怎样才能放置一个小点?](https://linux22.com/image/358415/%E6%88%91%E6%80%8E%E6%A0%B7%E6%89%8D%E8%83%BD%E6%94%BE%E7%BD%AE%E4%B8%80%E4%B8%AA%E5%B0%8F%E7%82%B9%EF%BC%9F.png)
问题:我一直在研究一些几何图形。在给定的 MWE 中,我想在所有点(即 ABCM 和 N)上放置点。
梅威瑟:
\documentclass{article}
\usepackage{tkz-euclide}
\usetkzobj{all}
\begin{document}
\Huge
\begin{tikzpicture}
\draw[thick,->] (0,0) -- (5,0);
\draw[thick,->] (0,0) -- (0,5);
\tkzDefPoint(0,0){B}
\tkzDefPoint(0,3){A}
\tkzDefPoint(3,0){C}
\tkzLabelPoint[left](A){$A$}
\tkzLabelPoint[left](B){$B$}
\tkzLabelPoint[below,yshift=0mm](C){$C$}
\tkzDrawSegment[black!60!black](A,C)
\tkzMarkRightAngle[fill=blue!20,size=0.25](A,B,C)
\tkzDefPoint(4.5,0){M}
\tkzDefPoint(0,4.5){N}
\tkzLabelPoint[right,below](M){$M$}
\tkzLabelPoint[left](N){$N$}
\end{tikzpicture}
\end{document}
答案1
以下\foreach
构造将在您选择的每个点处添加一个小的圆形黑色填充节点。
\documentclass{article}
\usepackage{tkz-euclide}
\usetkzobj{all}
\begin{document}
\Huge
\begin{tikzpicture}
\draw[thick,->] (0,0) -- (5,0);
\draw[thick,->] (0,0) -- (0,5);
\tkzDefPoint(0,0){B}
\tkzDefPoint(0,3){A}
\tkzDefPoint(3,0){C}
\tkzLabelPoint[left](A){$A$}
\tkzLabelPoint[left](B){$B$}
\tkzLabelPoint[below,yshift=0mm](C){$C$}
\tkzDrawSegment[black!60!black](A,C)
\tkzMarkRightAngle[fill=blue!20,size=0.25](A,B,C)
\tkzDefPoint(4.5,0){M}
\tkzDefPoint(0,4.5){N}
\tkzLabelPoint[right,below](M){$M$}
\tkzLabelPoint[left](N){$N$}
\foreach \n in {A,B,C,M,N}
\node at (\n)[circle,fill,inner sep=1.5pt]{};
\end{tikzpicture}
\end{document}