-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uscnumeric.bbx
60 lines (50 loc) · 1.82 KB
/
uscnumeric.bbx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
% This file is a small adjustment to the one below to
% meet the line spacing requirements of the Graduate School
% $Id: numeric.bbx,v 0.9b 2010/08/04 19:17:09 lehman beta $
\ProvidesFile{uscnumeric.bbx}
[2010/09/29 version 0.1 G. McNulty]
\RequireBibliographyStyle{standard}
\ExecuteBibliographyOptions{labelnumber}
\providebool{bbx:subentry}
\DeclareBibliographyOption{subentry}[true]{%
\setbool{bbx:subentry}{#1}}
\DeclareNameAlias{author}{default}
\DeclareNameAlias{editor}{default}
\DeclareNameAlias{translator}{default}
\DeclareFieldFormat{bibentrysetcount}{\mkbibparens{\mknumalph{#1}}}
\DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{#1}}
\DeclareFieldFormat{shorthandwidth}{\mkbibbrackets{#1}}
\defbibenvironment{bibliography}
{\list
{\printtext[labelnumberwidth]{%
\printfield{prefixnumber}%
\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}}
{\SingleSpacing\endlist}
{\SingleSpacing\item}
\defbibenvironment{shorthands}
{\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}}}
{\SingleSpacing\endlist}
{\SingleSpacing\item}
\DeclareBibliographyDriver{set}{%
\ifbool{bbx:subentry}
{\entryset{%
\printfield[bibentrysetcount]{entrysetcount}%
\setunit*{\addnbspace}}{}}
{\entryset{}{}}
\finentry}
\endinput