highlight nom dans biblio
authorThomas Pietrzak <thomas.pietrzak@gmail.com>
Mon, 14 Feb 2022 08:03:27 +0000 (09:03 +0100)
committerThomas Pietrzak <thomas.pietrzak@gmail.com>
Mon, 14 Feb 2022 08:03:27 +0000 (09:03 +0100)
mystyle.sty

index 1a7d34f8fb1b54f11dcbcd99148b5d61c8efd0db..8f009932668416e1ee8baff7800f07d58b74860f 100644 (file)
 }
 
 \DeclareFieldFormat{title}{\usebibmacro{string+doiurlisbn}{#1}}
-\DeclareFieldFormat*{title}%
-    {\usebibmacro{string+doiurlisbn}{#1}}
+\DeclareFieldFormat*{title}{\usebibmacro{string+doiurlisbn}{#1}}
 
 % don't split references
 \patchcmd{\bibsetup}{\interlinepenalty=5000}{\interlinepenalty=10000}{}{}
+
+% highlight authors 2:
+% author+an = {2=highlight},
+\renewcommand*{\mkbibnamegiven}[1]{%
+  \ifitemannotation{highlight}
+    {\textbf{#1}}
+    {#1}}
+
+\renewcommand*{\mkbibnamefamily}[1]{%
+  \ifitemannotation{highlight}
+    {\textbf{#1}}
+    {#1}}
\ No newline at end of file