diff options
author | Karl Berry <karl@freefriends.org> | 2015-12-29 23:22:56 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-12-29 23:22:56 +0000 |
commit | 43dd8ba2c7d907713ae884348a465635e6cfaf56 (patch) | |
tree | 5e70bad0227c49cd99dd8f296e0ad0e437a71f10 /Master/texmf-dist/tex | |
parent | ee249cd54ebe341b124574c6d7b6d6f08c659a84 (diff) |
ecobiblatex (29dec15)
git-svn-id: svn://tug.org/texlive/trunk@39233 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/ecobiblatex/ecobiblatex.bbx | 151 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/ecobiblatex/ecobiblatex.cbx | 5 |
2 files changed, 156 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/ecobiblatex/ecobiblatex.bbx b/Master/texmf-dist/tex/latex/ecobiblatex/ecobiblatex.bbx new file mode 100644 index 00000000000..4862c6ed936 --- /dev/null +++ b/Master/texmf-dist/tex/latex/ecobiblatex/ecobiblatex.bbx @@ -0,0 +1,151 @@ +\ProvidesFile{ecobiblatex.bbx}[biblatex style for Global Ecology and Biogeography] + +%% We build on the original author-year comp +\RequireBibliographyStyle{standard} +\RequireBibliographyStyle{authoryear-comp} + +%% General options to match the ELE requirements +\ExecuteBibliographyOptions + { + doi = false , + eprint = false , + firstinits = true , + isbn = false , + maxcitenames = 2 , + mincitenames = 1 , + url = false , + dashed = false , + sorting = nyt + } + +%% Only the year is important +\AtEveryBibitem{% + \clearfield{day}% + \clearfield{month}% + \clearfield{endday}% + \clearfield{endmonth}% +} + +%% Titles are in upright, no quotes +\DeclareFieldFormat[article,inbook,incollection,inproceedings,patent,thesis,unpublished]{title}{#1\isdot} + +%% Articles have no page number indication +\DeclareFieldFormat[article]{pages}{#1} +\DeclareFieldFormat[article]{volume}{\textbf{#1}} + +%% Last author is separated by an ampersand +\renewcommand*{\finalnamedelim}{\addspace\&\space} + +%% Authors are Name, F.S. +\DeclareNameAlias{sortname}{last-first} + +%% 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}% +} + +\DeclareBibliographyDriver{article}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \addspace + \usebibmacro{title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{bytranslator+others}% + \newunit\newblock + \printfield{version}% + \newunit\newblock% + \usebibmacro{journal+issuetitle}% + \newunit + \usebibmacro{byeditor+others}% + \newunit + \usebibmacro{note+pages}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \usebibmacro{finentry}} + +\renewbibmacro*{journal+issuetitle}{% + \usebibmacro{journal},% + \setunit*{\addspace}% + \usebibmacro{volume+number+eid}% + \newunit +} + +\renewbibmacro*{volume+number+eid}{% + \printfield{volume}% + \setunit*{\addspace}% + \printfield{eid}% +} + +\DeclareFieldFormat[book,inbook,incollection]{booktitle}{\emph{#1}} + +\renewbibmacro*{publisher+location+date}{% + \printfield{edition}% + \setunit{\addcomma\space}% + \printlist{publisher}% + \setunit{\addcomma\space}% + \printlist{location}% +} + +\DeclareBibliographyDriver{book}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \addspace + \printfield{title}% + \newunit\newblock% + \usebibmacro{publisher+location+date}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \usebibmacro{finentry}% +} + +\DeclareBibliographyDriver{incollection}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\labelnamepunct}\newblock + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit + \usebibmacro{title} + \newunit\newblock + \usebibmacro{bybookauthor}% + \newunit\newblock + \printfield{booktitle}\addspace% + \printtext[parens]{% + ed.~by% + \addspace% + \printnames[byeditor]{editor}% + \clearname{editor}% + }% + \newunit\newblock + \printfield{volumes}% + \newunit\newblock + \usebibmacro{series+number}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{chapter+pages}% + .\newblock + \usebibmacro{publisher+location+date}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \usebibmacro{finentry}% +} + +\endinput
\ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/ecobiblatex/ecobiblatex.cbx b/Master/texmf-dist/tex/latex/ecobiblatex/ecobiblatex.cbx new file mode 100644 index 00000000000..8aee83a4034 --- /dev/null +++ b/Master/texmf-dist/tex/latex/ecobiblatex/ecobiblatex.cbx @@ -0,0 +1,5 @@ +\ProvidesFile{ecobiblatex.cbx}[biblatex style for Global Ecology and Biogegraphy] + +\RequireCitationStyle{authoryear-comp} + +\endinput
\ No newline at end of file |