aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--icite.dtx23
1 files changed, 20 insertions, 3 deletions
diff --git a/icite.dtx b/icite.dtx
index 8c843c8..e3acb10 100644
--- a/icite.dtx
+++ b/icite.dtx
@@ -1016,6 +1016,7 @@ Running "make install" installs the files in the local TeX tree.
1016\define@reuse@key{indextitle} 1016\define@reuse@key{indextitle}
1017\define@reuse@key{indexsorttitle} 1017\define@reuse@key{indexsorttitle}
1018\define@reuse@key{entrysubtype} 1018\define@reuse@key{entrysubtype}
1019\define@reuse@key{shorthand}
1019% \end{macrocode} 1020% \end{macrocode}
1020% This is the same as \cs{usebibentry} from \package{ebib}, but it 1021% This is the same as \cs{usebibentry} from \package{ebib}, but it
1021% does not return an error if the entry field is not found: 1022% does not return an error if the entry field is not found:
@@ -1063,6 +1064,7 @@ Running "make install" installs the files in the local TeX tree.
1063% qualified citation lists or so-called \enquote*{multicite} commands. 1064% qualified citation lists or so-called \enquote*{multicite} commands.
1064% \begin{macrocode} 1065% \begin{macrocode}
1065\NewDocumentCommand{\icite}{o o m O{\ic@dfltcit}}{% 1066\NewDocumentCommand{\icite}{o o m O{\ic@dfltcit}}{%
1067 \edef\@shorthand{\get@bibentry{#3}{shorthand}}%
1066 \edef\@subtype{\get@bibentry{#3}{entrysubtype}}% 1068 \edef\@subtype{\get@bibentry{#3}{entrysubtype}}%
1067 \edef\@author{\get@bibentry{#3}{author}}% 1069 \edef\@author{\get@bibentry{#3}{author}}%
1068 \edef\@indexauthor{\get@bibentry{#3}{indexauthor}}% 1070 \edef\@indexauthor{\get@bibentry{#3}{indexauthor}}%
@@ -1117,7 +1119,12 @@ Running "make install" installs the files in the local TeX tree.
1117 \index{\@sortedauthor!\@sortedtitle}% 1119 \index{\@sortedauthor!\@sortedtitle}%
1118 \fi\fi% 1120 \fi\fi%
1119 \fi}} 1121 \fi}}
1120 \ifno@bibengine\@useauthor, \TitleStyle{\@usetitle}% 1122 \ifno@bibengine
1123 \ifx\@shorthand\empty%
1124 \@useauthor, \TitleStyle{\@usetitle}%
1125 \else%
1126 \@shorthand%
1127 \fi%
1121 \else% 1128 \else%
1122 \csname #4\endcsname{#3}% 1129 \csname #4\endcsname{#3}%
1123 \fi% 1130 \fi%
@@ -1144,7 +1151,12 @@ Running "make install" installs the files in the local TeX tree.
1144 \index{\@sortedauthor!\@sortedtitle!#1}% 1151 \index{\@sortedauthor!\@sortedtitle!#1}%
1145 \fi\fi% 1152 \fi\fi%
1146 \fi}}% 1153 \fi}}%
1147 \ifno@bibengine\@useauthor, \TitleStyle{\@usetitle}, {#1}% 1154 \ifno@bibengine
1155 \ifx\@shorthand\empty%
1156 \@useauthor, \TitleStyle{\@usetitle}, {#1}%
1157 \else%
1158 \@shorthand, {#1}%
1159 \fi%
1148 \else% 1160 \else%
1149 \csname #4\endcsname[{#1}]{#3}% 1161 \csname #4\endcsname[{#1}]{#3}%
1150 \fi% 1162 \fi%
@@ -1170,7 +1182,12 @@ Running "make install" installs the files in the local TeX tree.
1170 \index{\@sortedauthor!\@sortedtitle!#2}% 1182 \index{\@sortedauthor!\@sortedtitle!#2}%
1171 \fi\fi% 1183 \fi\fi%
1172 \fi}}% 1184 \fi}}%
1173 \ifno@bibengine #1 \@useauthor, \TitleStyle{\@usetitle}, {#2}% 1185 \ifno@bibengine
1186 \ifx\@shorthand\empty%
1187 #1 \@useauthor, \TitleStyle{\@usetitle}, {#2}%
1188 \else%
1189 #1 \@shorthand, {#2}%
1190 \fi
1174 \else% 1191 \else%
1175 \csname #4\endcsname[#1][{#2}]{#3}% 1192 \csname #4\endcsname[#1][{#2}]{#3}%
1176 \fi% 1193 \fi%