diff --git a/teckidscal.sty b/teckidscal.sty index 6a6caff165726a949b58c679163c1f4aaad4f04a..5c8750d1e009be656d5833a74d2c4c3963eb8fbb 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