%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % 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 (Könige des Kaffees, Unbeherrschte, 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} \providecommand{\AnzahlGaeste}{5} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \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]}% }% } \newcommand{\Label}[2][]{% \ifstrempty{#1}{% \def\Farbe{gray}% }{% \def\Farbe{gray!50!red}% }% \hfill\textbf{\textcolor{\Farbe}{#2}} } \begin{document} \sffamily \begin{Titel} \textbf{Kaffee} (\Zeitraum) \textbf{Coffee} \end{Titel} \vspace*{-8mm}% \begin{center}\Info\end{center} % \Label[gray!50!red]{Kings of Coffee} % \foreach \name in \KingsOfCoffee {% % \begin{Eintrag}[colframe=gray!50!red] % \vspace*{-1.5mm} % \begin{minipage}[h]{3.0cm} % \Name{\name} % \end{minipage} % \begin{minipage}[h]{23cm} % \Kreuze{4}{8}{5}\vspace{-\baselineskip} % \end{minipage} % \vspace*{+2.4mm} % \end{Eintrag} % }% % \Label{Unbeherrschte} \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*{.5em} % \Label{Vieltrinker} \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} % \Label{Gelegenheitstrinker} \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}