summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.cbx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.cbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.cbx288
1 files changed, 141 insertions, 147 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.cbx b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.cbx
index 5cd071de7f6..6d339f95292 100644
--- a/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.cbx
+++ b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.cbx
@@ -13,28 +13,24 @@
%% License information appended
%%
\ProvidesFile{philosophy-classic.cbx}
-[2017/03/21 v1.9.4 A set of styles for biblatex]
-
+[2017/04/13 v1.9.5 A set of styles for biblatex]
\RequireCitationStyle{authoryear-comp}
-\ExecuteBibliographyOptions{%
- citetracker = true,
-}
-
-\AtEveryCite{%
- \iftoggle{cbx:scauthorscite}%
- {\let\mkbibnamefamily\mkbibsc%
- \let\mkbibnamegiven\mkbibsc%
- \let\mkbibnameprefix\mkbibsc%
- \let\mkbibnamesuffix\mkbibsc}%
- {}}%
+\ExecuteBibliographyOptions{citetracker}
-\newcommand{\switchclass}[2]{%
+\newcommand{\switchATAY}[2]{%
\iffieldequalstr{entrysubtype}{classic}%
{\usebibmacro{#1}}%
{\usebibmacro{#2}}}
+\newbibmacro*{cbx:testshorthand}[1]{%
+\ifboolexpr{
+ not test {\iftoggle{cbx:shorthandintro}}
+ or
+ test \ifciteseen}
+ {\usebibmacro{cite:shorthand}}{\usebibmacro{#1}%
+ \usebibmacro{shorthandintro}}}
\newbibmacro*{cite:init:AT}{%
\ifnumless{\value{multicitecount}}{2}
{\global\boolfalse{cbx:parens}%
@@ -46,24 +42,27 @@
\newbibmacro*{cite:reinit:AT}{%
\global\undef\cbx@lasthash}
-\newbibmacro*{cite:AT}{%
- \iffieldundef{shorthand}
- {\iffieldequals{namehash}{\cbx@lasthash}
- {\setunit{\compcitedelim}}%
+\newbibmacro*{cite:AT:noshorthand}{%
+\iffieldequals{namehash}{\cbx@lasthash}
+ {\setunit{\compcitedelim}}
{\ifnameundef{labelname}
{}%
{\printnames{labelname}%
- \setunit{\nametitledelim}}%
+ \setunit{\printdelim{nametitledelim}}}%
\savefield{namehash}{\cbx@lasthash}}%
\usebibmacro{cite:title:AT}}
- {\usebibmacro{cite:shorthand}%
+
+\newbibmacro*{cite:AT}{%
+ \iffieldundef{shorthand}
+ {\usebibmacro{cite:AT:noshorthand}}
+ {\usebibmacro{cbx:testshorthand}{cite:AT:noshorthand}%
\usebibmacro{cite:reinit:AT}}%
\setunit{\multicitedelim}}
\newbibmacro*{citetitle:AT}{%
\iffieldundef{shorthand}
{\usebibmacro{cite:title:AT}}%
- {\usebibmacro{cite:shorthand}}%
+ {\usebibmacro{cbx:testshorthand}{cite:title:AT}}%
\setunit{\multicitedelim}}
\newbibmacro*{textcite:AT}{%
@@ -73,24 +72,21 @@
{}%
{\printnames{labelname}%
\setunit{%
- \global\booltrue{cbx:parens}%
- \addspace\bibopenparen}}%
+ \global\booltrue{cbx:parens}%
+ \printdelim{nametitledelim}\bibopenparen}}%
+ \stepcounter{textcitecount}%
\savefield{namehash}{\cbx@lasthash}}%
\ifnumequal{\value{citecount}}{1}
{\usebibmacro{prenote}}
{}%
\iffieldundef{shorthand}
{\usebibmacro{cite:title:AT}}%
- {\iftoggle{cbx:shorthandintro}{%
- \ifciteseen{%
- \usebibmacro{cite:shorthand}}%
- {\usebibmacro{shorthandintro}}}%
- {\usebibmacro{cite:shorthand}}}%
+ {\usebibmacro{cbx:testshorthand}{cite:title:AT}}%
\setunit{%
\ifbool{cbx:parens}
{\bibcloseparen\global\boolfalse{cbx:parens}}
{}%
- \multicitedelim}}
+ \textcitedelim}}
\newbibmacro*{cite:title:AT}{%
\printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}}
@@ -99,20 +95,20 @@
\ifnameundef{labelname}
{\setunit{%
\global\booltrue{cbx:parens}%
- \addspace\bibopenparen}}
+ \extpostnotedelim\bibopenparen}}
{\setunit{\postnotedelim}}%
\printfield{postnote}%
\ifthenelse{\value{multicitecount}=\value{multicitetotal}}
{\setunit{}%
\printtext{%
\ifbool{cbx:parens}
- {\bibcloseparen\global\boolfalse{cbx:parens}}
- {}}}
+ {\bibcloseparen\global\boolfalse{cbx:parens}}
+ {}}}
{\setunit{%
\ifbool{cbx:parens}
- {\bibcloseparen\global\boolfalse{cbx:parens}}
- {}%
- \multicitedelim}}}
+ {\bibcloseparen\global\boolfalse{cbx:parens}}
+ {}%
+ \textcitedelim}}}
\newbibmacro*{cite:init:AY}{%
\ifnumless{\value{multicitecount}}{2}
{\global\boolfalse{cbx:parens}%
@@ -121,98 +117,93 @@
{\iffieldundef{prenote}
{}
{\global\undef\cbx@lasthash
- \global\undef\cbx@lastyear}}}
+ \global\undef\cbx@lastyear}}}
\newbibmacro*{cite:reinit:AY}{%
\global\undef\cbx@lasthash
\global\undef\cbx@lastyear}
+\newbibmacro*{cite:AY:noshorthand}{%
+\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}
+ {\usebibmacro{cite:label}%
+ \setunit{\printdelim{nonameyeardelim}}%
+ \usebibmacro{cite:labelyear+extrayear}%
+ \usebibmacro{cite:reinit}}
+ {\iffieldequals{namehash}{\cbx@lasthash}
+ {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND
+ \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)}
+ {\setunit{\addcomma}%
+ \usebibmacro{cite:extrayear}}
+ {\setunit{\compcitedelim}%
+ \usebibmacro{cite:labelyear+extrayear}%
+ \savefield{labelyear}{\cbx@lastyear}}}
+ {\printnames{labelname}%
+ \setunit{\printdelim{nameyeardelim}}%
+ \usebibmacro{cite:labelyear+extrayear}%
+ \savefield{namehash}{\cbx@lasthash}%
+ \savefield{labelyear}{\cbx@lastyear}}}}
+
\newbibmacro*{cite:AY}{%
- \iffieldundef{shorthand}%
- {\usebibmacro{cite:noshorthand}}%
- {\iftoggle{cbx:shorthandintro}%
- {\ifciteseen{\usebibmacro{cite:shorthand}}%
- {\usebibmacro{cite:noshorthand}%
- \usebibmacro{shorthandintro}}}%
- {\usebibmacro{cite:shorthand}}%
- \usebibmacro{cite:reinit:AY}}%
+ \iffieldundef{shorthand}
+ {\usebibmacro{cite:AY:noshorthand}}%
+ {\usebibmacro{cbx:testshorthand}{cite:AY:noshorthand}%
+ \usebibmacro{cite:reinit}}%
\setunit{\multicitedelim}}
-\newbibmacro*{textcite:AY}{%
- \iffieldequals{namehash}{\cbx@lasthash}%
- {\iffieldundef{shorthand}%noshorthand
- {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND
- \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)}%
- {\setunit{\addcomma}%
- \usebibmacro{cite:extrayear}}%
- {\setunit{\compcitedelim}%
- \usebibmacro{cite:labelyear+extrayear}%
- \savefield{labelyear}{\cbx@lastyear}}}%
- {\setunit{\compcitedelim}%shorthand
- \iftoggle{cbx:shorthandintro}%
- {\ifciteseen
- {\usebibmacro{cite:shorthand}}%
- {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND
- \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)}%
+\newbibmacro*{textcite:AY:noshorthand:A}{%
+\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND
+ \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)}
{\setunit{\addcomma}%
- \usebibmacro{cite:extrayear}}%
+ \usebibmacro{cite:extrayear}}
{\setunit{\compcitedelim}%
\usebibmacro{cite:labelyear+extrayear}%
- \savefield{labelyear}{\cbx@lastyear}}%
- \usebibmacro{shorthandintro}}}%
- {\usebibmacro{cite:shorthand}}%
- \global\undef\cbx@lastyear}}%
+ \savefield{labelyear}{\cbx@lastyear}}}
+
+\newbibmacro*{textcite:AY:noshorthand:B}{%
+\usebibmacro{cite:label}%
+ \setunit{%
+ \global\booltrue{cbx:parens}%
+ \printdelim{nonameyeardelim}\bibopenparen}%
+ \ifnumequal{\value{citecount}}{1}
+ {\usebibmacro{prenote}}
+ {}%
+ \usebibmacro{cite:labelyear+extrayear}}
+
+\newbibmacro*{textcite:AY:noshorthand:C}{%
+\iffieldundef{labelyear}
+ {\usebibmacro{cite:label}}
+ {\usebibmacro{cite:labelyear+extrayear}}%
+ \savefield{labelyear}{\cbx@lastyear}}
+
+\newbibmacro*{textcite:AY}{%
+ \iffieldequals{namehash}{\cbx@lasthash}
+ {\iffieldundef{shorthand}
+ {\usebibmacro{textcite:AY:noshorthand:A}}
+ {\setunit{\compcitedelim}%
+\usebibmacro{cbx:testshorthand}{textcite:AY:noshorthand:A}%
+ \global\undef\cbx@lastyear}}
{\ifnameundef{labelname}%
- {\iffieldundef{shorthand}%shorthand
- {\usebibmacro{cite:label}%
- \setunit{%
- \global\booltrue{cbx:parens}%
- \addspace\bibopenparen}%
- \ifnumequal{\value{citecount}}{1}%
- {\usebibmacro{prenote}}%
- {\usebibmacro{cite:shorthand}}%
- \usebibmacro{cite:labelyear+extrayear}}%
- {\iftoggle{cbx:shorthandintro}%
- {\ifciteseen%shorthand
- {\usebibmacro{cite:shorthand}}%
- {\usebibmacro{cite:label}%
- \setunit{%
- \global\booltrue{cbx:parens}%
- \addspace\bibopenparen}%
- \ifnumequal{\value{citecount}}{1}%
- {\usebibmacro{prenote}}%
- {\usebibmacro{cite:shorthand}}%
- \usebibmacro{cite:labelyear+extrayear}%
- \usebibmacro{shorthandintro}}}}%
- {\usebibmacro{cite:shorthand}}}%
+ {\iffieldundef{shorthand}
+ {\usebibmacro{textcite:AY:noshorthand:B}}
+ {\usebibmacro{cbx:testshorthand}{textcite:AY:noshorthand:B}}}
{\printnames{labelname}%
-\setunit{%
- \global\booltrue{cbx:parens}%
- \addspace\bibopenparen}%
-\ifnumequal{\value{citecount}}{1}%
- {\usebibmacro{prenote}}%
- {}%
- \iffieldundef{shorthand}%noshorthand
- {\iffieldundef{labelyear}%
- {\usebibmacro{cite:label}}%
- {\usebibmacro{cite:labelyear+extrayear}}%
- \savefield{labelyear}{\cbx@lastyear}}%
- {\iftoggle{cbx:shorthandintro}%
- {\ifciteseen%
- {\usebibmacro{cite:shorthand}}%
- {\iffieldundef{labelyear}%
- {\usebibmacro{cite:label}}%
- {\usebibmacro{cite:labelyear+extrayear}}%
- \savefield{labelyear}{\cbx@lastyear}%
- \usebibmacro{shorthandintro}}%
- \global\undef\cbx@lastyear}%
- {\usebibmacro{cite:shorthand}}}%
- \savefield{namehash}{\cbx@lasthash}}}%
+ \setunit{%
+ \global\booltrue{cbx:parens}%
+ \printdelim{nameyeardelim}\bibopenparen}%
+ \ifnumequal{\value{citecount}}{1}
+ {\usebibmacro{prenote}}
+ {}%
+ \iffieldundef{shorthand}
+ {\usebibmacro{textcite:AY:noshorthand:C}}%
+ {\usebibmacro{cbx:testshorthand}{textcite:AY:noshorthand:C}%
+ \global\undef\cbx@lastyear}}%
+ \stepcounter{textcitecount}%
+ \savefield{namehash}{\cbx@lasthash}}%
\setunit{%
- \ifbool{cbx:parens}%
- {\bibcloseparen\global\boolfalse{cbx:parens}}%
+ \ifbool{cbx:parens}
+ {\bibcloseparen\global\boolfalse{cbx:parens}}
{}%
- \multicitedelim}}%
+ \textcitedelim}}
\newbibmacro*{textcite:postnote:AY}{%
\usebibmacro{postnote}%
@@ -227,44 +218,21 @@
{\bibcloseparen\global\boolfalse{cbx:parens}}
{}%
\multicitedelim}}}
-\renewbibmacro*{cite:shorthand}{%
- \printtext[bibhyperref]{\printfield{shorthand}}}
\renewbibmacro*{cite:init}{%
- \switchclass{cite:init:AT}{cite:init:AY}}
+ \switchATAY{cite:init:AT}{cite:init:AY}}
\renewbibmacro*{cite:reinit}{%
- \switchclass{cite:reinit:AT}{cite:reinit:AY}}
+ \switchATAY{cite:reinit:AT}{cite:reinit:AY}}
\renewbibmacro*{cite}{%
- \switchclass{cite:AT}{cite:AY}}
+ \switchATAY{cite:AT}{cite:AY}}
\renewbibmacro*{textcite}{%
- \switchclass{textcite:AT}{textcite:AY}}
+ \switchATAY{textcite:AT}{textcite:AY}}
\renewbibmacro*{textcite:postnote}{%
- \switchclass{textcite:postnote:AT}{textcite:postnote:AY}}
-
-\newbibmacro*{cite:noshorthand}{%
-\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}%
- {\usebibmacro{cite:label}%
-\setunit{\addspace}%
-\usebibmacro{cite:labelyear+extrayear}%
- \usebibmacro{cite:reinit}}%
- {\iffieldequals{namehash}{\cbx@lasthash}%
- {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND
- \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)}%
- {\setunit{\addcomma}%
- \usebibmacro{cite:extrayear}}%
- {\setunit{\compcitedelim}%
- \usebibmacro{cite:labelyear+extrayear}%
- \savefield{labelyear}{\cbx@lastyear}}}%
- {\printnames{labelname}%
- \setunit{\nameyeardelim}%
- \usebibmacro{cite:labelyear+extrayear}%
- \savefield{namehash}{\cbx@lasthash}%
- \iffieldundef{postnote}%
- {\savefield{labelyear}{\cbx@lastyear}}{}}}}
+ \switchATAY{textcite:postnote:AT}{textcite:postnote:AY}}
\DeclareCiteCommand*{\cite}
{\usebibmacro{cite:init}%
\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
- \switchclass{citetitle:AT}{citeyear}}%
+ \switchATAY{citetitle:AT}{citeyear}}%
{}
{\usebibmacro{postnote}}
@@ -272,16 +240,17 @@
{\usebibmacro{cite:init}%
\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
- \switchclass{citetitle:AT}{citeyear}}
+ \switchATAY{citetitle:AT}{citeyear}}
{}
{\usebibmacro{postnote}}
-
\DeclareCiteCommand{\citetitle}
{\boolfalse{citetracker}%
\boolfalse{pagetracker}%
\usebibmacro{prenote}}
- {\indexfield{indextitle}%
- \printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}}
+ {\ifciteindex
+ {\indexfield{indextitle}}
+ {}%
+ \printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}}
{\multicitedelim}
{\usebibmacro{postnote}}
@@ -289,8 +258,10 @@
{\boolfalse{citetracker}%
\boolfalse{pagetracker}%
\usebibmacro{prenote}}
- {\indexfield{indextitle}%
- \printtext[bibhyperref]{\printfield[citetitle]{title}}}
+ {\ifciteindex
+ {\indexfield{indextitle}}
+ {}%
+ \printtext[bibhyperref]{\printfield[citetitle]{title}}}
{\multicitedelim}
{\usebibmacro{postnote}}
@@ -302,6 +273,29 @@
{\multicitedelim}
{\usebibmacro{postnote}}
+\DeclareCiteCommand*{\citeyear}
+ {\boolfalse{citetracker}%
+ \boolfalse{pagetracker}%
+ \usebibmacro{prenote}}
+ {\printtext[bibhyperref]{\printfield{year}\printfield{extrayear}}}
+ {\multicitedelim}
+ {\usebibmacro{postnote}}
+
+\DeclareCiteCommand{\citedate}
+ {\boolfalse{citetracker}%
+ \boolfalse{pagetracker}%
+ \usebibmacro{prenote}}
+ {\printtext[bibhyperref]{\printdate}}
+ {\multicitedelim}
+ {\usebibmacro{postnote}}
+
+\DeclareCiteCommand*{\citedate}
+ {\boolfalse{citetracker}%
+ \boolfalse{pagetracker}%
+ \usebibmacro{prenote}}
+ {\printtext[bibhyperref]{\printdateextra}}
+ {\multicitedelim}
+ {\usebibmacro{postnote}}
\DeclareCiteCommand{\footcitet}[\mkbibfootnote]
{\usebibmacro{cite:init}}
{\usebibmacro{citeindex}%