From 892e35e0f7b1cd94718132517afe79a3ee82943c Mon Sep 17 00:00:00 2001 From: adin Date: Sun, 4 Sep 2016 19:33:52 -0300 Subject: [PATCH] Patch the date range source map --- moderncvstyleacademic.sty | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/moderncvstyleacademic.sty b/moderncvstyleacademic.sty index 27413ee..16ce39a 100755 --- a/moderncvstyleacademic.sty +++ b/moderncvstyleacademic.sty @@ -164,11 +164,13 @@ \RequirePackage[backend=biber, citestyle=numeric-comp, bibstyle=multiple-dm, sorting=ymdtn, maxbibnames=99, defernumbers=true, giveninits=true, sortcites]{biblatex} % Patch endyears that are not declared +% http://tex.stackexchange.com/a/327884/7561 \DeclareSourcemap{ \maps[datatype=bibtex]{ \map{ - \step[fieldsource=year] - \step[fieldset=endyear, origfieldval] + \step[fieldsource=date, match=\regexp{\A([0-9]{4}-[0-9]{2}-[0-9]{2})\Z}, replace=\regexp{$1/$1}] + \step[fieldsource=date, match=\regexp{\A([0-9]{4}-[0-9]{2})\Z}, replace=\regexp{$1/$1}] + \step[fieldsource=date, match=\regexp{\A([0-9]{4})\Z}, replace=\regexp{$1/$1}] } } } -- 2.50.1