From 56709321ba20a6c5a4dc36d8d0c8b6c1e62a8591 Mon Sep 17 00:00:00 2001
From: Nao Pross <np@0hm.ch>
Date: Sat, 13 Apr 2024 02:24:04 +0200
Subject: Add midterm LaTeX source and PDF

---
 fig/generalized_plant.tex | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)
 create mode 100644 fig/generalized_plant.tex

(limited to 'fig/generalized_plant.tex')

diff --git a/fig/generalized_plant.tex b/fig/generalized_plant.tex
new file mode 100644
index 0000000..cbc3bf9
--- /dev/null
+++ b/fig/generalized_plant.tex
@@ -0,0 +1,40 @@
+\begin{tikzpicture}[
+      plant/.style = {
+        draw, thick,
+        minimum width = 1cm,
+        minimum height = 1cm,
+      },
+      arrow/.style = {
+        -latex, thick,
+      },
+    ]
+  \matrix [row sep = 4mm, nodes={plant}] {
+    \node [fill=red!10] (U) {$\Delta$}; \\
+    \node [fill=blue!10] (G) {$G$}; \\ 
+    \node [fill=green!10] (K) {$K$}; \\
+  };
+
+  \coordinate (Uz) at (U.west);
+  \coordinate (Uv) at (U.east);
+
+  \coordinate (Gz) at ($(G.north west) - (0, 2mm)$);
+  \coordinate (Ge) at (G.west);
+  \coordinate (Gy) at ($(G.south west) + (0, 2mm)$);
+
+  \coordinate (Gv) at ($(G.north east) - (0, 2mm)$);
+  \coordinate (Gw) at (G.east);
+  \coordinate (Gu) at ($(G.south east) + (0, 2mm)$);
+  
+  \coordinate (Ky) at (K.west);
+  \coordinate (Ku) at (K.east);
+
+  \begin{scope}[arrow]
+    \draw (Gz) -- ++(-1cm, 0) |- (Uz) node[left, pos=.25] {$z$};
+    \draw (Ge) -- ++(-1cm, 0) -- ++(-5mm, 0) node[left] {$e$};
+    \draw (Gy) -- ++(-1cm, 0) |- (Ky) node[left, pos=.25] {$y$};
+    
+    \draw (Uv) -- ++(1cm, 0) |- (Gv) node[right, pos=.25] {$v$};
+    \draw (Gw) ++(15mm, 0) node[right] {$w$} -- (Gw);
+    \draw (Ku) -- ++(1cm, 0) |- (Gu) node[right, pos=.25] {$u$};
+  \end{scope}
+\end{tikzpicture}
-- 
cgit v1.2.1

