Skip to content
Snippets Groups Projects
Commit da01fdc2 authored by mirabilos's avatar mirabilos
Browse files

[verein.git] render the year line (woah…)

parent 52d04bfe
No related branches found
No related tags found
No related merge requests found
...@@ -92,6 +92,7 @@ ...@@ -92,6 +92,7 @@
\gdef\tkFNtext{}% Fußnotentext \gdef\tkFNtext{}% Fußnotentext
\newcount\tkCalNumMon% Anzahl Monate (= Spalten / 3) \newcount\tkCalNumMon% Anzahl Monate (= Spalten / 3)
\newcount\tkCalNumYr% Jahrescolspantracker
\newtoks\tkCalToks% temporary token \newtoks\tkCalToks% temporary token
\newtoks\tkCalLineY% current year's line \newtoks\tkCalLineY% current year's line
...@@ -338,12 +339,17 @@ ...@@ -338,12 +339,17 @@
\tkCalToks=\expandafter{\the\expandafter\tkCalToks #1}% \tkCalToks=\expandafter{\the\expandafter\tkCalToks #1}%
}% }%
\newcommand{\tkAddTokp}[1]{%
\tkCalToks=\expandafter{\the\expandafter\tkCalToks \expandafter{#1}}%
}%
\newcommand{\tkAmdToks}[1]{% \newcommand{\tkAmdToks}[1]{%
\tkCalToks=\expandafter{\the\tkCalToks #1}% \tkCalToks=\expandafter{\the\tkCalToks #1}%
}% }%
\newcommand{\teckidscalrender}[1]{% \newcommand{\teckidscalrender}[1]{%
\tkCalNumMon=0% \tkCalNumYr=\z@%
\tkCalNumMon=\z@%
\tkCalLineY={}% \tkCalLineY={}%
\csname tkCalLine0\endcsname={}% \csname tkCalLine0\endcsname={}%
\csname tkCalLine1\endcsname={}% \csname tkCalLine1\endcsname={}%
...@@ -385,7 +391,14 @@ ...@@ -385,7 +391,14 @@
\tkFromJD{\tkjd}% \tkFromJD{\tkjd}%
\ifnum\@tempcnta=\tktmY\else% \ifnum\@tempcnta=\tktmY\else%
\ifnum\@tempcnta=\z@\else% \ifnum\@tempcnta=\z@\else%
% TODO: add colspan to tkCalLineY \tkCalToks={}%
\tkAmdToks{\multicolumn}%
\tkAddTokp{\number\tkCalNumYr}%
\tkAmdToks{{|c|}}%
\tkAddTokp{\number\@tempcnta}%
\tkAmdToks{\tkCalColsep}%
\tkCalLineY=\expandafter{\the\expandafter\tkCalLineY \the\tkCalToks}%
\tkCalNumYr=0%
\fi% \fi%
\@tempcnta=\tktmY% \@tempcnta=\tktmY%
\fi% \fi%
...@@ -399,6 +412,7 @@ ...@@ -399,6 +412,7 @@
\csname tkCalLine0\endcsname=\expandafter{\the\expandafter\expandafter\csname tkCalLine0\endcsname \the\tkCalToks}% \csname tkCalLine0\endcsname=\expandafter{\the\expandafter\expandafter\csname tkCalLine0\endcsname \the\tkCalToks}%
\@tempcntb=\tktmM% \@tempcntb=\tktmM%
\advance\tkCalNumMon by 1% \advance\tkCalNumMon by 1%
\advance\tkCalNumYr by 3%
\fi% \fi%
% %
\tkCalToks={}% \tkCalToks={}%
...@@ -439,9 +453,16 @@ ...@@ -439,9 +453,16 @@
\ifnum\tkjd < \tkcalend% \ifnum\tkjd < \tkcalend%
\advance\tkjd by 1% \advance\tkjd by 1%
\repeat% \repeat%
%
\tkCalToks={}%
\tkAmdToks{\multicolumn}%
\tkAddTokp{\number\tkCalNumYr}%
\tkAmdToks{{|c|}}%
\tkAddTokp{\number\@tempcnta}%
\tkCalLineY=\expandafter{\the\expandafter\tkCalLineY \the\tkCalToks}%
\begin{tabu} to \linewidth {|*{\the\tkCalNumMon}{rlX|}} \begin{tabu} to \linewidth {|*{\the\tkCalNumMon}{rlX|}}
\multicolumn{15}{|c|}{2016} & \multicolumn{24}{|c|}{2017} \\\hline \the\tkCalLineY\\\hline
\the\csname tkCalLine0\endcsname\\\hline \the\csname tkCalLine0\endcsname\\\hline
\the\csname tkCalLine1\endcsname\\\hline \the\csname tkCalLine1\endcsname\\\hline
\the\csname tkCalLine2\endcsname\\\hline \the\csname tkCalLine2\endcsname\\\hline
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment