From 91b8ce8dc214cfef2ed19b046c66d2e8e1ced720 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Thu, 28 Nov 2019 16:47:49 +0100 Subject: bugfix: \DTLforeach* iteration needs to be included in a group --- icite.dtx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/icite.dtx b/icite.dtx index 1deb242..57a9271 100644 --- a/icite.dtx +++ b/icite.dtx @@ -1321,6 +1321,7 @@ Running "make install" installs the files in the local TeX tree. \index{\@sortedauthor!\@sortedtitle}% \fi\fi% }{% + \bgroup% \DTLforeach*{icite@indices}{% \icite@subtype=subtype,\icite@index=index}{% \ifx\@subtype\icite@subtype% @@ -1333,7 +1334,8 @@ Running "make install" installs the files in the local TeX tree. \else% \index{\@sortedauthor!\@sortedtitle}% \fi\fi% - \fi}}% + \fi}% + \egroup}% \ifno@bibengine \ifx\@shorthand\empty% \@useauthor\ic@authtitdelim\TitleStyle{\@usetitle}% @@ -1353,6 +1355,7 @@ Running "make install" installs the files in the local TeX tree. \index{\@sortedauthor!\@sortedtitle!#1}% \fi\fi% }{% + \bgroup% \DTLforeach*{icite@indices}{% \icite@subtype=subtype,\icite@index=index}{% \ifx\@subtype\icite@subtype% @@ -1365,7 +1368,8 @@ Running "make install" installs the files in the local TeX tree. \else% \index{\@sortedauthor!\@sortedtitle!#1}% \fi\fi% - \fi}}% + \fi}% + \egroup}% \ifno@bibengine \ifx\@shorthand\empty% \@useauthor\ic@authtitdelim\TitleStyle{\@usetitle}% @@ -1385,6 +1389,7 @@ Running "make install" installs the files in the local TeX tree. \index{\@sortedauthor!\@sortedtitle!#2}% \fi\fi% }{% + \bgroup% \DTLforeach*{icite@indices}{% \icite@subtype=subtype,\icite@index=index}{% \ifx\@subtype\icite@subtype% @@ -1397,7 +1402,8 @@ Running "make install" installs the files in the local TeX tree. \else% \index{\@sortedauthor!\@sortedtitle!#2}% \fi\fi% - \fi}}% + \fi}% + \egroup}% \ifno@bibengine \ifx\@shorthand\empty% #1 \@useauthor\ic@authtitdelim\TitleStyle{\@usetitle}% -- cgit v1.2.3