LaTeX forum ⇒ GeneralHow can I choose type of points? Topic is solved

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

How can I choose type of points?

Postby Tran Van Toan » Thu Aug 02, 2018 6:19 pm

How can I get type of points like this picture?
My code
  1. \documentclass[border=1.5mm,12pt]{standalone}
  2. \usepackage{fouriernc}
  3. \usepackage{tkz-euclide,amsmath}
  4. \usetkzobj{all}
  5. \begin{document}
  6. \begin{tikzpicture}[line join=round]
  7. \def\a{3}
  8. \tkzDefPoint(0,0){A}
  9. \tkzDefPoint(\a,0){B}
  10. \tkzDefPoint(\a,\a){C}
  11. \tkzDefPoint(0,\a){D}
  12. \tkzDefPoint(\a/2,\a/2){O}
  13. \tkzDrawPolygon[thick](A,B,C,D)
  14. \tkzDefMidPoint(A,B)\tkzGetPoint{M}
  15. \tkzDefPointsBy[rotation=center O angle 90](M,N,P){N,P,Q}
  16. \tkzDrawSegments[thick](A,N B,P C,Q D,M)
  17. \tkzInterLL(A,N)(D,M)
  18. \tkzGetPoint{E}
  19. \tkzDefPointsBy[rotation=center O angle 90](E,F,G){F,G,H}
  20. \foreach \point/\position in {A/below,B/below,M/below,E/below,N/right,F/right,
  21. G/right,P/above,C/above,Q/left,H/left,D/above}
  22. {\fill[](\point) circle (1.5 pt);
  23. \node[\position=2pt] at (\point) {$\point$};
  24. }
  25. \end{tikzpicture}
  26. \end{document}
Attachments
ScreenHunter 187.png
ScreenHunter 187.png (13.66 KiB) Viewed 137 times

Tags:

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

Postby Stefan Kottwitz » Sun Aug 05, 2018 6:12 pm

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

  1. \foreach \point/\position in {A/below,B/below,M/below,E/below,N/right,F/right,
  2. G/right,P/above,C/above,Q/left,H/left,D/above}
  3. {\fill[color=white,draw=black](\point) circle (1.5 pt);
  4. \node[\position=2pt] at (\point) {$\point$};
  5. }


Stefan
Site admin

Tran Van Toan
Posts: 23
Joined: Sat Oct 28, 2017 1:18 am

Postby Tran Van Toan » Mon Aug 06, 2018 5:59 pm

Thank you very much.


Return to “General”

Who is online

Users browsing this forum: Majestic-12 [Bot], marcocintra and 13 guests