-
Notifications
You must be signed in to change notification settings - Fork 1
/
blx-compat.def
122 lines (103 loc) · 4.23 KB
/
blx-compat.def
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
\ProvidesFile{blx-compat.def}
[\abx@cptid]
% LaTeX
\AtBeginDocument{%
\renewrobustcmd*{\bibliography}[1]{%
\blx@error
{'\string\bibliography' invalid}
{Use '\string\addbibresource' instead.\MessageBreak
I'm ignoring this command}}}
\renewrobustcmd*{\bibliographystyle}[1]{%
\blx@error
{'\string\bibliographystyle' invalid}
{Use the package option 'style' instead.\MessageBreak
I'm ignoring this command}}
% standard classes
\DeclareOption{openbib}{\ExecuteBibliographyOptions{block=par}}
% biblatex <0.9b
\DeclareBibliographyOption{defernums}[true]{%
\ExecuteBibliographyOptions{defernumbers=#1}}
\providecommand*{\lbx@fromlang}{%
\iffieldundef{origlanguage}
{\unspace}
{\bibstring{from\thefield{origlanguage}}}}
% memoir
\ifdef\ifnobibintoc
{\newcommand*{\ifmemoirbibintoc}{\notbool{nobibintoc}}}
{\newcommand{\ifmemoirbibintoc}[2]{#2}}
% KOMA-Script
\newcommand{\ifkomabibtotoc}[2]{#2}
\newcommand{\ifkomabibtotocnumbered}[2]{#2}
\ifdef\ds@bibtotoc
{% xkeyval breaks inheritance of key=value class options
\ifdef\XKV@classoptionslist
{\let\blx@classoptionslist\@classoptionslist
\let\@classoptionslist\XKV@classoptionslist
\AtEndOfPackage{\let\@classoptionslist\blx@classoptionslist}}
{}%
\DeclareOption{bibtotoc}{%
\let\ifkomabibtotoc=\@firstoftwo
\let\ifkomabibtotocnumbered=\@secondoftwo}
\DeclareOption{bibtotocnumbered}{%
\let\ifkomabibtotoc=\@firstoftwo
\let\ifkomabibtotocnumbered=\@firstoftwo}%
\DeclareOption{bibliography=totoc}{%
\let\ifkomabibtotoc=\@firstoftwo
\let\ifkomabibtotocnumbered=\@secondoftwo}
\DeclareOption{bibliography=nottotoc}{%
\let\ifkomabibtotoc=\@secondoftwo
\let\ifkomabibtotocnumbered=\@secondoftwo}
\DeclareOption{bibliography=totocnumbered}{%
\let\ifkomabibtotoc=\@firstoftwo
\let\ifkomabibtotocnumbered=\@firstoftwo}%
\DeclareOption{bibliography=oldstyle}{%
\ExecuteBibliographyOptions{block=space}}%
\DeclareOption{bibliography=openstyle}{%
\ExecuteBibliographyOptions{block=par}}%
\DeclareOption{toc=bib}{%
\let\ifkomabibtotoc=\@firstoftwo
\let\ifkomabibtotocnumbered=\@secondoftwo}%
\DeclareOption{toc=bibliography}{%
\let\ifkomabibtotoc=\@firstoftwo
\let\ifkomabibtotocnumbered=\@secondoftwo}%
\DeclareOption{toc=nobib}{%
\let\ifkomabibtotoc=\@secondoftwo
\let\ifkomabibtotocnumbered=\@secondoftwo}%
\DeclareOption{toc=nobibliography}{%
\let\ifkomabibtotoc=\@secondoftwo
\let\ifkomabibtotocnumbered=\@secondoftwo}%
\DeclareOption{toc=bibnumbered}{%
\let\ifkomabibtotoc=\@firstoftwo
\let\ifkomabibtotocnumbered=\@firstoftwo}%
\DeclareOption{toc=numberedbib}{%
\let\ifkomabibtotoc=\@firstoftwo
\let\ifkomabibtotocnumbered=\@firstoftwo}%
\DeclareOption{toc=bibliographynumbered}{%
\let\ifkomabibtotoc=\@firstoftwo
\let\ifkomabibtotocnumbered=\@firstoftwo}%
\DeclareOption{toc=numberedbibliography}{%
\let\ifkomabibtotoc=\@firstoftwo
\let\ifkomabibtotocnumbered=\@firstoftwo}}
{}
% biblatex <1.6
\define@key{blx@bib}{maxnames}{\blx@warn@depropt{maxnames}}
\define@key{blx@los}{maxnames}{\blx@warn@depropt{maxnames}}
\define@key{blx@bbs}{maxnames}{\blx@warn@depropt{maxnames}}
\define@key{blx@bbg}{maxnames}{\blx@warn@depropt{maxnames}}
\define@key{blx@bbc}{maxnames}{\blx@warn@depropt{maxnames}}
\define@key{blx@bib}{minnames}{\blx@warn@depropt{minnames}}
\define@key{blx@los}{minnames}{\blx@warn@depropt{minnames}}
\define@key{blx@bbs}{minnames}{\blx@warn@depropt{minnames}}
\define@key{blx@bbg}{minnames}{\blx@warn@depropt{minnames}}
\define@key{blx@bbc}{minnames}{\blx@warn@depropt{minnames}}
\define@key{blx@bib}{maxitems}{\blx@warn@depropt{maxitems}}
\define@key{blx@los}{maxitems}{\blx@warn@depropt{maxitems}}
\define@key{blx@bbs}{maxitems}{\blx@warn@depropt{maxitems}}
\define@key{blx@bbg}{maxitems}{\blx@warn@depropt{maxitems}}
\define@key{blx@bbc}{maxitems}{\blx@warn@depropt{maxitems}}
\define@key{blx@bib}{minitems}{\blx@warn@depropt{minitems}}
\define@key{blx@los}{minitems}{\blx@warn@depropt{minitems}}
\define@key{blx@bbs}{minitems}{\blx@warn@depropt{minitems}}
\define@key{blx@bbg}{minitems}{\blx@warn@depropt{minitems}}
\define@key{blx@bbc}{minitems}{\blx@warn@depropt{minitems}}
\endinput