this is for holding javascript data
Wieland Brendel edited header.tex
almost 8 years ago
Commit id: a856b62b3b99355035086e697ebc18b348bb5adc
deletions | additions
diff --git a/header.tex b/header.tex
index 15a8137..6f348e1 100644
--- a/header.tex
+++ b/header.tex
...
\hline}
{\hline\end{tabularx}\endgroup\end{small}}
% define header and footer of table
%\def\startfunds{%
% \begin{small}
% \begin{tabularx}{\textwidth}{ |G|c|c|c|c|c|c|c|c|c| }
% \hline \rowcolor{FreshGray}
% & \multicolumn{2}{|c|}{2017} & \multicolumn{2}{|c|}{2018} & \multicolumn{2}{|c|}{2019} & \multicolumn{2}{|c|}{2020} & {Total (Eur)} \\
% \hline \rowcolor{FreshGray}
% \textbf{Staff} & \# & Sum & \# & Sum & \# & Sum & \# & Sum & \ Sum \\
% \hline
% }
%\def\endfunds{\hline\end{tabularx}\endgroup\end{small}}
%----------------------------------------------------------------------------------------
% DIRECT COST TABLE
%----------------------------------------------------------------------------------------
\newcounter{directtotalfirst}
\newcounter{directtotalsecond}
\newcounter{directtotalthird}
\newcounter{directtotalfourth}
\newcommand\directaddexisting[5]{%
\addtocounter{directtotalfirst}{#2}
\addtocounter{directtotalsecond}{#3}
\addtocounter{directtotalthird}{#4}
\addtocounter{directtotalfourth}{#5}
\no \cellbox{#1} & #2 & #3 & #4 & #5 \\
\hline
}
...
\hhline{|-|-|-|-|-|}
\multicolumn{5}{|c|}{\no} \\
\hhline{|-|-|-|-|-|}
\multicolumn{1}{|l|}{\no Sum of existing resources} &
1.500.000 \thedirecttotalfirst &
1.500.000 \thedirecttotalsecond &
1.500.000 \thedirecttotalthird &
1.500.000 \thedirecttotalfourth \\
}
\newcommand\directaddrequested[4]{%
...
% we need the following hack for equal cell widths
\multicolumn{1}{l}{} & \multicolumn{1}{l}{{\color{white} white space}} & \multicolumn{1}{l}{{\color{white} white space}} & \multicolumn{1}{l}{{\color{white} white space}} & \multicolumn{1}{l}{{\color{white} white space}} \\
\end{tabularx}
}
%\def\startdirect{%
% \begin{tabularx}{\textwidth}{ |X|c|c|c|c| }
% %\cline{2-6}
% \hhline{~-|-|-|-|}
% \multicolumn{1}{l|}{} &\no 2017 &\no 2018 &\no 2019 &\no 2020\\
% \hline
% }
%\def\enddirect{%
% \hline
% we need the following hack for equal cell widths
% \multicolumn{1}{l}{} & \multicolumn{1}{l}{{\color{white} white space}} & \multicolumn{1}{l}{{\color{white} white space}} & \multicolumn{1}{l}{{\color{white} white space}} & \multicolumn{1}{l}{{\color{white} white space}} \\
% \end{tabularx}
% }