我如何使一个点变大?(tkz-euclide)

我如何使一个点变大?(tkz-euclide)

例如让我们画一个线段:

segment

代码对于该段:

\documentclass[12pt,a4paper]{article}
\usepackage{tikz,tkz-euclide}
\usetkzobj{all}
\begin{document}
\tikz{
\tkzDefPoints{0/0/A, 5/0/B}
\tkzDrawPoints(A,B)
\tkzLabelPoints(A,B)
\tkzDrawSegment(A,B)
}
\end{document}

我想让点变得A更大。我该怎么做?

答案1

如果你想修改单个点或点的子集您需要独立绘制不同风格的点,这允许您\tkzDrawPoints[<local options>](<name>)为该单个点(或点的子集)设置局部选项:

\documentclass[12pt,a4paper]{article}
\usepackage{tikz,tkz-euclide}
\usetkzobj{all}
\begin{document}
\tikz{
\tkzDefPoints{0/0/A, 5/0/B}
\tkzDrawPoints[size=20](A)
\tkzDrawPoints(B)
\tkzLabelPoints(A,B)
\tkzDrawSegment(A,B)
}
\end{document}

对于这两点使用:

\tkzDrawPoints[size=20](A,B)

enter image description here

如果你想修改所有后续要点您可以使用tkzSetUpPoint

...
\tkzSetUpPoint[size = 20]
\tkzDrawPoints(A,B)
...

答案2

您可以根据需要设置您的积分\tkzSetUpPoint[<drawing specifications>]

\documentclass[12pt,a4paper]{article}
\usepackage{tikz,tkz-euclide}
\usetkzobj{all}
\begin{document}

\tkzSetUpPoint[shape = circle, color = black,%
size = 12,fill = red]

\tikz{
\tkzDefPoints{0/0/A, 5/0/B}
\tkzDrawPoints(A,B)
\tkzLabelPoints(A,B)
\tkzDrawSegment(A,B)
}
\end{document}

enter image description here

相关内容