this is for holding javascript data
Wieland Brendel edited header.tex
almost 8 years ago
Commit id: c978d96f8f3fcde2679f4bc4118e39280f57afc9
deletions | additions
diff --git a/header.tex b/header.tex
index 6a876d7..eaea95a 100644
--- a/header.tex
+++ b/header.tex
...
\newcounter{staffRowCounter}
% define single rows programmatically
\newcommand\staffrow[6]{%
\gdef\serial{#1}%
\gdef\nameDegreePosition{#2}%
\gdef\scientificDisciplin{#3}%
\gdef\institute{#4}%
\gdef\participation{#5}%
\gdef\fundingSource{#6}%
\staffrowcond%
}
% category-specific staff
\newcommand\staffaddPhD{\gdef\category{PhD}\staffrow}
\newcommand\staffaddPostDoc{\gdef\category{PostDoc}\staffrow}
\newcommand\staffaddPI{\gdef\category{PI}\staffrow}
\newcommand\staffaddMD{\gdef\category{MD}\staffrow}
\newcommand\staffaddHiwi{\gdef\category{Hiwi}\staffrow}
\newcommand\staffaddnonscientific{\gdef\category{}\staffrow}
\newcommand\staffrowcond{% \newcommand\staffaddnonscientific{\staffrownonscience}
\newcommand\staffrow[6]{%
\addtocounter{staffRowCounter}{1}
&
\serial [1] &
\begin{tabular}[x]{@{}c@{}}
\nameDegreePosition\end{tabular} \cellbox{[2]} &
\cellbox{\scientificDisciplin} \cellbox{[3]} &
\cellbox{\institute} \cellbox{[4]} &
\participation [5] & \category &
\fundingSource [6] \tabularnewline
\cline{2-8}
}
\newcommand\staffrownonscience[6]{%
\addtocounter{staffRowCounter}{1}
& [1] & \cellbox{[2]} & \cellbox{[3]} & \cellbox{[4]} & [5] & \no & [6] \tabularnewline
\cline{2-8}
}
\newcommand\staffstartnonscientific{%
\addtocounter{staffRowCounter}{1}
\iflast\multirow{-\thestaffRowCounter}{*}{\parbox{2cm}{scientific \multirow{-\thestaffRowCounter}{*}{\parbox{2cm}{scientific \\
personel}}\fi personel}} & & & & & & & \tabularnewline
\hline
\setcounter{staffRowCounter}{0}
}
\newcommand\staffendnonscientific{%
\addtocounter{staffRowCounter}{1}
\iflast\multirow{-\thestaffRowCounter}{*}{\parbox{2cm}{non-scientific \multirow{-\thestaffRowCounter}{*}{\parbox{2cm}{non-scientific \\
personel}}\fi personel}} & & & & & & & \tabularnewline
\hline
\setcounter{staffRowCounter}{0}
}