diff options
Diffstat (limited to 'macros/latex/contrib/biblatex-ms/latex/bbx/numeric-ms.bbx')
-rw-r--r-- | macros/latex/contrib/biblatex-ms/latex/bbx/numeric-ms.bbx | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/macros/latex/contrib/biblatex-ms/latex/bbx/numeric-ms.bbx b/macros/latex/contrib/biblatex-ms/latex/bbx/numeric-ms.bbx new file mode 100644 index 0000000000..98f83ad227 --- /dev/null +++ b/macros/latex/contrib/biblatex-ms/latex/bbx/numeric-ms.bbx @@ -0,0 +1,63 @@ +\ProvidesFile{numeric-ms.bbx} +[\abx@bbxid] + +\RequireBibliographyStyle{standard} +\ExecuteBibliographyOptions{labelnumber} + +\providebool{bbx:subentry} + +\DeclareBiblatexOption{global,type,entry}[boolean]{subentry}[true]{% + \setbool{bbx:subentry}{#1}} + +\DeclareNameAlias{author}{default} +\DeclareNameAlias{editor}{default} +\DeclareNameAlias{translator}{default} + +\DeclareNameWrapperAlias{author}{default} +\DeclareNameWrapperAlias{editor}{default} +\DeclareNameWrapperAlias{translator}{default} + +\DeclareFieldFormat{bibentrysetcount}{\mkbibparens{\mknumalph{#1}}} +\DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{#1}} +\DeclareFieldFormat{shorthandwidth}{\mkbibbrackets{#1}} + +\defbibenvironment{bibliography} + {\list + {\printtext[labelnumberwidth]{% + \printfield{labelprefix}% + \printfield{labelnumber}}} + {\setlength{\labelwidth}{\labelnumberwidth}% + \setlength{\leftmargin}{\labelwidth}% + \setlength{\labelsep}{\biblabelsep}% + \addtolength{\leftmargin}{\labelsep}% + \setlength{\itemsep}{\bibitemsep}% + \setlength{\parsep}{\bibparsep}}% + \renewcommand*{\makelabel}[1]{\hss##1}} + {\endlist} + {\item} + +\defbibenvironment{shorthand} + {\list + {\printfield[shorthandwidth]{shorthand}} + {\setlength{\labelwidth}{\shorthandwidth}% + \setlength{\leftmargin}{\labelwidth}% + \setlength{\labelsep}{\biblabelsep}% + \addtolength{\leftmargin}{\labelsep}% + \setlength{\itemsep}{\bibitemsep}% + \setlength{\parsep}{\bibparsep}% + \renewcommand*{\makelabel}[1]{\hss##1}}} + {\endlist} + {\item} + +\DeclareBibliographyDriver{set}{% + \entryset + {\ifbool{bbx:subentry} + {\printfield[bibentrysetcount]{entrysetcount}% + \printunit*{\addnbspace}} + {}} + {}% + \newunit\newblock + \usebibmacro{setpageref}% + \finentry} + +\endinput |