Skip to content

Commit

Permalink
Update for biblatex compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Bisaloo authored and Hugo committed Oct 23, 2017
1 parent 85d22f4 commit ebfe564
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions ELE/ele.bbx
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,30 @@
%% The initials are separated by a thin space, as per Bringhurst
\renewcommand*{\mkbibnamefirst}[1]{{\let~\,#1}}


\DeclareNameFormat{default}{%
\renewcommand*{\multinamedelim}{\addsemicolon\addspace}%
\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}%
\usebibmacro{name:andothers}%
}
%% Modify the name format
% See http://www.texdev.net/2016/03/13/biblatex-a-new-syntax-for-declarenameformat/
\@ifpackageloaded{biblatex_legacy}
{
% Original syntax for BibTeX model
\DeclareNameFormat{default}{%
\renewcommand*{\multinamedelim}{\addsemicolon\addspace}%
\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}%
\usebibmacro{name:andothers}%
}
}
{
% New syntax for flexible back end
\DeclareNameFormat{default}{%
\renewcommand*{\multinamedelim}{\addsemicolon\addspace}%
\nameparts{#1}%
\usebibmacro{name:family-given}
{\namepartfamily}
{\namepartgiveni}
{\namepartprefix}
{\namepartsuffix}%
\usebibmacro{name:andothers}%
}
}

\DeclareBibliographyDriver{article}{%
\usebibmacro{bibindex}%
Expand Down Expand Up @@ -152,4 +170,4 @@
\usebibmacro{finentry}%
}

\endinput
\endinput

0 comments on commit ebfe564

Please sign in to comment.