% Definitions
%-------------------------------------------------------------------------------
-%switches for information
+%% Switches for information
\newif\ifdetails\detailsfalse
\newif\if@citeall
+%% Counters
+% count the list of years on the dates
+\newcounter{maxyears}
+
%-------------------------------------------------------------------------------
% Options
%-------------------------------------------------------------------------------
style/.store in=\@load@style,
style/.default=academic,
%
+ maxyears/.code={\setcounter{maxyears}{#1}},
+ %
% unknown keys are assumed to be options to be passed to the biblatex package
.unknown/.code={\edef\unknown@packageoptions{\unknown@packageoptions,\pgfkeyscurrentname=#1}},
}
% put defaults here
citeall,
details = false,
+ maxyears = 3,
}
% process options key-value
\DeclareBibliographyDriver{cventry}{%
\usebibmacro{begentry}%
\usebibmacro{cventry}%
- {\usebibmacro{dates}[-\value{liststop}]}%
+ {\usebibmacro{dates}[-\value{maxyears}]}%
{%
\ifnameundef{author}{}{\usebibmacro{author}\newunitpunct}%
\printmlfield{title}%