I have a problem with this piece of latex code. I want to draw a not regular exagonal figure:
Code: Select all
\begin{tikzpicture}
\def\r{1.5}
\coordinate (1) at (0:\r);
\coordinate (2) at (60:\r);
\coordinate (3) at (120:\r);
\coordinate (4) at (180:\r);
\coordinate (5) at (240:\r);
\coordinate (6) at (300:\r);
\node (Origin1) at (3,0)[ ] {};
\draw (Origin1) +(1) to node [above right] {$j_1$} +(2)
to node [above] {$j_2$} +(3)
to node [left] {$j_3$} +(4)
to node [below left] {$j_4$} +(5);
\draw (Origin1) to node[above] {$j_6$} +(1);
\draw (Origin1) +(3) [dashed] to node[right] {$c$} (Origin1) ;
\draw (Origin1) +(5) to node[ right] {$j_5$} (Origin1) ;
\node (k1) at ($(Origin1) + (1)!.5!(3) $) [blue] {$k$};
\node (k2) at ($(Origin1) + (3)!.5!(5) $) [blue] {$k'$};
\end{tikzpicture}
Thanks!!