From 90be15f6f3f4984725843ccb8e04f804e4c025f0 Mon Sep 17 00:00:00 2001
From: Robert Alessi <alessi@robertalessi.net>
Date: Mon, 17 Jun 2024 18:35:09 +0200
Subject: more expansion control in \get@bibentry

---
 icite.dtx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'icite.dtx')

diff --git a/icite.dtx b/icite.dtx
index 6cb9fe0..6fa99d1 100644
--- a/icite.dtx
+++ b/icite.dtx
@@ -1101,7 +1101,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 %    \end{macrocode}
 % The following packages are required by \pkg{icite}:
 %    \begin{macrocode}
-\RequirePackage{xparse}
+\RequirePackage{etoolbox}
 \RequirePackage{datatool}
 \RequirePackage{usebib}
 %    \end{macrocode}
@@ -1126,7 +1126,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 % does not return an error if the entry field is not found:
 %    \begin{macrocode}
 \def\get@bibentry#1#2{\@ifundefined{reuse@#1@#2}{}
-  {\@nameuse{reuse@#1@#2}}}
+  {\expandonce{\@nameuse{reuse@#1@#2}}}}
 %    \end{macrocode}
 % Create a new database which \pkg{icite} will use to connect
 % Bib\LaTeX\ \enquote*{subtypes} to indices.
@@ -1382,4 +1382,4 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 %</package>
 % \fi
 %\Finale
-\endinput
\ No newline at end of file
+\endinput
-- 
cgit v1.2.3

