-
Notifications
You must be signed in to change notification settings - Fork 0
/
muss.cbx
75 lines (60 loc) · 2.32 KB
/
muss.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
% File: muss.cbx
% Author: Timm Lichte (http://timm-lichte.de)
% Date: 2023-09-08T09:04:40+0200
% Version: 0.4 (tested with BibLaTeX v3.19)
% License: LPPL Version 1.3c
%
% ----------------------------------------------------------------
% MUSS: Minimal Unified Style Sheet for Computational Linguistics
% ----------------------------------------------------------------
%
% MUSS is a style sheet for BibLaTeX and comes with two files:
%
% - muss.bbx specifies the structure and formatting of entries in a list of references.
% - muss.cbx (this file) specifies the look of cite commands in the text.
%
% Please see muss.bbx for more information on the project.
%
%%%%%%%%%%%%%%%%%%%%%%%
\ProvidesFile{muss.cbx}
\ExecuteBibliographyOptions{
uniquename=minfull, % disambiguate names only in identical lists
uniquelist=minyear, % disambiguate labelname list only if labelyear is the same
autocite=inline, % \autocite behaves like \parencite
sortcites=false, % do not sort keys passed to a citation command
}
% MUSS is derived from authoryear.cbx.
% Note that by default also the definitions in biblatex.def are used.
\RequireCitationStyle{authoryear}
%%%%%%%%%%%%%%%%%%%%%%%%
% Special symbols
%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand*{\nameyeardelim}{\addspace} % print " " between author/editor and year
\renewcommand*{\postnotedelim}{\addcolon\space} % print ": " before postnote
\renewcommand{\multicitedelim}{\addcomma\space} % print ", " between citations passed to a citation command
\renewcommand{\compcitedelim}{\multicitedelim} % print ", " between compressed citations
%%%%%%%%%%%%%%%%%%%%%%%%
% Field formats
%%%%%%%%%%%%%%%%%%%%%%%%
\DeclareFieldFormat{postnote}{#1}
\DeclareFieldFormat{multipostnote}{#1}
%%%%%%%%%%%%%%%%%%%%%%%%
% Cite commands
%%%%%%%%%%%%%%%%%%%%%%%%
\DeclareCiteCommand{\fullcite}
{\defcounter{maxnames}{\blx@maxbibnames}% show all names
\usebibmacro{prenote}}
{\usedriver
{\DeclareNameAlias{sortname}{default}}
{\thefield{entrytype}}}
{\multicitedelim}
{\usebibmacro{postnote}}
\DeclareCiteCommand{\footfullcite}[\mkbibfootnote]
{\defcounter{maxnames}{\blx@maxbibnames}% show all names
\usebibmacro{prenote}}
{\usedriver
{\DeclareNameAlias{sortname}{default}}
{\thefield{entrytype}}}
{\multicitedelim}
{\usebibmacro{postnote}}
\endinput