Graphics, Figures & Tables ⇒ pentagram in tikzpicture
-
- Posts: 2
- Joined: Mon Jul 14, 2014 1:07 am
pentagram in tikzpicture
Thanks very much for any help.
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
pentagram in tikzpicture
Code: Select all
\documentclass[tikz,margin=5mm]{standalone}
\newcommand\Radius{2}
\begin{document}
\tikz\draw(90-144:\Radius)--(90:\Radius)--(90+144:\Radius)--
(90-72:\Radius)--(90+72:\Radius)--cycle;
\end{document}
Elke
-
- Posts: 2
- Joined: Mon Jul 14, 2014 1:07 am
Re: pentagram in tikzpicture
That's perfect.
Thanks very much.
Re: pentagram in tikzpicture
thank you for this nice solution. However I'm confused about where the coordinates start, or basically which would be point 0,0 as center of the circle. If I write your code twice in a row, I get another pentagram next to the first one, but I can't make sense of how tikz decides where to move the center from one pentagram to the next one. Apparently it's not the last point of "cycle" and not the point before that.
Can you point me to a tutorial on this or any manual page or something?
Thank you.
AC
- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
pentagram in tikzpicture
(0,0) is the center. Each image has certain dimensions. The images are simply placed next to each other, if you repeat it, no matter where (0,0) is.
Manual with tutorials included:

texdoc tikz
or texdoc pgf
at the command prompt of your computer.Stefan