From 177893b2926ade290e9708792ef5fb5f6563d350 Mon Sep 17 00:00:00 2001 From: Thomas Pietrzak Date: Mon, 14 Feb 2022 09:03:27 +0100 Subject: [PATCH] highlight nom dans biblio --- mystyle.sty | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/mystyle.sty b/mystyle.sty index 1a7d34f..8f00993 100644 --- a/mystyle.sty +++ b/mystyle.sty @@ -554,8 +554,19 @@ } \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 -- 2.30.2