aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2024-12-14 17:01:38 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2024-12-14 17:01:38 +0100
commit362a954add901904cf1234b96d84debb9262c556 (patch)
treedc60f08c6d045dcc8fc677595c277042bef6b60e /templates
downloadspgen-362a954add901904cf1234b96d84debb9262c556.tar.gz
spgen-362a954add901904cf1234b96d84debb9262c556.zip
add initial commit
Diffstat (limited to 'templates')
-rw-r--r--templates/4x(2,5).tex61
1 files changed, 61 insertions, 0 deletions
diff --git a/templates/4x(2,5).tex b/templates/4x(2,5).tex
new file mode 100644
index 0000000..6595936
--- /dev/null
+++ b/templates/4x(2,5).tex
@@ -0,0 +1,61 @@
+\documentclass{standalone}
+\usepackage{tikz}
+\usetikzlibrary{calc}
+\usepackage{etoolbox}
+
+%%defs
+
+\pgfmathsetmacro\fourthRow{8}
+\pgfmathsetmacro\thirdRow{6}
+\pgfmathsetmacro\secondRow{4}
+\pgfmathsetmacro\firstRow{2}
+
+\pgfmathsetmacro\leftRows{2}
+\pgfmathsetmacro\rightRows{16}
+
+\pgfmathsetmacro\tableWidth{2}
+
+\begin{document}
+\begin{tikzpicture}[table/.style={draw, minimum height=1cm, minimum width=\tableWidth{}cm}]
+
+ \node[table] at (\rightRows, 0) {Pult};
+
+ \node at (8, 0) {\csuse{duration}};
+
+ \node[table] at (\rightRows, \firstRow) {\csuse{name1}};
+ \node[table] at ($(\rightRows, \firstRow) - (1*\tableWidth, 0)$) {\csuse{name2}};
+ \node[table] at ($(\rightRows, \firstRow) - (2*\tableWidth, 0)$) {\csuse{name3}};
+ \node[table] at ($(\rightRows, \firstRow) - (3*\tableWidth, 0)$) {\csuse{name4}};
+ \node[table] at ($(\rightRows, \firstRow) - (4*\tableWidth, 0)$) {\csuse{name5}};
+
+ \node[table] at (\rightRows, \secondRow) {\csuse{name6}};
+ \node[table] at ($(\rightRows, \secondRow) - (1*\tableWidth, 0)$) {\csuse{name7}};
+ \node[table] at ($(\rightRows, \secondRow) - (2*\tableWidth, 0)$) {\csuse{name8}};
+ \node[table] at ($(\rightRows, \secondRow) - (3*\tableWidth, 0)$) {\csuse{name9}};
+ \node[table] at ($(\rightRows, \secondRow) - (4*\tableWidth, 0)$) {\csuse{name10}};
+
+ \node[table] at (\rightRows, \thirdRow) {\csuse{name11}};
+ \node[table] at ($(\rightRows, \thirdRow) - (1*\tableWidth, 0)$) {\csuse{name12}};
+ \node[table] at ($(\rightRows, \thirdRow) - (2*\tableWidth, 0)$) {\csuse{name13}};
+ \node[table] at ($(\rightRows, \thirdRow) - (3*\tableWidth, 0)$) {\csuse{name14}};
+ \node[table] at ($(\rightRows, \thirdRow) - (4*\tableWidth, 0)$) {\csuse{name15}};
+
+ \node[table] at (\rightRows, \fourthRow) {\csuse{name28}}; % Last used seat
+ \node[table] at ($(\rightRows, \fourthRow) - (1*\tableWidth, 0)$) {\csuse{name17}};
+ \node[table] at ($(\rightRows, \fourthRow) - (2*\tableWidth, 0)$) {\csuse{name18}};
+ \node[table] at ($(\rightRows, \fourthRow) - (3*\tableWidth, 0)$) {\csuse{name19}};
+ \node[table] at ($(\rightRows, \fourthRow) - (4*\tableWidth, 0)$) {\csuse{name20}};
+
+ \node[table] at ($(\leftRows, \fourthRow) - (0*\tableWidth, 0)$) {\csuse{name21}};
+ \node[table] at ($(\leftRows, \fourthRow) - (1*\tableWidth, 0)$) {\csuse{name22}};
+
+ \node[table] at ($(\leftRows, \thirdRow) - (0*\tableWidth, 0)$) {\csuse{name23}};
+ \node[table] at ($(\leftRows, \thirdRow) - (1*\tableWidth, 0)$) {\csuse{name24}};
+
+ \node[table] at ($(\leftRows, \secondRow) - (0*\tableWidth, 0)$) {\csuse{name25}};
+ \node[table] at ($(\leftRows, \secondRow) - (1*\tableWidth, 0)$) {\csuse{name26}};
+
+ \node[table] at ($(\leftRows, \firstRow) - (0*\tableWidth, 0)$) {\csuse{name27}};
+ \node[table] at ($(\leftRows, \firstRow) - (1*\tableWidth, 0)$) {\csuse{name16}};
+\end{tikzpicture}
+\end{document}