aboutsummaryrefslogtreecommitdiff
path: root/templates/4x(2,5).tex
blob: 65959369f1096d7f63e1994d5670bfcbc93f9280 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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}