GeneralHow can I choose type of points?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Tran Van Toan
Posts: 23
Joined: Sat Oct 28, 2017 1:18 am

How can I choose type of points?

Post by Tran Van Toan »

How can I get type of points like this picture?
My code

Code: Select all

\documentclass[border=1.5mm,12pt]{standalone}
\usepackage{fouriernc}
\usepackage{tkz-euclide,amsmath}
\usetkzobj{all}
\begin{document}
\begin{tikzpicture}[line join=round]
\def\a{3}
\tkzDefPoint(0,0){A}
\tkzDefPoint(\a,0){B}
\tkzDefPoint(\a,\a){C}
\tkzDefPoint(0,\a){D}
\tkzDefPoint(\a/2,\a/2){O}
\tkzDrawPolygon[thick](A,B,C,D)
\tkzDefMidPoint(A,B)\tkzGetPoint{M}
\tkzDefPointsBy[rotation=center O angle 90](M,N,P){N,P,Q}
\tkzDrawSegments[thick](A,N B,P C,Q D,M)
\tkzInterLL(A,N)(D,M)
\tkzGetPoint{E}
\tkzDefPointsBy[rotation=center O angle 90](E,F,G){F,G,H}
\foreach \point/\position in {A/below,B/below,M/below,E/below,N/right,F/right,
   G/right,P/above,C/above,Q/left,H/left,D/above}
 {\fill[](\point) circle (1.5 pt);
   \node[\position=2pt] at (\point) {$\point$};
 }
\end{tikzpicture}
\end{document}
Attachments
ScreenHunter 187.png
ScreenHunter 187.png (13.66 KiB) Viewed 8328 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10358
Joined: Mon Mar 10, 2008 9:44 pm

How can I choose type of points?

Post by Stefan Kottwitz »

There's the \tkzSetUpPoint command for styling tkz-euclide points. However, points were manually drawn here. So one could add options there:

Code: Select all

\foreach \point/\position in {A/below,B/below,M/below,E/below,N/right,F/right,
   G/right,P/above,C/above,Q/left,H/left,D/above}
 {\fill[color=white,draw=black](\point) circle (1.5 pt);
   \node[\position=2pt] at (\point) {$\point$};
 }
Stefan
LaTeX.org admin
Tran Van Toan
Posts: 23
Joined: Sat Oct 28, 2017 1:18 am

How can I choose type of points?

Post by Tran Van Toan »

Thank you very much.
Post Reply