From 6016261719b5bfeefecd2ec317910f87d108d02c Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Sat, 9 Nov 2019 19:54:52 +0000 Subject: [PATCH] bib: add hintcol to override date --- cv.bbx | 4 +--- cv.dbx | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cv.bbx b/cv.bbx index 8efa93a..ef3e91a 100644 --- a/cv.bbx +++ b/cv.bbx @@ -43,9 +43,7 @@ \DeclareBibliographyDriver{cventry}{% \usebibmacro{begentry}% \usebibmacro{cvitem}% - {% print the date or the list-of-dates - \usebibmacro{dates}% - }% + {\iffieldundef{hintcol}{\usebibmacro{range-date}}{\printfield{hintcol}}}% {% \ifnameundef{author}{}{\usebibmacro{author}\newunit}% \printmlfield{title}% diff --git a/cv.dbx b/cv.dbx index 9e98b8a..38aa278 100644 --- a/cv.dbx +++ b/cv.dbx @@ -6,6 +6,9 @@ number% } +\DeclareDatamodelEntryfields{hintcol} +\DeclareDatamodelFields[type=field, datatype=literal]{hintcol} + \DeclareDatamodelFields[type=field, datatype=datepart]{ year,% endyear,% -- 2.50.1