From 15b30aec5745350d5d36694c4ee1a4fe4407b2f0 Mon Sep 17 00:00:00 2001 From: Gaetano Date: Sat, 12 May 2018 21:51:29 +0200 Subject: [PATCH] =?UTF-8?q?[Kaffeeliste]=20Erg=C3=A4nze=20LaTeX-Datei=20f?= =?UTF-8?q?=C3=BCr=20Konsumprotokoll.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Kaffeeliste/Konsum/Konsum.tex | 153 +++++++++++++++++++++++++++++ Kaffeeliste/Konsum/Konsumenten.tex | 28 ++++++ 2 files changed, 181 insertions(+) create mode 100644 Kaffeeliste/Konsum/Konsum.tex create mode 100644 Kaffeeliste/Konsum/Konsumenten.tex diff --git a/Kaffeeliste/Konsum/Konsum.tex b/Kaffeeliste/Konsum/Konsum.tex new file mode 100644 index 0000000..be6838a --- /dev/null +++ b/Kaffeeliste/Konsum/Konsum.tex @@ -0,0 +1,153 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% 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} +\providecommand{\AnzahlGaeste}{6} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\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{2}{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} diff --git a/Kaffeeliste/Konsum/Konsumenten.tex b/Kaffeeliste/Konsum/Konsumenten.tex new file mode 100644 index 0000000..9de0a90 --- /dev/null +++ b/Kaffeeliste/Konsum/Konsumenten.tex @@ -0,0 +1,28 @@ +\providecommand{\Zeitraum}{Juni 2018} +\providecommand{\Info}{30 Cent pro Tasse} + +\newcommand{\Unbeherrschte}{% +} + +\newcommand{\Vieltrinker}{% + Arthur,% + Christopher,% + Gaetano,% + Jannis,% + Marco,% + Peter,% + Steffen,% + Thomas,% + Wolfgang +} + +\newcommand{\Gelegenheitstrinker}{% + Diana,% + Gaby,% + Ismail,% + Jos,% + Lena,% + Philipp,% + Richard,% + Tanja +}