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 8233 times

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
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