24 lines
577 B
TeX
24 lines
577 B
TeX
\newcommand{\point}[3]{
|
|
\node [label=#3:$#1$] (#1) at #2 {};
|
|
}
|
|
|
|
\begin{tikzpicture}[]
|
|
\begin{scope}[every node/.style={fill=black, shape=circle, inner sep=1pt}]
|
|
\point{a}{(0,1)}{left}
|
|
\point{b}{(1,2)}{above}
|
|
\point{c}{(2,1)}{above right}
|
|
\point{d}{(1,0)}{below}
|
|
|
|
\point{e}{(4,1)}{above left}
|
|
\point{f}{(5,2)}{above}
|
|
\point{g}{(6,1)}{right}
|
|
\point{h}{(5,0)}{below}
|
|
\end{scope}
|
|
|
|
\draw (a) -- (b) -- (c) -- (d) -- (a);
|
|
\draw (e) -- (f) -- (g) -- (h) -- (e);
|
|
\draw (b) -- (f);
|
|
\draw (c) -- (e);
|
|
\draw (d) -- (h);
|
|
|
|
\end{tikzpicture} |