summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-nottsclassic/nottsclassic.cbx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-07-01 22:04:04 +0000
committerKarl Berry <karl@freefriends.org>2016-07-01 22:04:04 +0000
commit0ee8d441c29c80ef0ca37b141bce0801948328da (patch)
tree392fb163b8c6ba4713ee46261da3983cc40075ba /Master/texmf-dist/tex/latex/biblatex-nottsclassic/nottsclassic.cbx
parent8e9533e8eb59f990e39a9ca18c9f3ef5d5889701 (diff)
biblatex-nottsclassic (1jul16)
git-svn-id: svn://tug.org/texlive/trunk@41596 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-nottsclassic/nottsclassic.cbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-nottsclassic/nottsclassic.cbx155
1 files changed, 155 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-nottsclassic/nottsclassic.cbx b/Master/texmf-dist/tex/latex/biblatex-nottsclassic/nottsclassic.cbx
new file mode 100644
index 00000000000..77a4f7762fd
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/biblatex-nottsclassic/nottsclassic.cbx
@@ -0,0 +1,155 @@
+% nottsclassic -- %
+% Copyright (c) 2016 Lukas C. Bossert | William Leveritt
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+\ProvidesFile{nottsclassic.cbx}%
+ [2016/06/30 v0.1 nottsclassic]
+\RequireBibliographyStyle{authoryear}
+\ExecuteBibliographyOptions{%
+ citetracker=true,%
+ idemtracker=false,%
+ ibidtracker=true,%
+ opcittracker=true,%
+ loccittracker=true,%
+ labeldate=true,%
+ uniquename=init,
+ uniquelist=true,
+}
+%-----------------------
+
+\renewcommand*{\iffinalcitedelim}{\iflastcitekey}
+\renewcommand{\postnotedelim}{\addspace}
+\newbool{cbx:parens}
+
+\newbibmacro*{cite}{%
+\iffieldundef{shorthand}
+{\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}
+{\usebibmacro{cite:label}%
+\setunit{\nonameyeardelim}}
+{\printnames{labelname}%
+\setunit{\nameyeardelim}}%
+\usebibmacro{cite:labelyear+extrayear}}
+{\usebibmacro{cite:shorthand}}}
+
+\newbibmacro*{citeyear}{%
+\iffieldundef{shorthand}
+{\iffieldundef{labelyear}
+{\usebibmacro{cite:label}}
+{\usebibmacro{cite:labelyear+extrayear}}}
+{\usebibmacro{cite:shorthand}}}
+
+\newbibmacro*{textcite}{%
+\ifnameundef{labelname}
+{\iffieldundef{shorthand}
+{\usebibmacro{cite:label}%
+\setunit{%
+\global\booltrue{cbx:parens}%
+\nonameyeardelim\bibopenparen}%
+\ifnumequal{\value{citecount}}{1}
+{\usebibmacro{prenote}}
+{}%
+\usebibmacro{textcite:labelyear+extrayear}}
+{\usebibmacro{cite:shorthand}}}
+{\printnames{labelname}%
+\setunit{%
+\global\booltrue{cbx:parens}%
+\nameyeardelim\bibopenparen}%
+\ifnumequal{\value{citecount}}{1}
+{\usebibmacro{prenote}}
+{}%
+\usebibmacro{citeyear}}}
+
+\newbibmacro*{cite:shorthand}{%
+\printtext[bibhyperref]{\printfield{shorthand}}}
+
+\newbibmacro*{cite:label}{%
+\iffieldundef{label}
+{\printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}}
+{\printtext[bibhyperref]{\printfield{label}}}}
+
+\newbibmacro*{cite:labelyear+extrayear}{%
+\iffieldundef{labelyear}
+{}
+{\printtext[bibhyperref]{%
+\printfield[parens]{labelyear}%
+\printfield[parens]{extrayear}}}}
+
+
+\newbibmacro*{textcite:postnote}{%
+\iffieldundef{postnote}
+{\ifbool{cbx:parens}
+{\bibcloseparen}
+{}}
+{\ifbool{cbx:parens}
+{\setunit{\postnotedelim}}
+{\setunit{\extpostnotedelim\bibopenparen}}%
+\printfield{postnote}\bibcloseparen}}
+
+\DeclareCiteCommand{\cite}
+{\usebibmacro{prenote}}
+{\usebibmacro{citeindex}%
+\usebibmacro{cite}}
+{\multicitedelim}
+{\usebibmacro{postnote}}
+
+\DeclareCiteCommand*{\cite}
+{\usebibmacro{prenote}}
+{\usebibmacro{citeindex}%
+\usebibmacro{citeyear}}
+{\multicitedelim}
+{\usebibmacro{postnote}}
+
+\DeclareCiteCommand{\parencite}[\mkbibparens]
+{\usebibmacro{prenote}}
+{\usebibmacro{citeindex}%
+\usebibmacro{cite}}
+{\multicitedelim}
+{\usebibmacro{postnote}}
+
+\DeclareCiteCommand*{\parencite}[\mkbibparens]
+{\usebibmacro{prenote}}
+{\usebibmacro{citeindex}%
+\usebibmacro{citeyear}}
+{\multicitedelim}
+{\usebibmacro{postnote}}
+
+\DeclareCiteCommand{\footcite}[\mkbibfootnote]
+{\usebibmacro{prenote}}
+{\usebibmacro{citeindex}%
+\usebibmacro{cite}}
+{\multicitedelim}
+{\usebibmacro{postnote}}
+
+\DeclareCiteCommand{\footcitetext}[\mkbibfootnotetext]
+{\usebibmacro{prenote}}
+{\usebibmacro{citeindex}%
+\usebibmacro{cite}}
+{\multicitedelim}
+{\usebibmacro{postnote}}
+
+\DeclareCiteCommand{\smartcite}[\iffootnote\mkbibparens\mkbibfootnote]
+{\usebibmacro{prenote}}
+{\usebibmacro{citeindex}%
+\usebibmacro{cite}}
+{\multicitedelim}
+{\usebibmacro{postnote}}
+
+
+\DeclareCiteCommand{\textcite}
+{\usebibmacro{prenote}}
+{\usebibmacro{citeindex}%
+\usebibmacro{cite}}
+{\multicitedelim}
+{\usebibmacro{postnote}}
+
+\DeclareMultiCiteCommand{\textcites}{\textcite}{}
+
+
+
+\endinput \ No newline at end of file