diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/biblatex/latex/blx-natbib.def |
Initial commit
Diffstat (limited to 'macros/latex/contrib/biblatex/latex/blx-natbib.def')
-rw-r--r-- | macros/latex/contrib/biblatex/latex/blx-natbib.def | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/macros/latex/contrib/biblatex/latex/blx-natbib.def b/macros/latex/contrib/biblatex/latex/blx-natbib.def new file mode 100644 index 0000000000..4817f72e16 --- /dev/null +++ b/macros/latex/contrib/biblatex/latex/blx-natbib.def @@ -0,0 +1,84 @@ +\ProvidesFile{blx-natbib.def} +[\abx@cptid] + +\DeclareDelimFormat{nameyeardelim}{\addcomma\space} + +\newrobustcmd*{\citet}{% + \@ifstar + {\AtNextCite{\AtEachCitekey{\defcounter{maxnames}{999}}}% + \textcite} + {\textcite}} + +\newrobustcmd*{\citep}{% + \@ifstar + {\AtNextCite{\AtEachCitekey{\defcounter{maxnames}{999}}}% + \parencite} + {\parencite}} + +\newrobustcmd*{\citealt}{% + \AtNextCite{\DeclareDelimFormat{nameyeardelim}{\addspace}}% + \@ifstar + {\AtNextCite{\AtEachCitekey{\defcounter{maxnames}{999}}}% + \cite} + {\cite}} + +\newrobustcmd*{\citealp}{% + \@ifstar + {\AtNextCite{\AtEachCitekey{\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 |