From: tjohnson250 Date: Sat, 15 Sep 2018 22:51:27 +0000 (-0500) Subject: Added presentation entry type X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=197548c4609c2f491464db6fd20237a201ea050b;p=mcv-academic Added presentation entry type --- diff --git a/cv.bbx b/cv.bbx index a939f89..1364959 100644 --- a/cv.bbx +++ b/cv.bbx @@ -98,6 +98,30 @@ \DeclareBibliographyAlias{cvmisc}{cventry} +\DeclareBibliographyDriver{presentation}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \ifnameundef{author}% + % if no author is given, print only the role + {\printmlfield{role}\newunit}% + {% else, print the author and the role in parenthesis, if the latter exists + \usebibmacro{author} + \ifmlfieldundef{role}{}% + {\mkbibparens{\printmlfield{role}}}% + \newunit% + }% + \printmlfield{title}% + \newunit% + \usebibmacro{funding-project}% + \setunit*{\addspace}% + \usebibmacro{period}% + \newunit% + \usebibmacro{projdate}% + \newunit% + \usebibmacro{note}% + \usebibmacro{finentry}% +} + %------------------------------------------------------------------------------- % Formats %------------------------------------------------------------------------------- diff --git a/cv.dbx b/cv.dbx index 45e3a6c..85236c7 100644 --- a/cv.dbx +++ b/cv.dbx @@ -1,6 +1,6 @@ \ProvidesFile{cv.dbx} -\DeclareLocalizedDatamodelFields[type=field, datatype=literal]{level, period, title, organization, country, description, funding, role, note} +\DeclareLocalizedDatamodelFields[type=field, datatype=literal]{level, period, title, organization, country, description, funding, role, note, type, eventtitle, location} \DeclareDatamodelFields[type=list, datatype=literal]{ number% @@ -78,3 +78,14 @@ note,% level% } + +\DeclareLocalizedDatamodelEntryfields[presentation]{% + author,% + role,% + type,% + title,% + eventtitle,% + location,% + date,% + note% +}