-
Notifications
You must be signed in to change notification settings - Fork 5
/
gbt77142005.cbx
54 lines (47 loc) · 1.09 KB
/
gbt77142005.cbx
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
\ProvidesFile{gbt77142005.cbx}%
[2016/03/31 v0.2.5 Casper Ti. Vector's biblatex citation style]
\RequireCitationStyle{numeric-comp}
\ExecuteBibliographyOptions{
autocite = superscript,
autopunct = false
}
\newcommand*{\cbx@mksuperbrackets}[1]{\mkbibsuperscript{\mkbibbrackets{#1}}}
\newbibmacro*{cite}{%
\iffieldundef{shorthand}
{\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}
{\usebibmacro{cite:label}%
\setunit{\nonameyeardelim}}
{\printnames{labelname}%
\setunit{\nameyeardelim}}%
\usebibmacro{cite:labelyear+extrayear}}
{\usebibmacro{cite:shorthand}}}
\DeclareCiteCommand{\cite}
{%
\usebibmacro{cite:init}%
\usebibmacro{prenote}%
}
{%
\usebibmacro{citeindex}%
\usebibmacro{cite:comp}%
}
{}
{%
\usebibmacro{cite:dump}%
\usebibmacro{postnote}%
}
\DeclareCiteCommand{\supercite}[\cbx@mksuperbrackets]
{%
\usebibmacro{cite:init}%
\let\multicitedelim=\supercitedelim
\usebibmacro{prenote}%
}
{%
\usebibmacro{citeindex}%
\usebibmacro{cite:comp}%
}%
{}
{%
\usebibmacro{cite:dump}%
\usebibmacro{postnote}%
}
% vim:ft=tex:ts=2:sw=2