Fixed tables

This commit is contained in:
philipp lang 2022-05-15 18:57:58 +02:00
parent df008b485c
commit fff5a48d89
1 changed files with 34 additions and 18 deletions

View File

@ -1,7 +1,7 @@
\documentclass[a4paper,landscape]{article} \documentclass[a4paper,landscape]{article}
\usepackage[landscape,top=0cm,left=0cm,bottom=0cm,right=0cm]{geometry} \usepackage[landscape,top=0cm,left=0cm,bottom=0cm,right=0cm]{geometry}
\usepackage{tikz} \usepackage{tikz,ulem}
\usetikzlibrary{matrix} \usetikzlibrary{matrix}
\usetikzlibrary{backgrounds} \usetikzlibrary{backgrounds}
\usetikzlibrary{intersections} \usetikzlibrary{intersections}
@ -66,25 +66,27 @@
column 7/.style={ column 7/.style={
nodes={ nodes={
align=center, align=center,
text width=13em, text width=12.5em,
} }
}, },
row 1/.style={ row 1/.style={
nodes={ nodes={
draw=white, draw=white,
align=center,
} }
} }
} }
} }
\newcommand{\checkbox}[1]{\tikz[label distance=0.2cm]{\node[label={east:\large{#1}},draw,very thick,rectangle,text height=0.5cm,text width=0.5cm,inner sep=0cm] at (0,0) {};}} \newcommand{\checkbox}[1]{\tikz[label distance=0.2cm]{\node[label={east:\large{#1}},draw,very thick,rectangle,text height=0.5cm,text width=0.5cm,inner sep=0cm] at (0,0) {};}}
\newcommand{\checkedcheckbox}[1]{\tikz[label distance=0.2cm]{\node[label={east:\large{#1}},draw,very thick,rectangle,text height=0.5cm,text width=0.5cm,inner sep=0cm] at (0,0) {}; \draw (--0.25cm,0) -- (-0.25cm,0.5cm) (-0.25cm,0) -- (0.25cm,0.5cm); }}
\newcommand{\emptycheckbox}{\tikz{\node[text height=0.5cm,text width=0.5cm,inner sep=0cm] at (0,0) {};}} \newcommand{\emptycheckbox}{\tikz{\node[text height=0.5cm,text width=0.5cm,inner sep=0cm] at (0,0) {};}}
\begin{document} \sffamily \begin{document} \sffamily
\begin{tikzpicture}[outer] \begin{tikzpicture}[outer]
\path (current page.north west) ++(1cm,-1cm) coordinate (OL) -- (current page.north east) ++(-1cm,0cm) coordinate (OR) node[midway,below=0.5cm] {\textbf{TEILNEHMER - / INNENLISTE}}; \path (current page.north west) ++(1cm,-1cm) coordinate (OL) -- (current page.north east) ++(-1cm,0cm) coordinate (OR) node[midway,below=0.5cm] {\textbf{TEILNEHMER - / INNENLISTE}};
\matrix (options) at ($(OL)+(0.5cm,-1cm)$) [matrix of nodes, column sep=0cm,row sep=0.5cm,nodes in empty cells, every node/.style={inner sep=0cm,align=left,text width=6.2cm}, anchor=north west] { \matrix (options) at ($(OL)+(0.5cm,-1cm)$) [matrix of nodes, column sep=0cm,row sep=0.5cm,nodes in empty cells, every node/.style={inner sep=0cm,align=left,text width=6.2cm}, anchor=north west] {
\checkbox{Jugendbildungsmaßnahme} & \checkbox{Gruppenleiter/innenschulung} & \checkbox{Ferienkolonie} & \checkbox{Freizeitnaßnahme} \\ \checkedcheckbox{Jugendbildungsmaßnahme} & \checkbox{Gruppenleiter/innenschulung} & \checkbox{Ferienkolonie} & \checkbox{Freizeitnaßnahme} \\
\checkbox{Int. Jugendbegegnung} & \checkbox{politische Jugendbildung} & \checkbox{Projekte} & \emptycheckbox \\ \checkbox{Int. Jugendbegegnung} & \checkbox{politische Jugendbildung} & \checkbox{Projekte} & \emptycheckbox \\
}; };
\node[align=left,inner sep=0cm,anchor=west] at (options-2-4.west) {\tikz{\node[draw,very thick,rectangle,text height=0.5cm,text width=0.5cm,inner sep=0cm] (checkbox) at (0,0) {}; \draw[thick] (checkbox.south east) ++(0.2cm,0) -- (checkbox.south east -| options-2-4.south east);}}; \node[align=left,inner sep=0cm,anchor=west] at (options-2-4.west) {\tikz{\node[draw,very thick,rectangle,text height=0.5cm,text width=0.5cm,inner sep=0cm] (checkbox) at (0,0) {}; \draw[thick] (checkbox.south east) ++(0.2cm,0) -- (checkbox.south east -| options-2-4.south east);}};
@ -102,10 +104,9 @@
\draw[label={east:aaa}] (dateuntil.south east) -- (datefrom.south east -| options-2-3.south east) node[formfill] {23.06.2021}; \draw[label={east:aaa}] (dateuntil.south east) -- (datefrom.south east -| options-2-3.south east) node[formfill] {23.06.2021};
\path[fill=yellow] (datefrom.south -| OL) ++(0,-1.0) rectangle ($(datefrom.south -| OR) + (0,-1.5)$); \path[fill=yellow] (datefrom.south -| OL) ++(0,-1.0) rectangle ($(datefrom.south -| OR) + (0,-1.5)$);
\draw (datefrom.south) -- ++(4cm,-4cm);
\matrix at ($(datefrom.south west) + (0,-2.3cm)$) [table,below right] { \matrix (table) at ($(datefrom.south west) + (0,-2.3cm)$) [table,below right] {
Lfd. Nr. & Name / Vorname & Straße & PLZ & Wohnort & Geburtsjahr & Unterschrift \\ \uline{Lfd. Nr.} & \uline{Name / Vorname} & \uline{Straße} & \uline{PLZ} & \uline{Wohnort} & \uline{Geburtsjahr} & \uline{Unterschrift} \\
1 & Philipp Denise Ackermann & Friedenhoferstr 57a & 55555 & Solingen & 1990 & \\ 1 & Philipp Denise Ackermann & Friedenhoferstr 57a & 55555 & Solingen & 1990 & \\
1 & Philipp Denise Ackermann & Friedenhoferstr 57a & 55555 & Solingen & 1990 & \\ 1 & Philipp Denise Ackermann & Friedenhoferstr 57a & 55555 & Solingen & 1990 & \\
1 & Philipp Denise Ackermann & Friedenhoferstr 57a & 55555 & Solingen & 1990 & \\ 1 & Philipp Denise Ackermann & Friedenhoferstr 57a & 55555 & Solingen & 1990 & \\
@ -122,39 +123,54 @@
1 & Philipp Denise Ackermann & Friedenhoferstr 57a & 55555 & Solingen & 1990 & \\ 1 & Philipp Denise Ackermann & Friedenhoferstr 57a & 55555 & Solingen & 1990 & \\
}; };
% \draw[ultra thick] (OL) rectangle (current page.south east); \draw[ultra thick] (OL) rectangle (table.south east -| OR);
\end{tikzpicture} \end{tikzpicture}
\pagebreak[4] \pagebreak[4]
\begin{tikzpicture}[outer] \begin{tikzpicture}[outer]
\path (current page.north west) ++(1,-1) coordinate (OL) -- (current page.north east) node[midway,below=0.5cm] {\textbf{TEILNEHMER - / INNENLISTE}}; \path (current page.north west) ++(1cm,-1cm) coordinate (OL) -- (current page.north east) ++(-1cm,0cm) coordinate (OR) node[midway,below=0.5cm] {\textbf{TEILNEHMER - / INNENLISTE}};
\matrix[draw] (options) at ($(OL)+(0.5cm,-1cm)$) [matrix of nodes, column sep=0cm,row sep=0.5cm,nodes in empty cells, every node/.style={inner sep=0cm,align=left,text width=6.2cm}, anchor=north west] { \matrix (options) at ($(OL)+(0.5cm,-1cm)$) [matrix of nodes, column sep=0cm,row sep=0.5cm,nodes in empty cells, every node/.style={inner sep=0cm,align=left,text width=6.2cm}, anchor=north west] {
\checkbox{Jugendbildungsmaßnahme} & \checkbox{Gruppenleiter/innenschulung} & \checkbox{Ferienkolonie} & \checkbox{Freizeitnaßnahme} \\ \checkedcheckbox{Jugendbildungsmaßnahme} & \checkbox{Gruppenleiter/innenschulung} & \checkbox{Ferienkolonie} & \checkbox{Freizeitnaßnahme} \\
\checkbox{Int. Jugendbegegnung} & \checkbox{politische Jugendbildung} & \checkbox{Projekte} & \emptycheckbox \\ \checkbox{Int. Jugendbegegnung} & \checkbox{politische Jugendbildung} & \checkbox{Projekte} & \emptycheckbox \\
}; };
\node[align=left,inner sep=0cm,anchor=west] at (options-2-4.west) {\tikz{\node[draw,very thick,rectangle,text height=0.5cm,text width=0.5cm,inner sep=0cm] (checkbox) at (0,0) {}; \draw[thick] (checkbox.south east) ++(0.2cm,0) -- (checkbox.south east -| options-2-4.south east);}}; \node[align=left,inner sep=0cm,anchor=west] at (options-2-4.west) {\tikz{\node[draw,very thick,rectangle,text height=0.5cm,text width=0.5cm,inner sep=0cm] (checkbox) at (0,0) {}; \draw[thick] (checkbox.south east) ++(0.2cm,0) -- (checkbox.south east -| options-2-4.south east);}};
\node[anchor=north west] (org) at ($(options.south west)+(0cm,-0.5cm)$) {\large{Veranstalter:}}; \node[anchor=north west] (org) at ($(options.south west)+(0cm,-0.5cm)$) {\large{Veranstalter:}};
\draw[thick] (org.south east -| options-2-2.south west) -- (org.south east -| options-2-4.south east) node[pos=0.02,above=0.1cm] {\LARGE{aa}}; \draw (org.south east -| options-2-2.south west) -- (org.south east -| options-2-4.south east) node[formfill] {DPSG Stamm Silva Solingen Wald};
\node[anchor=north west] (title) at ($(org.south west)+(0cm,-0.5cm)$) {\large{Titel der Maßnahme:}}; \node[anchor=north west] (title) at ($(org.south west)+(0cm,-0.5cm)$) {\large{Titel der Maßnahme:}};
\draw[thick] (title.south east -| options-2-2.south west) -- (title.south east -| options-2-4.south east); \draw (title.south east -| options-2-2.south west) -- (title.south east -| options-2-4.south east) node[formfill] {Stammeslager};
\node[anchor=north west] (datefrom) at ($(title.south west)+(0cm,-0.5cm)$) {\large{Datum vom:}}; \node[anchor=north west] (datefrom) at ($(title.south west)+(0cm,-0.5cm)$) {\large{Datum vom:}};
\draw[thick] (datefrom.south east -| options-2-2.south west) -- ($(datefrom.south east -| options-2-2.south east) - (1,0cm)$); \draw (datefrom.south east -| options-2-2.south west) -- ($(datefrom.south east -| options-2-2.south east) - (1,0cm)$) node[formfill] {23.06.2021};
\node[anchor=south west] (dateuntil) at (options-2-3.south west |- datefrom.south west) {\large{bis:}}; \node[anchor=south west] (dateuntil) at (options-2-3.south west |- datefrom.south west) {\large{bis:}};
\draw[thick,label={east:aaa}] (dateuntil.south east) -- (datefrom.south east -| options-2-3.south east); \draw[label={east:aaa}] (dateuntil.south east) -- (datefrom.south east -| options-2-3.south east) node[formfill] {23.06.2021};
\path[fill=yellow] (datefrom.south -| current bounding box.north west) ++(0,-1.0) rectangle ($(datefrom.south -| current bounding box.south east) + (0,-1.5)$); \path[fill=yellow] (datefrom.south -| OL) ++(0,-1.0) rectangle ($(datefrom.south -| OR) + (0,-1.5)$);
\draw (datefrom.south) -- ++(4cm,-4cm); \matrix (table) at ($(datefrom.south west) + (0,-2.3cm)$) [table,below right] {
\uline{Lfd. Nr.} & \uline{Name / Vorname} & \uline{Straße} & \uline{PLZ} & \uline{Wohnort} & \uline{Geburtsjahr} & \uline{Unterschrift} \\
1 & Philipp Denise Ackermann & Friedenhoferstr 57a & 55555 & Solingen & 1990 & \\
1 & Philipp Denise Ackermann & Friedenhoferstr 57a & 55555 & Solingen & 1990 & \\
1 & Philipp Denise Ackermann & Friedenhoferstr 57a & 55555 & Solingen & 1990 & \\
1 & Philipp Denise Ackermann & Friedenhoferstr 57a & 55555 & Solingen & 1990 & \\
1 & Philipp Denise Ackermann & Friedenhoferstr 57a & 55555 & Solingen & 1990 & \\
1 & Philipp Denise Ackermann & Friedenhoferstr 57a & 55555 & Solingen & 1990 & \\
1 & Philipp Denise Ackermann & Friedenhoferstr 57a & 55555 & Solingen & 1990 & \\
1 & Philipp Denise Ackermann & Friedenhoferstr 57a & 55555 & Solingen & 1990 & \\
1 & Philipp Denise Ackermann & Friedenhoferstr 57a & 55555 & Solingen & 1990 & \\
1 & Philipp Denise Ackermann & Friedenhoferstr 57a & 55555 & Solingen & 1990 & \\
1 & Philipp Denise Ackermann & Friedenhoferstr 57a & 55555 & Solingen & 1990 & \\
1 & Philipp Denise Ackermann & Friedenhoferstr 57a & 55555 & Solingen & 1990 & \\
1 & Philipp Denise Ackermann & Friedenhoferstr 57a & 55555 & Solingen & 1990 & \\
1 & Philipp Denise Ackermann & Friedenhoferstr 57a & 55555 & Solingen & 1990 & \\
};
\draw[red,ultra thick] (current page.north west) rectangle (current page.south east); \draw[ultra thick] (OL) rectangle (table.south east -| OR);
\end{tikzpicture} \end{tikzpicture}
\end{document} \end{document}