summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex/blx-natbib.def
blob: 8c8d6d4e1020522ddaf1e3283000a52d6f41fa48 (plain)
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
% $Id: blx-natbib.def,v 0.9e 2010/10/09 16:39:36 lehman beta $

\ProvidesFile{blx-natbib.def}
[\abx@rcsid $Id: blx-natbib.def,v 0.9e 2010/10/09 16:39:36 lehman beta $
 biblatex natbib compatibility]

\renewcommand*{\nameyeardelim}{\addcomma\space}

\newrobustcmd*{\citet}{%
  \@ifstar
    {\AtNextCite{\defcounter{maxnames}{999}}%
     \textcite}
    {\textcite}}

\newrobustcmd*{\citep}{%
  \@ifstar
    {\AtNextCite{\defcounter{maxnames}{999}}%
     \parencite}
    {\parencite}}

\newrobustcmd*{\citealt}{%
  \@ifstar
    {\AtNextCite{%
       \def\nameyeardelim{\addspace}%
       \defcounter{maxnames}{999}}%
     \cite}
    {\AtNextCite{\def\nameyeardelim{\addspace}}%
     \cite}}

\newrobustcmd*{\citealp}{%
  \@ifstar
    {\AtNextCite{\defcounter{maxnames}{999}}%
     \cite}
    {\cite}}

\DeclareCiteCommand*{\citeauthor}
  {\defcounter{maxnames}{999}%
   \boolfalse{citetracker}%
   \boolfalse{pagetracker}%
   \usebibmacro{prenote}}
  {\usebibmacro{citeindex}%
   \printnames{labelname}}
  {\multicitedelim}
  {\usebibmacro{postnote}}

\DeclareCiteCommand{\citeyearpar}[\mkbibparens]
  {\boolfalse{citetracker}%
   \boolfalse{pagetracker}%
   \usebibmacro{prenote}}
  {\printfield{year}}
  {\multicitedelim}
  {\usebibmacro{postnote}}

\newrobustcmd*{\Citet}{\bibsentence\citet}
\newrobustcmd*{\Citep}{\bibsentence\citep}
\newrobustcmd*{\Citealt}{\bibsentence\citealt}
\newrobustcmd*{\Citealp}{\bibsentence\citealp}
\newrobustcmd*{\citefullauthor}{\citeauthor*}
\newrobustcmd*{\Citefullauthor}{\bibsentence\citeauthor*}
\newrobustcmd*{\citetext}{\parentext}

\newrobustcmd*{\defcitealias}[2]{%
  \ifcsdef{abx@alias@\detokenize{#1}}
    {\PackageWarning{biblatex}{%
       Overwriting alias for entry '\detokenize{#1}'}}
    {}%
  \csgdef{abx@alias@\detokenize{#1}}{#2}}

\newcommand*{\@citealias}[1]{%
  \ifcsdef{abx@alias@#1}
    {\csuse{abx@alias@#1}}
    {\PackageWarning{biblatex}{No alias for entry '#1'}%
     \textbf{#1}}}

\DeclareCiteCommand{\citetalias}
  {\usebibmacro{prenote}}
  {\usebibmacro{citeindex}%
   \@citealias{\thefield{entrykey}}}
  {\multicitedelim}
  {\usebibmacro{postnote}}

\DeclareCiteCommand{\citepalias}[\mkbibparens]
  {\usebibmacro{prenote}}
  {\usebibmacro{citeindex}%
   \@citealias{\thefield{entrykey}}}
  {\multicitedelim}
  {\usebibmacro{postnote}}

\endinput