Wieland Brendel edited header.tex  almost 8 years ago

Commit id: d9f48468baf6204d184c32d8fe5f4db8160c2731

deletions | additions      

       

\newcounter{fundssinglestaff}  \newcounter{fundstotalstaff}  \newcount\ppnum  \newcommand\ppnumber[1]{%  \ppnum=#1\relax  \ifnum\ppnum<0  $-$%  \ppnum=-\ppnum  \fi  \let\pptemp\empty  \loop\ifnum\ppnum>999  \count255=\ppnum  \divide\ppnum by1000  \count255=\numexpr \count255 - 1000*\ppnum \relax  \edef\pptemp{,\ifnum\count255<100 0\ifnum\count255<10 0\fi\fi  \the\count255 \pptemp}%  \repeat  \the\ppnum  \pptemp  } \usepackage{siunitx}  \newcommand\fundsaddstaffcontinued[8]{%  \setcounter{fundssinglestaff}{0} 

\addtocounter{fundssinglestaff}{#6}  \addtocounter{fundssinglestaff}{#8}  \addtocounter{fundstotalstaff}{\thefundssinglestaff}   \cellbox{\position \\ (\length)} & #1 & #2 & #3 & #4 & #5 & #6 & #7 & #8 & \ppnumber{\thefundssinglestaff} \num[group-separator={,}]{\thefundssinglestaff}  \tabularnewline \hline  }