5

For example let's draw a segment:

segment

The code for the 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}

I would like to make the point A bigger. How do I do that?

1
  • 1
    Tip: Put all your \tkzDrawPointss after all your \tkzDrawSegmentss. That way, your points appear on top of the lines instead of the other way around.
    – wchargin
    Dec 16, 2015 at 1:36

2 Answers 2

5

If you want to modify a single point or a subset of points you will need to plot the points of different style independently which allows you to set the local options \tkzDrawPoints[<local options>](<name>) for this single point (or a subset of points):

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

for both points use:

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

enter image description here

If you want to modify a all subsequent following points you can use tkzSetUpPoint

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

You can set up your points using \tkzSetUpPoint[<drawing specifications>] as required.

\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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .