diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-ms/bbx/alphabetic-ms.bbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-ms/bbx/alphabetic-ms.bbx | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-ms/bbx/alphabetic-ms.bbx b/Master/texmf-dist/tex/latex/biblatex-ms/bbx/alphabetic-ms.bbx new file mode 100644 index 00000000000..17a44b81cf7 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-ms/bbx/alphabetic-ms.bbx @@ -0,0 +1,60 @@ +\ProvidesFile{alphabetic-ms.bbx} +[\abx@bbxid] + +\RequireBibliographyStyle{standard} +\ExecuteBibliographyOptions{labelalpha,sorting=anyt} + +\providebool{bbx:subentry} + +\DeclareBiblatexOption{global,type,entry}[boolean]{subentry}[true]{% + \setbool{bbx:subentry}{#1}} + +\DeclareNameAlias{author}{default} +\DeclareNameAlias{editor}{default} +\DeclareNameAlias{translator}{default} + +\DeclareFieldFormat{bibentrysetcount}{\mkbibparens{\mknumalph{#1}}} +\DeclareFieldFormat{labelalphawidth}{\mkbibbrackets{#1}} +\DeclareFieldFormat{shorthandwidth}{\mkbibbrackets{#1}} + +\defbibenvironment{bibliography} + {\list + {\printtext[labelalphawidth]{% + \printfield{labelprefix}% + \printfield{labelalpha}% + \printfield{extraalpha}}} + {\setlength{\labelwidth}{\labelalphawidth}% + \setlength{\leftmargin}{\labelwidth}% + \setlength{\labelsep}{\biblabelsep}% + \addtolength{\leftmargin}{\labelsep}% + \setlength{\itemsep}{\bibitemsep}% + \setlength{\parsep}{\bibparsep}}% + \renewcommand*{\makelabel}[1]{##1\hss}} + {\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]{##1\hss}}} + {\endlist} + {\item} + +\DeclareBibliographyDriver{set}{% + \entryset + {\ifbool{bbx:subentry} + {\printfield[bibentrysetcount]{entrysetcount}% + \printunit*{\addnbspace}} + {}} + {}% + \newunit\newblock + \usebibmacro{setpageref}% + \finentry} + +\endinput |