From 197548c4609c2f491464db6fd20237a201ea050b Mon Sep 17 00:00:00 2001 From: tjohnson250 Date: Sat, 15 Sep 2018 17:51:27 -0500 Subject: [PATCH] Added presentation entry type --- cv.bbx | 24 ++++++++++++++++++++++++ cv.dbx | 13 ++++++++++++- 2 files changed, 36 insertions(+), 1 deletion(-) 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% +} -- 2.50.1