From e1a7798f45cd37c0aa0bfaaef5f0acb4e48bc867 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Fri, 22 Jan 2021 03:00:46 +0000
Subject: CTAN sync 202101220300

---
 .../tkz-berge/examples/latex/hypercube_simple.tex  | 32 ++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 macros/latex/contrib/tkz/tkz-berge/examples/latex/hypercube_simple.tex

(limited to 'macros/latex/contrib/tkz/tkz-berge/examples/latex/hypercube_simple.tex')

diff --git a/macros/latex/contrib/tkz/tkz-berge/examples/latex/hypercube_simple.tex b/macros/latex/contrib/tkz/tkz-berge/examples/latex/hypercube_simple.tex
new file mode 100644
index 0000000000..8ae56a4875
--- /dev/null
+++ b/macros/latex/contrib/tkz/tkz-berge/examples/latex/hypercube_simple.tex
@@ -0,0 +1,32 @@
+% Author : Alain Matthes
+% Encoding : UTF8
+% Engine : PDFLaTeX
+\documentclass[]{article}
+\usepackage[utf8]{inputenc} 
+\usepackage[usenames,dvipsnames]{xcolor}
+\usepackage{fullpage}
+\usepackage[upright]{fourier}
+\usepackage{tkz-berge}
+\thispagestyle{empty}
+\begin{document}
+\SetVertexSimple
+\SetVertexNoLabel
+\begin{center}
+ \begin{tikzpicture}
+   \grCycle[RA=8]{8}
+   \pgfmathparse{8*(1-4*sin(22.5)*sin(22.5))}
+   \let\tkzbradius\pgfmathresult
+   \grCirculant[prefix=b,RA=\tkzbradius]{8}{3}
+\makeatletter
+   \foreach \vx in {0,...,7}{%
+     \pgfmathsetcounter{tkz@gr@n}{mod(\vx+1,8)}
+     \pgfmathsetcounter{tkz@gr@a}{mod(\vx+7,8)}
+     \pgfmathsetcounter{tkz@gr@b}{mod(\thetkz@gr@n+1,8)}
+     \Edge(a\thetkz@gr@n)(b\thetkz@gr@b)
+     \Edge(b\thetkz@gr@a)(a\vx)
+      }
+\makeatother
+\end{tikzpicture}
+\end{center}
+
+\end{document}
\ No newline at end of file
-- 
cgit v1.2.3

