From 7427c70d2f0c790c2792e7126a99861eb6663df9 Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Mon, 25 Feb 2019 20:05:41 +0100 Subject: defined \@sortedtitle --- icite.dtx | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/icite.dtx b/icite.dtx index cd2fd38..e6c9b14 100644 --- a/icite.dtx +++ b/icite.dtx @@ -279,26 +279,19 @@ Running "make install" installs the files in the local TeX tree. \def\@usetitle{\@indextitle}% \fi \ifx\@indexsorttitle\empty + \def\@sortedtitle{\@usetitle}% + \else + \def\@sortedtitle{{\@indexsorttitle}@\@usetitle}% + \fi \IfNoValueTF{#1}% - {\index{\get@bibentry{#3}{author}!\@usetitle}% - \csname #4\endcsname{#3}} - {\IfNoValueTF{#2}% - {\index{\get@bibentry{#3}{author}!\@usetitle!#1}% - \csname #4\endcsname[{#1}]{#3}} - {\index{\get@bibentry{#3}{author}!\@usetitle!#2}% - \csname #4\endcsname[#1][{#2}]{#3}}% - }% - \else% - \IfNoValueTF{#1}% - {\index{\get@bibentry{#3}{author}!{\@indexsorttitle}@\@usetitle}% + {\index{\get@bibentry{#3}{author}!\@sortedtitle}% \csname #4\endcsname{#3}} {\IfNoValueTF{#2}% - {\index{\get@bibentry{#3}{author}!{\@indexsorttitle}@\@usetitle!#1}% + {\index{\get@bibentry{#3}{author}!\@sortedtitle!#1}% \csname #4\endcsname[{#1}]{#3}} - {\index{\get@bibentry{#3}{author}!{\@indexsorttitle}@\@usetitle!#2}% + {\index{\get@bibentry{#3}{author}!\@sortedtitle!#2}% \csname #4\endcsname[#1][{#2}]{#3}}% }% - \fi% } % \end{macrocode} % \iffalse -- cgit v1.2.3