summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex/blx-natbib.def
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-03-20 23:32:55 +0000
committerKarl Berry <karl@freefriends.org>2010-03-20 23:32:55 +0000
commit1080eb42d3947b4414c2bda84c4d0c0b809c4e16 (patch)
treed5e2f1893ee3a1f85c1b0d195db8ba0a8c28ff60 /Master/texmf-dist/tex/latex/biblatex/blx-natbib.def
parent6861935735f4cbecd9f2772a4123b3fb07d6ffc2 (diff)
biblatex 0.9a (19mar10)
git-svn-id: svn://tug.org/texlive/trunk@17511 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex/blx-natbib.def')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex/blx-natbib.def89
1 files changed, 89 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex/blx-natbib.def b/Master/texmf-dist/tex/latex/biblatex/blx-natbib.def
new file mode 100644
index 00000000000..5a3cb219fa1
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/biblatex/blx-natbib.def
@@ -0,0 +1,89 @@
+% $Id: blx-natbib.def,v 0.9a 2010/03/19 19:52:15 lehman beta $
+
+\ProvidesFile{blx-natbib.def}
+[\abx@rcsid $Id: blx-natbib.def,v 0.9a 2010/03/19 19:52:15 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