this is for holding javascript data
Wieland Brendel edited header.tex
almost 8 years ago
Commit id: d9f48468baf6204d184c32d8fe5f4db8160c2731
deletions | additions
diff --git a/header.tex b/header.tex
index 49828aa..6692f85 100644
--- a/header.tex
+++ b/header.tex
...
\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
}