aboutsummaryrefslogtreecommitdiff
path: root/icite.dtx
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2019-03-14 15:19:53 +0100
committerRobert Alessi <alessi@robertalessi.net>2019-03-14 15:19:53 +0100
commit0e9519fa29b1c9c5abe2fe50bd53e253b65684fe (patch)
tree8c8a09668a0dc42f1817689408cefbafb7bc0961 /icite.dtx
parent9519935e55fb341e745c532e43d80ff99ff93712 (diff)
downloadicite-0e9519fa29b1c9c5abe2fe50bd53e253b65684fe.tar.gz
not-a-bugfix: biblatex citation commands cannot be found inside \if ... \fi, otherwise autopunct becomes inoperative
Diffstat (limited to 'icite.dtx')
-rw-r--r--icite.dtx17
1 files changed, 13 insertions, 4 deletions
diff --git a/icite.dtx b/icite.dtx
index 6415227..2b63455 100644
--- a/icite.dtx
+++ b/icite.dtx
@@ -194,6 +194,7 @@ Running "make install" installs the files in the local TeX tree.
194\documentclass{ltxdoc} 194\documentclass{ltxdoc}
195\usepackage{filecontents} 195\usepackage{filecontents}
196\begin{filecontents*}{\jobname.xdy} 196\begin{filecontents*}{\jobname.xdy}
197(merge-rule "\*" "" :eregexp)
197(markup-locclass-list :open "\tabto{3.5cm}" :sep ", ") 198(markup-locclass-list :open "\tabto{3.5cm}" :sep ", ")
198\end{filecontents*} 199\end{filecontents*}
199\begin{filecontents*}{\jobname.bib} 200\begin{filecontents*}{\jobname.bib}
@@ -416,7 +417,7 @@ Running "make install" installs the files in the local TeX tree.
416%</driver> 417%</driver>
417% \fi 418% \fi
418% 419%
419% \CheckSum{316} 420% \CheckSum{0}
420% 421%
421% \CharacterTable 422% \CharacterTable
422% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z 423% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -1028,6 +1029,11 @@ Running "make install" installs the files in the local TeX tree.
1028\RequirePackage{datatool} 1029\RequirePackage{datatool}
1029\RequirePackage{usebib} 1030\RequirePackage{usebib}
1030% \end{macrocode} 1031% \end{macrocode}
1032% If |nobibengine| is set to true, then \cs{ic@dfltcit} will be
1033% redefined by \cs{icite} to \cs{ic@nullcmd} which does nothing.
1034% \begin{macrocode}
1035\NewDocumentCommand{\ic@nullcmd}{O{}O{}m}{}
1036% \end{macrocode}
1031% Define fields to be used by \package{icite}: 1037% Define fields to be used by \package{icite}:
1032% \begin{macrocode} 1038% \begin{macrocode}
1033\define@reuse@key{author} 1039\define@reuse@key{author}
@@ -1086,6 +1092,9 @@ Running "make install" installs the files in the local TeX tree.
1086% qualified citation lists or so-called \enquote*{multicite} commands. 1092% qualified citation lists or so-called \enquote*{multicite} commands.
1087% \begin{macrocode} 1093% \begin{macrocode}
1088\NewDocumentCommand{\icite}{o o m O{\ic@dfltcit}}{% 1094\NewDocumentCommand{\icite}{o o m O{\ic@dfltcit}}{%
1095 \edef\ic@argiv{#4}%
1096 \edef\ic@null{ic@nullcmd}%
1097 \ifno@bibengine\let\ic@argiv\ic@null\else\fi%
1089 \edef\@shorthand{\get@bibentry{#3}{shorthand}}% 1098 \edef\@shorthand{\get@bibentry{#3}{shorthand}}%
1090 \edef\@subtype{\get@bibentry{#3}{entrysubtype}}% 1099 \edef\@subtype{\get@bibentry{#3}{entrysubtype}}%
1091 \edef\@author{\get@bibentry{#3}{author}}% 1100 \edef\@author{\get@bibentry{#3}{author}}%
@@ -1148,8 +1157,8 @@ Running "make install" installs the files in the local TeX tree.
1148 \@shorthand% 1157 \@shorthand%
1149 \fi% 1158 \fi%
1150 \else% 1159 \else%
1151 \csname #4\endcsname{#3}%
1152 \fi% 1160 \fi%
1161 \csname\ic@argiv\endcsname{#3}%
1153 } 1162 }
1154 {\IfNoValueTF{#2}% 1163 {\IfNoValueTF{#2}%
1155 {\DTLifdbempty{icite@indices}{% 1164 {\DTLifdbempty{icite@indices}{%
@@ -1180,8 +1189,8 @@ Running "make install" installs the files in the local TeX tree.
1180 \@shorthand, {#1}% 1189 \@shorthand, {#1}%
1181 \fi% 1190 \fi%
1182 \else% 1191 \else%
1183 \csname #4\endcsname[{#1}]{#3}%
1184 \fi% 1192 \fi%
1193 \csname\ic@argiv\endcsname[{#1}]{#3}%
1185 } 1194 }
1186 {\DTLifdbempty{icite@indices}{% 1195 {\DTLifdbempty{icite@indices}{%
1187 \ifno@index\else 1196 \ifno@index\else
@@ -1211,8 +1220,8 @@ Running "make install" installs the files in the local TeX tree.
1211 #1 \@shorthand, {#2}% 1220 #1 \@shorthand, {#2}%
1212 \fi 1221 \fi
1213 \else% 1222 \else%
1214 \csname #4\endcsname[#1][{#2}]{#3}%
1215 \fi% 1223 \fi%
1224 \csname\ic@argiv\endcsname[#1][{#2}]{#3}%
1216 }% 1225 }%
1217 }% 1226 }%
1218} 1227}