Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for biblatex compatibility #4

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 28 additions & 10 deletions ELE/ele.bbx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
{
doi = false ,
eprint = false ,
firstinits = true ,
giveninits = true ,
isbn = false ,
maxcitenames = 2 ,
mincitenames = 1 ,
maxbibnames = 7 ,
minbibnames = 6 ,
minbibnames = 6 ,
url = false ,
dashed = false ,
sorting = nyt
Expand All @@ -41,14 +41,32 @@
\DeclareNameAlias{sortname}{last-first}

%% The initials are separated by a thin space, as per Bringhurst
\renewcommand*{\mkbibnamefirst}[1]{{\let~\,#1}}
\renewcommand*{\mkbibnamegiven}[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