diff options
author | Karl Berry <karl@freefriends.org> | 2018-10-18 20:33:24 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-10-18 20:33:24 +0000 |
commit | 57a73b1c4d59914f8178882a901e5c028d53b7ff (patch) | |
tree | 47fe79743fa43e8cc5b141f54df7a14d594f2c6f /Master/texmf-dist/tex/latex | |
parent | f78ef933642c4be9fd32c6ec1d846912f751ae65 (diff) |
biblatex-bath (18oct18)
git-svn-id: svn://tug.org/texlive/trunk@48936 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
5 files changed, 1580 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-bath/american-bath.lbx b/Master/texmf-dist/tex/latex/biblatex-bath/american-bath.lbx new file mode 100644 index 00000000000..ca30dbaabba --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-bath/american-bath.lbx @@ -0,0 +1,52 @@ +%% +%% This is file `american-bath.lbx', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% biblatex-bath.dtx (with options: `lbx-us') +%% ---------------------------------------------------------------- +%% biblatex-bath --- Harvard referencing style as recommended by the University of Bath Library +%% Author: Alex Ball +%% E-mail: a.j.ball@bath.ac.uk +%% License: Released under the LaTeX Project Public License v1.3c or later +%% See: http://www.latex-project.org/lppl.txt +%% ---------------------------------------------------------------- +%% +\InheritBibliographyExtras{american} +\DeclareBibliographyExtras{% + \renewrobustcmd*{\bibdatetimesep}{\addperiod\space}% + } + +\DeclareBibliographyStrings +{inherit = {american} +,urlseen = {{Accessed}{Accessed}} +,version = {{version~}{v\adddot}} +,january = {{January}{January}} +,february = {{February}{February}} +,march = {{March}{March}} +,april = {{April}{April}} +,may = {{May}{May}} +,june = {{June}{June}} +,july = {{July}{July}} +,august = {{August}{August}} +,september = {{September}{September}} +,october = {{October}{October}} +,november = {{November}{November}} +,december = {{December}{December}} +,patreq = {{patent application}{pat\adddot\ appl\adddot}} +,patreqde = {{German patent application}{German pat\adddot\ appl\adddot}} +,patreqeu = {{European patent application}{European pat\adddot\ appl\adddot}} +,patreqfr = {{French patent application}{French pat\adddot\ appl\adddot}} +,patrequk = {{British patent application}{British pat\adddot\ appl\adddot}} +,patrequs = {{U.S\adddotspace patent application}{U.S\adddotspace pat\adddot\ appl\adddot}} +,online = {{Online}{Online}} +,hours = {{hours}{hrs\adddot}} +,at = {{at}{at}} +,legalchapter = {{chapter}{c\adddot}} +} + +%% +%% Copyright (C) 2018 by University of Bath +%% +%% End of file `american-bath.lbx'. diff --git a/Master/texmf-dist/tex/latex/biblatex-bath/bath.bbx b/Master/texmf-dist/tex/latex/biblatex-bath/bath.bbx new file mode 100644 index 00000000000..57d25c779e3 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-bath/bath.bbx @@ -0,0 +1,1392 @@ +%% +%% This is file `bath.bbx', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% biblatex-bath.dtx (with options: `bbx') +%% ---------------------------------------------------------------- +%% biblatex-bath --- Harvard referencing style as recommended by the University of Bath Library +%% Author: Alex Ball +%% E-mail: a.j.ball@bath.ac.uk +%% License: Released under the LaTeX Project Public License v1.3c or later +%% See: http://www.latex-project.org/lppl.txt +%% ---------------------------------------------------------------- +%% +\RequirePackage{xpatch} +\DeclareLanguageMappingSuffix{-bath} +\RequireBibliographyStyle{authoryear} +\ExecuteBibliographyOptions{% + maxcitenames=3,maxbibnames=9999,isbn=false,giveninits=true,dashed=false, + alldates=comp,labeldate=year} +\ExecuteBibliographyOptions[audio,video,music,movie]{% + useeditor=false} +\NewBibliographyString{% + online, hours, at, legalchapter, + director, performer, reader, conductor, + directors, performers, readers, conductors, + bydirector, byperformer, byreader, byconductor, +} +\setlength{\bibitemsep}{1em plus 0.2em minus 0.2em} +\renewcommand*{\bibfont}{\normalfont\normalsize} + +\DeclareNameAlias{author}{family-given} +\DeclareNameAlias{editor}{family-given} +\renewcommand*{\bibinitdelim}{} +\newbibmacro*{name:cjk-given-family}[3]{% + \ifitemannotation{cjk}{% + \usebibmacro{name:delim}{#2#1#3}% + \usebibmacro{name:hook}{#2#1#3}% + \mkbibnamefamily{#1}\isdot + \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{#2}}% + \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnamecjk{#3}}% + }{% + \usebibmacro{name:delim}{#2#1#3}% + \usebibmacro{name:hook}{#2#1#3}% + \ifdefvoid{#2}{}{\mkbibnamegiven{#2}\isdot\bibnamedelimd}% + \mkbibnamefamily{#1}\isdot + \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnamecjk{#3}}% + }% +} +\newbibmacro*{name:cjk-family-given}[3]{% + \ifitemannotation{cjk}{% + \usebibmacro{name:delim}{#2#1#3}% + \usebibmacro{name:hook}{#2#1#3}% + \mkbibnamefamily{#1}\isdot + \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{#2}}% + \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnamecjk{#3}}% + }{% + \usebibmacro{name:delim}{#1}% + \usebibmacro{name:hook}{#1}% + \mkbibnamefamily{#1}\isdot + \ifboolexpe{% + test {\ifdefvoid{#2}} + and + test {\ifdefvoid{#3}}} + {} + {\revsdnamepunct}% + \ifdefvoid{#2}{}{\bibnamedelimd\mkbibnamegiven{#2}\isdot}% + \ifdefvoid{#3}{}{\bibnamedelimd\mkbibnamecjk{#3}}% + }% +} + +\DeclareNameFormat{given-family}{% + \ifdefvoid{\namepartcjk}{% + \ifgiveninits{% + \usebibmacro{name:given-family} + {\namepartfamily} + {\namepartgiveni} + {\namepartprefix} + {\namepartsuffix}% + }{% + \usebibmacro{name:given-family} + {\namepartfamily} + {\namepartgiven} + {\namepartprefix} + {\namepartsuffix}% + }% + }{% + \ifgiveninits{% + \usebibmacro{name:cjk-given-family} + {\namepartfamily} + {\namepartgiveni} + {\namepartcjk}% + }{% + \usebibmacro{name:cjk-given-family} + {\namepartfamily} + {\namepartgiven} + {\namepartcjk}% + }% + }% + \usebibmacro{name:andothers}% +} + +\DeclareNameFormat{family-given}{% + \ifdefvoid{\namepartcjk}{% + \ifgiveninits{% + \usebibmacro{name:family-given} + {\namepartfamily} + {\namepartgiveni} + {\namepartprefix} + {\namepartsuffix}% + }{% + \usebibmacro{name:family-given} + {\namepartfamily} + {\namepartgiven} + {\namepartprefix} + {\namepartsuffix}% + }% + }{% + \ifgiveninits{% + \usebibmacro{name:cjk-family-given} + {\namepartfamily} + {\namepartgiveni} + {\namepartcjk}% + }{% + \usebibmacro{name:cjk-family-given} + {\namepartfamily} + {\namepartgiven} + {\namepartcjk}% + }% + } + \usebibmacro{name:andothers}% +} + +\DeclareNameFormat{given-family:full}{% + \usebibmacro{name:given-family} + {\namepartfamily} + {\namepartgiven} + {\namepartprefix} + {\namepartsuffix}% + \usebibmacro{name:andothers}} + +\renewbibmacro*{byauthor}[1][byauthor]{% + \ifboolexpr{ + test \ifuseauthor + or + test {\ifnameundef{author}} + }{} + {\usebibmacro{bytypestrg}{author}{author}% + \setunit{\addspace}% + \printnames[#1]{author}}} + +\renewbibmacro*{byeditor}[1][byeditor]{% + \ifnameundef{editor} + {} + {\usebibmacro{bytypestrg}{editor}{editor}% + \setunit{\addspace}% + \printnames[#1]{editor}% + \newunit}% + \ifstrequal{#1}{byeditor}{% + \usebibmacro{byeditora}% + \usebibmacro{byeditorb}% + \usebibmacro{byeditorc} + }{% + \usebibmacro{byeditora}[#1]% + \usebibmacro{byeditorb}[#1]% + \usebibmacro{byeditorc}[#1]}} + +\newbibmacro*{byeditora}[1][byeditora]{% + \ifnameundef{editora} + {} + {\usebibmacro{bytypestrg}{editora}{editor}% + \setunit{\addspace}% + \printnames[#1]{editora}% + \newunit}} +\newbibmacro*{byeditorb}[1][byeditorb]{% + \ifnameundef{editorb} + {} + {\usebibmacro{bytypestrg}{editorb}{editor}% + \setunit{\addspace}% + \printnames[#1]{editorb}% + \newunit}} +\newbibmacro*{byeditorc}[1][byeditorc]{% + \ifnameundef{editorc} + {} + {\usebibmacro{bytypestrg}{editorc}{editor}% + \setunit{\addspace}% + \printnames[#1]{editorc}% + \newunit}} + +\renewbibmacro*{bytranslator}[1][bytranslator]{% + \ifnameundef{translator} + {} + {\setunit{\addspace}% + \printtext[parens]{% + \printnames[#1]{translator}% + \newunit + \bibstring{translator}% + \clearname{translator}}}} + +\renewbibmacro*{byeditor+others}[1][byeditor]{% + \ifnameundef{editor} + {} + {\usebibmacro{byeditor+othersstrg}% + \setunit{\addspace}% + \printnames[#1]{editor}% + \clearname{editor}% + \newunit}% + \ifstrequal{#1}{byeditor}{% + \usebibmacro{byeditorx}% + \usebibmacro{bytranslator+others}% + }{% + \usebibmacro{byeditora}[#1]% + \usebibmacro{byeditorb}[#1]% + \usebibmacro{byeditorc}[#1]% + \usebibmacro{bytranslator+others}[#1]}} + +\renewbibmacro*{bytranslator+others}[1][bytranslator]{% + \ifnameundef{translator} + {\usebibmacro{withothers}} + {\setunit{\addspace}% + \printtext[parens]{% + \printnames[bytranslator]{translator}% + \newunit + \bibstring{translator}% + \clearname{translator}% + \newunit + \usebibmacro{withothers}}}} + +\newbibmacro*{bookeditor}{% + \ifnameundef{editor}{}{% + \printnames[bookeditor]{editor}% + \setunit*{\addspace}% + \usebibmacro{editor+othersstrg}% + \clearname{editor}% + }} + +\DeclareFieldFormat{sentencecase}{\MakeSentenceCase*{#1}} +\DeclareFieldFormat{midsentencecase}{\MakeSentenceCase*{{}#1}} +\DeclareFieldFormat{title}{\mkbibemph{#1}} +\DeclareFieldFormat + [article,inbook,incollection,inproceedings]% + {title}{#1} +\DeclareFieldFormat + [patent,thesis,unpublished]% + {title}{\mkbibemph{#1}} + +\newtoggle{bbx:onlineshown} +\newbibmacro*{isonline}{% + \ifboolexpr{( + test {\iffieldundef{url}} + and + not test {\ifentrytype{online}} + ) or + togl {bbx:onlineshown} + }{}{% + \bibstring[\mkbibbrackets]{online}% + \toggletrue{bbx:onlineshown}}} + +\DeclareFieldFormat{titleaddon}{\mkbibbrackets{% + \IfBeginWith{#1}{[}{% + \IfEndWith{#1}{]}{% + \StrBetween{#1}{[}{]}% + }{#1}% + }{#1}% +}} + +\renewbibmacro*{title}{% + \printtext{% + \ifboolexpr{ + test {\iffieldundef{title}} + and + test {\iffieldundef{subtitle}} + }{}{% + \printtext[title]{% + \printfield[sentencecase]{title}% + \setunit{\subtitlepunct}% + \printfield[midsentencecase]{subtitle}% + \setunit{\addspace}% + }% + \printfield{version}% + \clearfield{version}% + \setunit*{\addspace}% + \printfield{titleaddon}% + \ifboolexpr{ + test {\iffieldundef{journaltitle}} + and + test {\iffieldundef{booktitle}} + and + test {\iffieldundef{library}} + and + not test {\ifentrytype{software}} + }{% + \setunit*{\addspace}% + \usebibmacro{isonline}% + }{}% + }% + }% +} + +\renewbibmacro*{booktitle}{% + \ifboolexpr{ + test {\iffieldundef{booktitle}} + and + test {\iffieldundef{booksubtitle}} + }{}{% + \printtext[booktitle]{% + \printfield[sentencecase]{booktitle}% + \setunit{\subtitlepunct}% + \printfield[midsentencecase]{booksubtitle}% + \setunit{\addspace}% + }% + \printfield{booktitleaddon} + \setunit*{\addspace}% + \usebibmacro{isonline}% + }% +} + +\renewbibmacro*{maintitle}{% + \ifboolexpr{ + test {\iffieldundef{maintitle}} + and + test {\iffieldundef{mainsubtitle}} + }{}{ + \printtext[maintitle]{% + \printfield[sentencecase]{maintitle}% + \setunit{\subtitlepunct}% + \printfield[midsentencecase]{mainsubtitle}% + \setunit{\addspace}% + }% + \printfield{maintitleaddon}% + }% +} + +\renewcommand*{\subtitlepunct}{\addcolon\space} + +\providetoggle{bbx:labelistitle} +\renewbibmacro*{labeltitle}{% + \iffieldundef{label}{% + \ifboolexpr{ + test {\iffieldundef{title}} + and + test {\iffieldundef{subtitle}} + }{}{% + \printtext[title]{% + \printfield[sentencecase]{title}% + \setunit{\subtitlepunct}% + \printfield[midsentencecase]{subtitle}}% + \clearfield{title}\clearfield{subtitle}% + \toggletrue{bbx:labelistitle}}% + }{% + \printfield{label}% + }% +} +\DeclareDelimFormat{yearlabeltitleaddondelim}{\addspace} +\newbibmacro*{labeltitleaddon}{% + \iftoggle{bbx:labelistitle}{% + \setunit{\printdelim{yearlabeltitleaddondelim}}% + \printfield{version}% + \clearfield{version}% + \setunit*{\addspace}% + \printfield{titleaddon}% + \clearfield{titleaddon}% + \ifboolexpr{ + test {\iffieldundef{journaltitle}} + and + test {\iffieldundef{booktitle}} + and ( + test {\iffieldundef{library}} + or + test {\ifentrytype{image}} + ) and + not test {\ifentrytype{software}} + }{% + \setunit*{\addspace}% + \usebibmacro{isonline}% + }{}% + }{}% +} +\xapptobibmacro{author}{\usebibmacro{labeltitleaddon}}{}{} +\xapptobibmacro{bbx:editor}{\usebibmacro{labeltitleaddon}}{}{} +\xapptobibmacro{bbx:translator}{\usebibmacro{labeltitleaddon}}{}{} + +\DeclareLabeldate{% + \field{date} + \field{year} + \literal{nodate} +} +\newtoggle{bbx:nonodate} +\DeclareBibliographyOption[boolean]{nonodate}[true]{% + \settoggle{bbx:nonodate}{#1}} +\DeclareTypeOption[boolean]{nonodate}[true]{% + \settoggle{bbx:nonodate}{#1}} +\DeclareEntryOption[boolean]{nonodate}[true]{% + \settoggle{bbx:nonodate}{#1}} +\DeclareStyleSourcemap{ + \maps[datatype=bibtex]{ + \map[overwrite=true]{ + \step[notmatch=\regexp{nonodate}, fieldsource=options, final] + \step[fieldsource=sortyear, final] + \step[fieldset=options, append, fieldvalue={,nonodate}] + } + \map[overwrite=true]{ + \step[notfield=options, final] + \step[fieldsource=sortyear, final] + \step[fieldset=options, fieldvalue={nonodate}] + } + } +} + +\DeclareDelimFormat{nameyeardelim}{\addcomma\space} +\DeclareDelimFormat[parencite,bib,biblist]{nameyeardelim}{\addcomma\space} +\newcommand{\dononameyeardelim}{% + \ifentrytype{legislation}{% + \addspace + }{% + \ifentrytype{jurisdiction}{% + \ifboolexpr{ + togl {bbx:eu-oj} + or + test {\iffieldequalstr{journaltitle}{ECR}} + or + test {\iffieldequalstr{type}{ECR}} + }{% + \addspace + }{% + \ifboolexpr{ + test {\ifkeyword{sc}} + or + togl {bbx:scotstyle} + }{% + \addcomma\space + }{% + \addperiod\space}}% + }{% + \addcomma\space}}} +\DeclareDelimFormat{nonameyeardelim}{\dononameyeardelim} +\DeclareDelimFormat[bib,biblist]{nonameyeardelim}{\dononameyeardelim} +\DeclareDelimFormat[parencite]{nonameyeardelim}{% + \ifboolexpr{ + test {\ifentrytype{jurisdiction}} + or + test {\ifentrytype{legislation}} + }{\addspace}{\addcomma\space}} + +\DeclareDelimFormat{nametitledelim}{% + \ifboolexpr{ + ( + test {\ifentrytype{jurisdiction}} + or + test {\ifentrytype{legislation}} + ) and + togl {bbx:labelistitle} + }{\addspace}{\addcomma\space}} +\DeclareDelimFormat[bib,biblist]{nametitledelim}{% + \ifboolexpr{ + ( + test {\ifentrytype{jurisdiction}} + or + test {\ifentrytype{legislation}} + ) and + togl {bbx:labelistitle} + }{\addspace}{\labelnamepunct}} + +\renewbibmacro*{date}{% + \printdate + \setunit*{\bibdatetimesep} + \printtime +} +\DeclareFieldFormat{time}{#1~\bibstring{hours}} + +\xpatchcmd{\KV@blx@opt@pre@mergedate}{% + 'true' (=compact)% +}{% + 'year', 'true' (=year)% +}{}{} +\DeclareTypeOption[boolean]{mergedate}[true]{% + \ifcsdef{bbx@opt@mergedate@#1}{% + \csuse{bbx@opt@mergedate@#1}% + }{% + \PackageError{biblatex} + {Invalid option 'mergedate=#1'} + {Valid values are 'maximum', 'compact', 'basic', 'minimum',\MessageBreak + 'year', 'true' (=year), and 'false'.}}} +\DeclareFieldFormat{datelabel}{#1} +\xpatchcmd{\bbx@opt@mergedate@maximum}{% + \iffieldundef{labelyear}% +}{% + \ifboolexpr{ + togl {bbx:nonodate} + and + not test {\iflabeldateisdate}}% +}{}{} +\xpatchcmd{\bbx@opt@mergedate@maximum}{% + \printtext[parens]% +}{% + \printtext[datelabel]% +}{}{} +\xpatchcmd{\bbx@opt@mergedate@compact}{% + \iffieldundef{labelyear}% +}{% + \ifboolexpr{ + togl {bbx:nonodate} + and + not test {\iflabeldateisdate}}% +}{}{} +\xpatchcmd{\bbx@opt@mergedate@compact}{% + \printtext[parens]% +}{% + \printtext[datelabel]% +}{}{} +\xpatchcmd{\bbx@opt@mergedate@basic}{% + \iffieldundef{labelyear}% +}{% + \ifboolexpr{ + togl {bbx:nonodate} + and + not test {\iflabeldateisdate}}% +}{}{} +\xpatchcmd{\bbx@opt@mergedate@basic}{% + \printtext[parens]% +}{% + \printtext[datelabel]% +}{}{} +\xpatchcmd{\bbx@opt@mergedate@minimum}{% + \iffieldundef{labelyear}% +}{% + \ifboolexpr{ + togl {bbx:nonodate} + and + not test {\iflabeldateisdate}}% +}{}{} +\xpatchcmd{\bbx@opt@mergedate@minimum}{% + \printtext[parens]% +}{% + \printtext[datelabel]% +}{}{} +\xpatchcmd{\bbx@opt@mergedate@false}{% + \iffieldundef{labelyear}% +}{% + \ifboolexpr{ + togl {bbx:nonodate} + and + not test {\iflabeldateisdate}}% +}{}{} +\xpatchcmd{\bbx@opt@mergedate@false}{% + \printtext[parens]% +}{% + \printtext[datelabel]% +}{}{} + +\def\bbx@opt@mergedate@year{% + \renewbibmacro*{date+extradate}{% + \iffieldundef{labelyear}{}{% + \ifboolexpr{ + togl {bbx:nonodate} + and + not test {\iflabeldateisdate} + }{}{% + \printtext[datelabel]{\printlabeldateextra}% + }% + \iflabeldateisdate{% + \clearfield{year}% + }{}}} + \renewbibmacro*{issue+date}{% + \ifboolexpr{ + test {\iffieldundef{issue}} + and + test {\iffieldundef{month}} + }{}{% + \ifboolexpr{( + test {\iffieldundef{volume}} + and + test {\iffieldundef{number}} + ) and + test {\iffieldundef{eid}} + }{% + \newunit + \printfield{issue}% + }{% + \printtext[parens]{% + \printfield{issue}% + }% + } + \setunit{\addcomma\space}% + \printdate + }% + \newunit + }% +}% + +\def\bbx@opt@mergedate@true{\bbx@opt@mergedate@year} +\ExecuteBibliographyOptions{mergedate} + +\newrobustcmd*{\mknoyeardaterangefull}[2]{% + \iffieldundef{#2month}{}{% + \datecircaprint + \printtext[#2date]{% + \iffieldundef{#2season}{% + \csuse{mkbibdate#1}{}{#2month}{#2day}% + \blx@printtime{#2}{}% + }{% + \csuse{mkbibseasondate#1}{}{#2season}}% + \dateuncertainprint + \iffieldundef{#2endmonth}{}{% + \iffieldequalstr{#2endmonth}{}{% + \mbox{\bibdaterangesep}% + }{% + \bibdaterangesep + \enddatecircaprint + \iffieldundef{#2season}{% + \csuse{mkbibdate#1}{}{#2endmonth}{#2endday}% + \blx@printtime{#2}{end}% + }{% + \csuse{mkbibseasondate#1}{}{#2endseason}}% + \enddateuncertainprint}}}}} +\newrobustcmd*{\mknoyeardaterangetrunc}[2]{% + \iffieldundef{#2month}{}{% + \datecircaprint + \printtext[#2date]{% + \iffieldundef{#2season}{% + \ifboolexpr{ + test {\iffieldsequal{labelyear}{labelendyear}} + and + test {\iffieldsequal{#2month}{#2endmonth}} + }{% + \csuse{mkbibdate#1}{}{}{#2day}% + }{% + \csuse{mkbibdate#1}{}{#2month}{#2day}}% + }{% + \csuse{mkbibseasondate#1}{}{#2season}}% + \dateuncertainprint + \iffieldundef{#2endmonth}{}{% + \iffieldequalstr{#2endmonth}{}{% + \mbox{\bibdaterangesep}% + }{% + \bibdaterangesep + \enddatecircaprint + \iffieldundef{#2season}{% + \csuse{mkbibdate#1}{}{#2endmonth}{#2endday}% + }{% + \csuse{mkbibseasondate#1}{}{#2endseason}}% + \enddateuncertainprint}}}}} +\xpatchcmd{\mkdaterangefull}{% + \iffieldundef{#2year} {}% +}{% + \iffieldundef{#2year} {\mknoyeardaterangefull{#1}{#2}}% +}{}{} +\xpatchcmd{\mkdaterangetrunc}{% + \iffieldundef{#2year} {}% +}{% + \iffieldundef{#2year} {\mknoyeardaterangetrunc{#1}{#2}}% +}{}{} +\xpatchcmd{\mkdaterangefullextra}{% + \iffieldundef{#2year} {}% +}{% + \iffieldundef{#2year} {\mknoyeardaterangefull{#1}{#2}}% +}{}{} +\xpatchcmd{\mkdaterangetruncextra}{% + \iffieldundef{#2year} {}% +}{% + \iffieldundef{#2year} {\mknoyeardaterangetrunc{#1}{#2}}% +}{}{} + +\DeclareFieldFormat{version}{\mkbibparens{\bibstring{version}#1}} +\DeclareFieldFormat{type}{\ifbibstring{#1}{\biblstring{#1}}{#1}} +\renewbibmacro*{event+venue+date}{% + \printfield{eventtitle}% + \setunit*{\addspace}% + \printfield{eventtitleaddon}% + \ifboolexpr{ + test {\iffieldundef{venue}} + and + test {\iffieldundef{eventyear}} + } + {} + {\setunit{\addcomma\space}% + \printeventdate + \setunit*{\addspace}% + \printfield{venue}% + \newunit}} + +\renewbibmacro*{institution+location+date}{% + \printlist{location}% + \iflistundef{publisher}{% + \iflistundef{institution}{% + \setunit*{\addcomma\space}% + }{% + \setunit*{\addcolon\space}% + \printlist{institution}% + }% + }{% + \setunit*{\addcolon\space}% + \printlist{publisher}% + }% + \setunit*{\addcomma\space}% + \usebibmacro{date}% + \newunit} +\renewbibmacro*{organization+location+date}{% + \printlist{location}% + \iflistundef{publisher}{% + \iflistundef{organization}{% + \setunit*{\addcomma\space}% + }{% + \setunit*{\addcolon\space}% + \printlist{organization}% + }% + }{% + \setunit*{\addcolon\space}% + \printlist{publisher}% + }% + \setunit*{\addcomma\space}% + \usebibmacro{date}% + \newunit} + +\DeclareFieldFormat{library}{\mkbibemph{#1}} +\newbibmacro*{library}{% + \iffieldundef{library}{}{% + \printfield{library}% + \setunit*{\addspace}% + \usebibmacro{isonline}% + }% +} + +\renewcommand*{\ppspace}{} +\DeclareNumChars{ab} +\DeclareFieldFormat{url}{\bibsentence\bibstring{urlfrom}\addcolon\space\url{#1}} +\DeclareFieldFormat{doi}{\bibsentence\bibstring{urlfrom}\addcolon\space\url{https://doi.org/#1}} +\DeclareFieldFormat{urldate}{\mkbibbrackets{\bibstring{urlseen}\space#1}} +\renewbibmacro*{doi+eprint+url}{% + \iftoggle{bbx:eprint} + {\usebibmacro{eprint}} + {}% + \newunit\newblock + \iftoggle{bbx:url} + {\usebibmacro{url+urldate}} + {}} +\renewbibmacro*{url}{% + \iffieldundef{doi}% + {\printfield{url}}% + {\printfield{doi}}% +} + +\xpatchbibdriver{article}{% + \usebibmacro{in:}\usebibmacro{journal+issuetitle}% +}{% + \usebibmacro{journal+issuetitle}% +}{}{} +\renewbibmacro*{journal+issuetitle}{% + \usebibmacro{journal}% + \setunit*{\addspace}% + \usebibmacro{isonline}% + \setunit*{\addcomma\space}% + \iffieldundef{series} + {} + {\newunit + \printfield{series}% + \setunit{\addcomma\space}}% + \usebibmacro{volume+number+eid}% + \setunit{\addspace}% + \usebibmacro{issue+date}% + \setunit{\addcolon\space}% + \usebibmacro{issue}% + \newunit} +\renewbibmacro*{volume+number+eid}{% + \printfield{volume}% + \printfield[parens]{number}% + \setunit{\addcomma\space}% + \printfield{eid}} + +\xpatchbibdriver{book}{% + \newunit\newblock + \usebibmacro{series+number}% +}{% + \setunit{\addcomma\space}% + \usebibmacro{series+number}% +}{}{} + +\xpatchbibdriver{collection}{% + \newunit\newblock + \usebibmacro{series+number}% +}{% + \setunit{\addcomma\space}% + \usebibmacro{series+number}% +}{}{} + +\xpatchbibdriver{inbook}{% + \newunit\newblock + \usebibmacro{series+number}% +}{% + \setunit{\addcomma\space}% + \usebibmacro{series+number}% +}{}{} + +\xpatchbibdriver{incollection}{% + \newunit\newblock + \usebibmacro{series+number}% +}{% + \setunit{\addcomma\space}% + \usebibmacro{series+number}% +}{}{} + +\xpatchbibdriver{inproceedings}{% + \newunit\newblock + \usebibmacro{series+number}% +}{% + \setunit{\addcomma\space}% + \usebibmacro{series+number}% +}{}{} + +\xpatchbibdriver{proceedings}{% + \newunit\newblock + \usebibmacro{series+number}% +}{% + \setunit{\addcomma\space}% + \usebibmacro{series+number}% +}{}{} + +\xpatchbibdriver{incollection}{% + \usebibmacro{in:}% + \usebibmacro{maintitle+booktitle}% + \newunit\newblock + \usebibmacro{byeditor+others}% +}{% + \ifnameundef{editor}{}{\usebibmacro{in:}}% + \usebibmacro{bookeditor}% + \newunit\newblock + \usebibmacro{maintitle+booktitle}% + \usebibmacro{byeditor+others}% +}{}{} + +\xpatchbibdriver{inproceedings}{% + \usebibmacro{in:}% + \usebibmacro{maintitle+booktitle}% + \newunit\newblock + \usebibmacro{event+venue+date}% + \newunit\newblock + \usebibmacro{byeditor+others}% +}{% + \ifnameundef{editor}{}{\usebibmacro{in:}}% + \usebibmacro{bookeditor}% + \newunit\newblock + \usebibmacro{maintitle+booktitle}% + \usebibmacro{byeditor+others}% + \newunit + \usebibmacro{event+venue+date}% +}{}{} + +\xpatchbibdriver{online}{% + \printlist{organization}% +}{% + \usebibmacro{library}% + \newunit\newblock + \usebibmacro{organization+location+date}% +}{}{} + +\DeclareFieldFormat{forceparens}{(#1)} +\newbibmacro{series+type+number}{% + \ifboolexpr{ + test {\iffieldundef{series}} + and + test {\iffieldundef{type}} + and + test {\iffieldundef{number}} + }{}{% + \printtext[parens]{% + \printfield{series}% + \IfStrEqCase{\thefield{series}}{% + {C}{\printunit*{\adddot\space}}% + {Cd}{\printunit*{\adddot\space}}% + {Cmd}{\printunit*{\adddot\space}}% + {Cmnd}{\printunit*{\adddot\space}}% + {Cm}{\printunit*{\adddot\space}}% + }{% + \setunit*{\addcomma\space}}% + \printfield{type}% + \setunit*{\addspace}% + \IfBeginWith{\thefield{series}}{HL}{% + \printfield[forceparens]{number}% + }{% + \printfield{number}% + }}}} + +\DeclareBibliographyDriver{report}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{institution+location+date}% + \iffieldundef{series}{% + \setunit{\addcomma\space}% + }{% + \setunit{\addspace}}% + \usebibmacro{series+type+number}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit + \printfield{pagetotal}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isrn}} + {}% + \newunit\newblock + \usebibmacro{library}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} + +\newbibmacro{manual:series+type+number}{% + \iffieldundef{series}{% + \newunit\newblock + \printfield{type}% + \setunit{\addspace}% + \printfield{number}% + }{% + \setunit{\addcomma\space}% + \usebibmacro{series+number}% + \newunit\newblock + \printfield{type}% + }% +} +\xpatchbibdriver{manual}{% + \newunit\newblock + \usebibmacro{series+number}% + \newunit\newblock + \printfield{type}% +}{% + \usebibmacro{manual:series+type+number}% +}{}{} + +\DeclareStyleSourcemap{% + \maps[datatype=bibtex]{% + \map[overwrite=false]{ + \pertype{standard} + \step[notfield=author, + fieldsource=number, + final] + \step[fieldset=sortkey, + origfieldval] + } + \map[overwrite=false]{ + \pertype{standard} + \step[notfield=author, + fieldsource=number, + fieldtarget=label] + } + }} +\ExecuteBibliographyOptions[standard]{useeditor=false} + +\DeclareBibliographyDriver{audio}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor+others/translator+others}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title}% + \newunit + \printlist{language}% + \newunit\newblock + \printfield{type}% + \newunit\newblock + \usebibmacro{byauthor}[given-family:full]% + \newunit\newblock + \usebibmacro{byeditor+others}[given-family:full]% + \newunit\newblock + \printfield{howpublished}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{publisher+location+date}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} +\DeclareBibliographyAlias{movie}{audio} +\DeclareBibliographyAlias{music}{audio} +\DeclareBibliographyAlias{video}{audio} +\newtoggle{bbx:eu-oj} +\newbibmacro*{eucheck}{% + \IfBeginWith{\thefield{journaltitle}}{OJ}{% + \toggletrue{bbx:eu-oj}% + }{}} +\DeclareFieldFormat[jurisdiction,legislation]{title}{% + \ifboolexpr{ + togl{bbx:eu-oj} + and + not test {\iffieldequalstr{type}{Commission Decision}} + }{#1}{\mkbibemph{#1}}} + +\newtoggle{bbx:scotstyle} +\DeclareEntryOption[boolean]{scottish-style}[true]{% + \settoggle{bbx:scotstyle}{#1}} +\newtoggle{bbx:year-essential} +\DeclareEntryOption[boolean]{year-essential}[true]{% + \settoggle{bbx:year-essential}{#1}} +\DeclareFieldFormat[jurisdiction]{datelabel}{% + \ifboolexpr{ + test {\iffieldundef{volume}} + or + togl {bbx:year-essential} + or + togl {bbx:eu-oj} + or + test {\iffieldequalstr{journaltitle}{ECR}} + }{% + \ifboolexpr{ + test {\ifkeyword{sc}} + or + togl {bbx:scotstyle} + }{% + #1% + }{% + \mkbibbrackets{#1}}% + }{% + \mkbibparens{#1}}} + +\DeclareFieldFormat[jurisdiction]{issue}{\mkbibparens{#1}} +\newbibmacro*{casenumber}{% + \iffieldundef{issue}{% + \ifboolexpr{ + test {\iffieldundef{pages}} + or + test {\iffieldundef{number}} + }{}{% + \iffieldundef{userb}{% + \printfield[parens]{number}% + \clearfield{number}% + }{% + \printfield[parens]{userb}% + \setunit{\addspace}% + \printfield{type}% + \setunit*{\addspace}% + \printfield{number}% + \clearfield{type}\clearfield{number}}}% + }{% + \printfield{issue}}} +\DeclareStyleSourcemap{ + \maps[datatype=bibtex]{ + \map[overwrite=false]{ + \step[match=\regexp{Commission}, fieldsource=institution, final] + \step[fieldset=type, fieldvalue={Commission Decision}] + \step[fieldset=institution, null] + } + \map[overwrite=false]{ + \step[fieldsource=casenumber, final] + \step[notfield=number, fieldsource=casenumber, fieldtarget=number] + \step[fieldsource=casenumber, fieldtarget=userb] + } + } +} + +\newbibmacro{jurisdiction:type+number}{% + \usebibmacro{journal}% + \setunit*{\addspace}% + \ifboolexpr{ + test {\iffieldundef{type}} + and + test {\iffieldundef{number}} + }{}{% + \printfield{volume}% + \setunit*{\addperiod\space}% + \printfield{type}% + \setunit*{\addspace}% + \printfield{number}}} +\DeclareFieldFormat[jurisdiction]{journaltitle}{% + \iftoggle{bbx:eu-oj}{\mkbibemph{#1}}{#1}} +\DeclareFieldFormat[jurisdiction,legislation]{volume}{#1} +\DeclareFieldFormat[jurisdiction,legislation]{pages}{#1} +\newbibmacro{journal+volume+pages}{% + \printfield{volume}% + \setunit{\addperiod\space}% + \printfield{journaltitle}% + \setunit*{\addspace}% + \printfield{pages}% +} +\newbibmacro{eu:journal+volume+pages}{% + \printfield{journaltitle}% + \setunit{\addspace}% + \printfield{volume}% + \setunit*{\printtext{--\allowbreak}}% + \printfield{pages}% +} +\newbibmacro{eu:journal+series+volume+pages}{% + \printfield{journaltitle}% + \setunit{\addspace}% + \printfield{series}% + \clearfield{series}% + \printfield{volume}% + \setunit*{\printtext{/}}% + \printfield{pages}% +} +\newbibmacro{reporter}{% + \iffieldundef{journaltitle}{% + \usebibmacro{jurisdiction:type+number}% + }{% + \iffieldequalstr{journaltitle}{ECR}{% + \usebibmacro{eu:journal+volume+pages}% + }{% + \iffieldequalstr{journaltitle}{OJ}{% + \iffieldundef{series}{% + \usebibmacro{jurisdiction:type+number}% + }{% + \usebibmacro{eu:journal+series+volume+pages}% + }% + }{% + \usebibmacro{journal+volume+pages}% + }}}} + +\DeclareFieldFormat[jurisdiction]{institution}{\mkbibparens{#1}} + +\DeclareBibliographyDriver{jurisdiction}{% + \savebibmacro{title}% + \xapptobibmacro{labeltitle}{% + \setunit*{\addspace}% + \usebibmacro{casenumber}% + }{}{}% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{eucheck}% + \usebibmacro{author}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \printfield{note}% + \setunit{\addspace}% + \usebibmacro{reporter}% + \newunit + \printfield{pagetotal}% + \newunit\newblock + \printfield{institution}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isrn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}% + \restorebibmacro{title}} + +\DeclareFieldFormat[legislation]{datelabel}{% + \iftoggle{bbx:eu-oj}{% + \mkbibbrackets{#1}% + }{% + #1}} +\DeclareFieldFormat[legislation]{labeldate}{% + \iftoggle{bbx:labelistitle}{\mkbibemph{#1}}{#1}} +\DeclareFieldFormat[legislation]{chapter}{\biblcsstring{legalchapter}#1} +\newbibmacro*{series+chapter}{% + \iffieldundef{chapter}{}{% + \iffieldundef{series}{% + \printfield{chapter}% + }{% + \printtext[parens]{% + \printfield{series}% + \setunit{\addcomma\space}% + \printfield{chapter}}}% + \clearfield{series}}} + +\DeclareBibliographyDriver{legislation}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{eucheck}% + \usebibmacro{author}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \iffieldequalstr{entrysubtype}{secondary}{% + \setunit{\addcomma\space}% + \printfield{number}% + \clearfield{number}% + \printunit{\addcomma\space}% + }{% + \setunit{\addcomma\space}% + }% + \printfield{note}% + \iffieldundef{series}{% + \setunit{\addcomma\space}% + }{% + \setunit{\addspace}}% + \iftoggle{bbx:eu-oj}{% + \usebibmacro{eu:journal+series+volume+pages}% + }{% + \usebibmacro{series+chapter}% + } + \newunit\newblock + \usebibmacro{institution+location+date}% + \setunit{\addspace}% + \usebibmacro{series+type+number}% + \newunit\newblock + \printfield{pagetotal}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isrn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} + +\DeclareFieldFormat[letter]{title}{\iffieldundef{journaltitle}{\emph{#1}}{#1}} +\ExecuteBibliographyOptions[letter]{mergedate=maximum} +\DeclareBibliographyDriver{letter}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{bytranslator+others}% + \newunit\newblock + \usebibmacro{journal+issuetitle}% + \newunit\newblock + \printfield{howpublished}% + \newunit + \printfield{note}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}% +} + +\DeclareFieldFormat[software]{type}{\mkbibbrackets{#1}} +\DeclareBibliographyDriver{software}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor+others/translator+others}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title}% + \setunit{\addspace} + \printfield{type}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \printfield{howpublished}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{organization+location+date}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} + +\DeclareFieldFormat[image]{library}{#1} +\DeclareBibliographyDriver{image}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor+others/translator+others}% + \setunit{\printdelim{nametitledelim}}\newblock + \usebibmacro{title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \printfield{howpublished}% + \newunit\newblock + \printfield{type}% + \newunit + \printfield{note}% + \newunit\newblock + \usebibmacro{organization+location+date+library}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{addendum+pubstate}% + \setunit{\bibpagerefpunct}\newblock + \usebibmacro{pageref}% + \newunit\newblock + \iftoggle{bbx:related} + {\usebibmacro{related:init}% + \usebibmacro{related}} + {}% + \usebibmacro{finentry}} +\newbibmacro*{organization+location+date+library}{% + \ifboolexpr{ + test {\iffieldundef{library}} + or + not test {\iflistundef{publisher}} + }{% + \printlist{location}% + \setunit*{\addcolon\space}% + \clearfield{location}% + }{}% + \iflistundef{publisher}{% + \printlist{organization}% + }{% + \printlist{publisher}% + }% + \setunit{\addcomma\space}% + \usebibmacro{date}% + \newunit + \iffieldundef{library}{% + \iffieldundef{institution}{}{% + \bibsentence + \bibstring{at}% + \setunit{\addcolon\space}% + \printlist{location}% + \setunit*{\addperiod\space}% + \printfield{institution}% + }% + }{% + \bibsentence + \bibstring{at}% + \setunit{\addcolon\space}% + \printlist{location}% + \setunit*{\addperiod\space}% + \printfield{library}% + }% +} + +\DeclareBibliographyAlias{standard}{manual} +\DeclareBibliographyAlias{dataset}{online} + +%% +%% Copyright (C) 2018 by University of Bath +%% +%% End of file `bath.bbx'. diff --git a/Master/texmf-dist/tex/latex/biblatex-bath/bath.cbx b/Master/texmf-dist/tex/latex/biblatex-bath/bath.cbx new file mode 100644 index 00000000000..4830548fe42 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-bath/bath.cbx @@ -0,0 +1,38 @@ +%% +%% This is file `bath.cbx', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% biblatex-bath.dtx (with options: `cbx') +%% ---------------------------------------------------------------- +%% biblatex-bath --- Harvard referencing style as recommended by the University of Bath Library +%% Author: Alex Ball +%% E-mail: a.j.ball@bath.ac.uk +%% License: Released under the LaTeX Project Public License v1.3c or later +%% See: http://www.latex-project.org/lppl.txt +%% ---------------------------------------------------------------- +%% +\RequireCitationStyle{authoryear-comp} +\ExecuteBibliographyOptions{uniquename=init} +\renewcommand*{\compcitedelim}{\addsemicolon\space} +\xpatchbibmacro{cite:labeldate+extradate}{% + \iffieldundef{labelyear}% +}{% + \ifboolexpr{ + togl {bbx:nonodate} + and + not test {\iflabeldateisdate}}% +}{}{} +\providetoggle{bbx:labelistitle} +\xpatchbibmacro{cite:label}{% + \printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}% +}{% + \printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}% + \toggletrue{bbx:labelistitle}% +}{}{} + +%% +%% Copyright (C) 2018 by University of Bath +%% +%% End of file `bath.cbx'. diff --git a/Master/texmf-dist/tex/latex/biblatex-bath/bath.dbx b/Master/texmf-dist/tex/latex/biblatex-bath/bath.dbx new file mode 100644 index 00000000000..d48a0d68521 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-bath/bath.dbx @@ -0,0 +1,21 @@ +%% +%% This is file `bath.dbx', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% biblatex-bath.dtx (with options: `dbx') +%% ---------------------------------------------------------------- +%% biblatex-bath --- Harvard referencing style as recommended by the University of Bath Library +%% Author: Alex Ball +%% E-mail: a.j.ball@bath.ac.uk +%% License: Released under the LaTeX Project Public License v1.3c or later +%% See: http://www.latex-project.org/lppl.txt +%% ---------------------------------------------------------------- +%% +\DeclareDatamodelConstant[type=list]{nameparts}{prefix,family,suffix,given,cjk} + +%% +%% Copyright (C) 2018 by University of Bath +%% +%% End of file `bath.dbx'. diff --git a/Master/texmf-dist/tex/latex/biblatex-bath/british-bath.lbx b/Master/texmf-dist/tex/latex/biblatex-bath/british-bath.lbx new file mode 100644 index 00000000000..97d29932369 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-bath/british-bath.lbx @@ -0,0 +1,77 @@ +%% +%% This is file `british-bath.lbx', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% biblatex-bath.dtx (with options: `lbx') +%% ---------------------------------------------------------------- +%% biblatex-bath --- Harvard referencing style as recommended by the University of Bath Library +%% Author: Alex Ball +%% E-mail: a.j.ball@bath.ac.uk +%% License: Released under the LaTeX Project Public License v1.3c or later +%% See: http://www.latex-project.org/lppl.txt +%% ---------------------------------------------------------------- +%% +\InheritBibliographyExtras{british} +\DeclareBibliographyExtras{% + \protected\def\mkbibdatelong#1#2#3{% + \iffieldundef{#3} + {} + {\thefield{#3}% + \iffieldundef{#2}{}{\nobreakspace}}% + \iffieldundef{#2} + {} + {\mkbibmonth{\thefield{#2}}% + \iffieldundef{#1}{}{\space}}% + \iffieldbibstring{#1} + {\bibstring{\thefield{#1}}} + {\dateeraprintpre{#1}\stripzeros{\thefield{#1}}}}% + \renewrobustcmd*{\bibdatetimesep}{\addperiod\space}% + \renewrobustcmd*{\bibtimesep}{\addperiod}% + } + +\DeclareBibliographyStrings +{inherit = {british} +,urlseen = {{Accessed}{Accessed}} +,version = {{version~}{v\adddot}} +,january = {{January}{January}} +,february = {{February}{February}} +,march = {{March}{March}} +,april = {{April}{April}} +,may = {{May}{May}} +,june = {{June}{June}} +,july = {{July}{July}} +,august = {{August}{August}} +,september = {{September}{September}} +,october = {{October}{October}} +,november = {{November}{November}} +,december = {{December}{December}} +,patreq = {{patent application}{pat\adddot\ appl\adddot}} +,patreqde = {{German patent application}{German pat\adddot\ appl\adddot}} +,patreqeu = {{European patent application}{European pat\adddot\ appl\adddot}} +,patreqfr = {{French patent application}{French pat\adddot\ appl\adddot}} +,patrequk = {{British patent application}{British pat\adddot\ appl\adddot}} +,patrequs = {{U.S\adddotspace patent application}{U.S\adddotspace pat\adddot\ appl\adddot}} +,online = {{Online}{Online}} +,hours = {{hours}{hrs\adddot}} +,at = {{at}{at}} +,legalchapter = {{chapter}{c\adddot}} +,director = {{director}{dir\adddot}} +,directors = {{directors}{dir\adddot}} +,bydirector = {{directed by}{directed by}} +,performer = {{}{}} +,performers = {{}{}} +,byperformer = {{}{}} +,reader = {{reader}{reader}} +,readers = {{readers}{readers}} +,byreader = {{read by}{read by}} +,conductor = {{conductor}{cond\adddot}} +,conductors = {{conductors}{cond\adddot}} +,byconductor = {{conducted by}{conducted by}} +} + +%% +%% Copyright (C) 2018 by University of Bath +%% +%% End of file `british-bath.lbx'. |