]> hydra-www.ietfng.org Git - mcv-academic/commitdiff
Add user interface for highlight style (\hlformat), and use a verbose name for applyi...
authoradin <adin@ic.unicamp.br>
Tue, 7 Apr 2020 17:00:02 +0000 (14:00 -0300)
committeradin <adin@ic.unicamp.br>
Tue, 7 Apr 2020 17:00:02 +0000 (14:00 -0300)
academic.sty

index d293400c6444ade2a8d004a7858dfb066f4fa25b..74e7aaedf17731e758e867364a9fe5ae5451541b 100644 (file)
 
 \addbibresource{\hlblx@bibfile@name}
 
-\newcommand*{\hlbxl@boldhashes}{}
+\newcommand*{\hlbxl@processhashes}{}
 \DeclareNameFormat{hlblx@hashextract}{%
-  \xifinlist{\thefield{hash}}{\hlbxl@boldhashes}
+  \xifinlist{\thefield{hash}}{\hlbxl@processhashes}
   {}
-  {\listxadd{\hlbxl@boldhashes}{\thefield{fullhash}}}}
+  {\listxadd{\hlbxl@processhashes}{\thefield{fullhash}}}}
 
 \DeclareCiteCommand{\hlblx@getmethehash}
 {}
 {}
 {}
 
-\newcommand*{\hlblx@format}{\bfseries}
+% internal use
+\newcommand{\hlblx@format}{\bfseries}
+% user interface
+\newcommand{\hlformat}[1]{\renewcommand\hlblx@format{#1}}
 \newbibmacro*{name:hlblx}[1]{%
   \def\do##1{\iffieldequalstr{hash}{##1}{\hlblx@format\listbreak}{}}%
-  \dolistloop{\hlbxl@boldhashes}%
+  \dolistloop{\hlbxl@processhashes}%
 }
 \xpretobibmacro{name:hook}{\usebibmacro{name:hlblx}{#1}}{}{}
 
 % User macros
 \newcommand*{\addboldnames}{\forcsvlist\hlblx@writenametobib}
-\newcommand*{\resetboldnames}{\def\hlbxl@boldhashes{}}
+\newcommand*{\resetboldnames}{\def\hlbxl@processhashes{}}
 
 % Mantained for backwards compatibility
 \newcommand*{\boldname}[3]{%