From ada53a9c225b896c8d7608300427aac475bb7045 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <andreas.mueller@ost.ch>
Date: Tue, 9 Feb 2021 21:52:16 +0100
Subject: move all iamges to separate files

---
 buch/chapters/70-graphen/beschreibung.tex    |  21 +--------------
 buch/chapters/70-graphen/images/Makefile     |  10 +++++++
 buch/chapters/70-graphen/images/peterson.pdf | Bin 0 -> 10833 bytes
 buch/chapters/70-graphen/images/peterson.tex |  38 +++++++++++++++++++++++++++
 4 files changed, 49 insertions(+), 20 deletions(-)
 create mode 100644 buch/chapters/70-graphen/images/Makefile
 create mode 100644 buch/chapters/70-graphen/images/peterson.pdf
 create mode 100644 buch/chapters/70-graphen/images/peterson.tex

(limited to 'buch/chapters/70-graphen')

diff --git a/buch/chapters/70-graphen/beschreibung.tex b/buch/chapters/70-graphen/beschreibung.tex
index 6e8e59b..2dcc78f 100644
--- a/buch/chapters/70-graphen/beschreibung.tex
+++ b/buch/chapters/70-graphen/beschreibung.tex
@@ -236,26 +236,7 @@ sind.
 \begin{beispiel}
 \begin{figure}
 \centering
-\begin{tikzpicture}[>=latex,thick]
-\def\l{0.25}
-\def\r{1}
-\def\punkt#1{({\r*sin(((#1)-1)*72)},{\r*cos(((#1)-1)*72)})}
-\def\R{2}
-\def\Punkt#1{({\R*sin(((#1)-6)*72)},{\R*cos(((#1)-6)*72)})}
-\draw \Punkt{6} -- \Punkt{7} -- \Punkt{8} -- \Punkt{9} -- \Punkt{10} -- cycle;
-\draw \punkt{1} -- \punkt{3} -- \punkt{5} -- \punkt{2} -- \punkt{4} -- cycle;
-\foreach \k in {1,...,5}{
-	\draw \punkt{\k} -- \Punkt{(\k+5)};
-	\fill[color=white] \punkt{\k} circle[radius=\l];
-	\node at \punkt{\k} {$\k$};
-	\draw \punkt{\k} circle[radius=\l];
-}
-\foreach \k in {6,...,10}{
-	\fill[color=white] \Punkt{\k} circle[radius=\l];
-	\node at \Punkt{\k} {$\k$};
-	\draw \Punkt{\k} circle[radius=\l];
-}
-\end{tikzpicture}
+\includegraphics{chapters/70-graphen/images/peterson.pdf}
 \caption{Peterson-Graph mit zehn Knoten.
 \label{buch:figure:peterson}}
 \end{figure}
diff --git a/buch/chapters/70-graphen/images/Makefile b/buch/chapters/70-graphen/images/Makefile
new file mode 100644
index 0000000..2199ddc
--- /dev/null
+++ b/buch/chapters/70-graphen/images/Makefile
@@ -0,0 +1,10 @@
+#
+# Makefile -- Bilder für Kapitel Graphen
+#
+# (c) 2021 Prof Dr Andreas Müller, OST Ostschweizer Fachhochschule
+#
+all:	peterson.pdf
+
+peterson.pdf:	peterson.tex
+	pdflatex peterson.tex
+
diff --git a/buch/chapters/70-graphen/images/peterson.pdf b/buch/chapters/70-graphen/images/peterson.pdf
new file mode 100644
index 0000000..259d808
Binary files /dev/null and b/buch/chapters/70-graphen/images/peterson.pdf differ
diff --git a/buch/chapters/70-graphen/images/peterson.tex b/buch/chapters/70-graphen/images/peterson.tex
new file mode 100644
index 0000000..c0af98b
--- /dev/null
+++ b/buch/chapters/70-graphen/images/peterson.tex
@@ -0,0 +1,38 @@
+%
+% tikztemplate.tex -- template for standalon tikz images
+%
+% (c) 2021 Prof Dr Andreas Müller, OST Ostschweizer Fachhochschule
+%
+\documentclass[tikz]{standalone}
+\usepackage{amsmath}
+\usepackage{times}
+\usepackage{txfonts}
+\usepackage{pgfplots}
+\usepackage{csvsimple}
+\usetikzlibrary{arrows,intersections,math}
+\begin{document}
+\def\skala{1}
+\begin{tikzpicture}[>=latex,thick,scale=\skala]
+
+\def\l{0.25}
+\def\r{1}
+\def\punkt#1{({\r*sin(((#1)-1)*72)},{\r*cos(((#1)-1)*72)})}
+\def\R{2}
+\def\Punkt#1{({\R*sin(((#1)-6)*72)},{\R*cos(((#1)-6)*72)})}
+\draw \Punkt{6} -- \Punkt{7} -- \Punkt{8} -- \Punkt{9} -- \Punkt{10} -- cycle;
+\draw \punkt{1} -- \punkt{3} -- \punkt{5} -- \punkt{2} -- \punkt{4} -- cycle;
+\foreach \k in {1,...,5}{
+	\draw \punkt{\k} -- \Punkt{(\k+5)};
+	\fill[color=white] \punkt{\k} circle[radius=\l];
+	\node at \punkt{\k} {$\k$};
+	\draw \punkt{\k} circle[radius=\l];
+}
+\foreach \k in {6,...,10}{
+	\fill[color=white] \Punkt{\k} circle[radius=\l];
+	\node at \Punkt{\k} {$\k$};
+	\draw \Punkt{\k} circle[radius=\l];
+}
+
+\end{tikzpicture}
+\end{document}
+
-- 
cgit v1.2.1