misc/Kaffeeliste/Konsum/Konsum.tex

154 lines
3.5 KiB
TeX
Raw Normal View History

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% DATEI: Konsum.tex
% AUTOR: Gaetano Geck
%
% BESCHREIBUNG: Erzeugt eine Ankreuzliste für die Anzahl der Tassen zubereiteten
% Kaffees.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[a4paper]{scrartcl}
%\usepackage{luatex85}
%\usepackage{luaotfload}
%\usepackage[EU2]{fontenc}
\usepackage{lmodern}
\usepackage[left=0.5cm,right=0.5cm,top=1cm,bottom=1cm]{geometry}
\usepackage{tcolorbox}
\usepackage{pgffor}
\usepackage{ifthen}
\usepackage{amssymb}
\pagestyle{empty}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Daten (Vieltrinker, Gelegenheitstrinker)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input{Konsumenten.tex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% LAYOUT (Standardwerte)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\providecommand{\Name}[1]{\large\textbf{#1}}
\providecommand{\Blockseparator}{\quad}
\providecommand{\Zeilenseparator}{\\}
\providecommand{\Symbol}{$\Box$}
\providecommand{\Zeitraum}{??-?? ????}
\providecommand{\Info}{}
\providecommand{\Anzahl}[1]{\tiny #1}
2019-01-17 16:45:51 +01:00
\providecommand{\AnzahlGaeste}{7}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newenvironment{Titel}%
{%
\begin{center}%
\Huge%
}%
{%
\end{center}%
}
\newenvironment{Eintrag}[1][]%
{%
\begin{tcolorbox}%
[%
leftrule=5mm,%
colframe=gray!50!white,%
colback=white,%
boxsep=1mm,%
#1,%
]%
}%
{%
\end{tcolorbox}%
}
% \Kreuze
% #1: Anzahl der Zeilen (z)
% #2: Anzahl der Blöcke (b)
% #3: Blockgröße (g)
% --------------------------------------
\newcommand{\Kreuze}[3]{%
\foreach \zeile in {1,...,#1}{%
\foreach \block in {1,...,#2}{%
\foreach \eintrag in {1,...,#3}{%
\Symbol
}%
\Blockseparator
}%
\pgfmathparse{int(\zeile*#2*#3)}\Anzahl{\pgfmathresult}%
\ifthenelse{\equal{\zeile}{#1}}{}{\\[-0.0mm]}%
}%
}
\begin{document}
\sffamily
\begin{Titel}
\textbf{Kaffee} (\Zeitraum) \textbf{Coffee}
\end{Titel}
\vspace*{-8mm}%
\begin{center}\Info\end{center}
\foreach \name in \Unbeherrschte {%
\begin{Eintrag}%[colframe=gray!50!red]
\vspace*{-1.5mm}
\begin{minipage}[h]{3.0cm}
\Name{\name}
\end{minipage}
\begin{minipage}[h]{23cm}
\Kreuze{3}{8}{5}\vspace{-\baselineskip}
\end{minipage}
\vspace*{+1.5mm}
\end{Eintrag}
}%
\vspace*{1em}
\foreach \name in \Vieltrinker {%
\begin{Eintrag}%[colframe=gray!50!blue]
\begin{minipage}[h]{3.0cm}
\Name{\name}
\end{minipage}
\begin{minipage}[h]{23cm}
\vspace*{-6.0mm}
\Kreuze{2}{8}{5}\vspace{-\baselineskip}
\vspace*{-1.5mm}
\end{minipage}
\end{Eintrag}
\vspace*{-1mm}%
}%
\vspace*{1em}
\foreach \name in \Gelegenheitstrinker {%
\begin{Eintrag}
\begin{minipage}[h]{3.0cm}
\vspace*{-1mm}
\Name{\name}
\vspace*{-1mm}
\end{minipage}
\begin{minipage}[h]{23cm}
\vspace*{-6.0mm}
\Kreuze{1}{8}{5}\vspace{-\baselineskip}
\vspace*{-1.5mm}
\end{minipage}
\end{Eintrag}
\vspace*{-1mm}%
}%
\vfill
\textbf{Gäste/Guests/Add-ons}
\foreach \name in {1,...,\AnzahlGaeste} {%
\begin{Eintrag}[colframe=gray!70!green]%
\begin{minipage}[h]{3.0cm}%
\Huge ~%
\end{minipage}%
\begin{minipage}[h]{23cm}%
\vspace*{-5.0mm}%
\Kreuze{1}{8}{5}\vspace{-\baselineskip}%
\vspace*{-1.5mm}%
\end{minipage}%
\end{Eintrag}%
\vspace*{-2mm}%
}%
\end{document}