diff --git a/src/HsH-report.cls b/src/HsH-report.cls index f3e2c272259f5cb4b11d11c311057f0544cbf362..2ea559fdfdc282bce50b0c6e2aac67d819bedc35 100644 --- a/src/HsH-report.cls +++ b/src/HsH-report.cls @@ -313,7 +313,8 @@ \if\@author\@empty\else\usekomafont{author}{\parbox{\dimexpr\linewidth}{\centering\@author}}\fi \else \if\@author\@empty\else - \foreach \x [count=\i,evaluate=\i as \y using {{\@matrikelnr}[\i-1]}] in \@author {\eaddtabtoks{\x & \y\protect\\}} + % sneeky comma needed after \@matrikelnr to deal with single item list + \foreach \x [count=\i,evaluate=\i as \y using {{\@matrikelnr,}[\i-1]}] in \@author {\eaddtabtoks{\x & \y\protect\\}} \usekomafont{author}{\begin{tabular}{l l}\printtabtoks\end{tabular}} \fi \fi}%