From 6298ce25b9f2ba5a35c56f31f3cf8ca0979d1a8e Mon Sep 17 00:00:00 2001 From: Thorsten Glaser <thorsten.glaser@teckids.org> Date: Sun, 8 Jan 2017 03:42:31 +0100 Subject: [PATCH] [verein.git] Legende --- teckidscal.sty | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/teckidscal.sty b/teckidscal.sty index 6a6caff..5c8750d 100644 --- a/teckidscal.sty +++ b/teckidscal.sty @@ -25,6 +25,7 @@ \RequirePackage{pgfkeys,pgfcalendar,pgfeaster}% \RequirePackage{etoolbox}% \RequirePackage{stringstrings}% +\RequirePackage{tasks}% % Externe Makros: % \teckidscalprep{1}{2016}{12}{2016} @@ -349,6 +350,14 @@ \tkCalToks=\expandafter{\the\expandafter\tkCalToks \expandafter{\1}}% }% +\newcommand{\teckidsc@llegend}[1]{% + \fcolorbox{black}{teckidscal#1}{% + \color{black}\csname teckidscalcolour#1\endcsname{} /% + \color{teckidscal#1Label}% + {} \textbf{\teckidscalcolourLabel}% + }% +}% + \newcommand{\teckidscalrender}[1]{% \tkCalNumYr=\z@% \tkCalNumMon=\z@% @@ -557,18 +566,14 @@ Legende:\keinumbruch - \begin{itemize} - \@tempcnta=\z@% - \loop% - \item{\fcolorbox{black}{teckidscal\number\@tempcnta}{% - \color{black}\csname teckidscalcolour\number\@tempcnta\endcsname{} /% - \color{teckidscal\number\@tempcnta Label}% - {} \textbf{\teckidscalcolourLabel}% - }} - \ifnum\@tempcnta < 5% - \advance\@tempcnta by 1% - \repeat% - \end{itemize} + \begin{tasks}[label=$\bullet$](3) + \task{\teckidsc@llegend{0}} + \task{\teckidsc@llegend{3}} + \task{\teckidsc@llegend{2}} + \task{\teckidsc@llegend{1}} + \task{\teckidsc@llegend{4}} + \task{\teckidsc@llegend{5}} + \end{tasks} #1 \tkFNtext -- GitLab