summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-modern.bbx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-modern.bbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-modern.bbx346
1 files changed, 148 insertions, 198 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-modern.bbx b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-modern.bbx
index ebef2925fc8..03b1c1bc8d1 100644
--- a/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-modern.bbx
+++ b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-modern.bbx
@@ -13,17 +13,84 @@
%% License information appended
%%
\ProvidesFile{philosophy-modern.bbx}
-[2017/03/21 v1.9.4 A set of styles for biblatex]
-
+[2017/04/13 v1.9.5 A set of styles for biblatex]
\RequireBibliographyStyle{philosophy-classic}
\newtoggle{bbx:yearleft}
\DeclareBibliographyOption{yearleft}[true]{%
\settoggle{bbx:yearleft}{#1}}
-\ExecuteBibliographyOptions{%
- yearleft=false}
-
+\define@key{blx@biblist1}{restoreclassic}[]{}
+\define@key{blx@biblist2}{restoreclassic}[true]{\setkeys{blx@bib2}{restoreclassic}}%
+\define@key{blx@bib1}{restoreclassic}[]{}
+\define@key{blx@bib2}{restoreclassic}[true]{%
+\ifstrequal{#1}{true}{%
+\setlength{\bibhang}{\parindent}%
+\renewcommand{\labelnamepunct}{\newunitpunct}%
+\renewcommand*{\postsepyear}[1]{\printtext[parens]{##1}}%
+\renewbibmacro*{author}{%
+ \ifboolexpr{
+ test \ifuseauthor
+ and
+ not test {\ifnameundef{author}}
+ }
+ {\usebibmacro{bbx:dashcheck}
+ {\bibnamedash}%
+ {\usebibmacro{bbx:savehash}%
+ \printnames{author}%
+ \iffieldundef{nameaddon}{}%
+ {\setunit{\addspace}%
+ \printtext[brackets]{\printfield{nameaddon}}}%*
+ \iffieldundef{authortype}
+ {\setunit{\printdelim{nameyeardelim}}}%
+ {\setunit{\printdelim{editorstrgdelim}}}}%*
+ \iffieldundef{authortype}
+ {}%
+ {\usebibmacro{authorstrg}%
+ \setunit{\printdelim{nameyeardelim}}}}%
+ {\global\undef\bbx@lasthash
+ \usebibmacro{labeltitle}%
+ \setunit*{\printdelim{nonameyeardelim}}}%
+ \usebibmacro{date+extrayear}}%
+\renewbibmacro*{bbx:editor}[1]{%
+ \ifboolexpr{
+ test \ifuseeditor
+ and
+ not test {\ifnameundef{editor}}
+ }
+ {\usebibmacro{bbx:dashcheck}
+ {\bibnamedash}%
+ {\printnames{editor}%
+ \setunit{\printdelim{editorstrgdelim}}%
+ \usebibmacro{bbx:savehash}}%
+ \usebibmacro{##1}%
+ \clearname{editor}%
+ \setunit{\printdelim{nameyeardelim}}}%
+ {\global\undef\bbx@lasthash
+ \usebibmacro{labeltitle}%
+ \setunit*{\printdelim{nonameyeardelim}}}%
+ \usebibmacro{date+extrayear}}%
+\renewbibmacro*{bbx:translator}[1]{%
+ \ifboolexpr{
+ test \ifusetranslator
+ and
+ not test {\ifnameundef{translator}}
+ }
+ {\usebibmacro{bbx:dashcheck}
+ {\bibnamedash}%
+ {\printnames{translator}%
+ \setunit{\printdelim{editorstrgdelim}}%
+ \usebibmacro{bbx:savehash}}%
+ \usebibmacro{##1}%
+ \clearname{translator}%
+ \setunit{\printdelim{nameyeardelim}}}%
+ {\global\undef\bbx@lasthash
+ \usebibmacro{labeltitle}%
+ \setunit*{\printdelim{nonameyeardelim}}}%
+ \usebibmacro{date+extrayear}}%
+}{}}%
+\ExecuteBibliographyOptions{yearleft=false}
+\renewcommand{\labelnamepunct}{}
\newlength{\yeartitle}
\newlength{\postnamesep}
\setlength{\yeartitle}{0.8em}
@@ -31,110 +98,95 @@
\setlength{\bibitemsep}{\postnamesep}
\setlength{\bibnamesep}{1.5ex plus 2pt minus 1pt}
\setlength{\bibhang}{4\parindent}
-
-\AtBeginBibliography{%
-\iftoggle{bbx:yearleft}{%
-\setlength{\yeartitle}{\fill}}%
-{}}
-\newcommand{\postsep}{\par\nobreak\vskip\postnamesep%
- \hskip-\bibhang\ignorespaces}
-\renewcommand{\labelnamepunct}{}
\AtBeginShorthands{%
-\renewcommand{\postsep}{}%\addspace in version 1.9.3
-\renewcommand{\labelnamepunct}{\newunitpunct}}
-\renewbibmacro*{date+extrayear}{%
- \begingroup%
- \clearfield{month}%
- \clearfield{day}%
- \makebox[\bibhang][r]{\printtext{%
- \ifboolexpr{%
- test {\iffieldundef{date}}
- and
- test {\iffieldundef{year}}
- }%
- {\iftoggle{bbx:nodate}{\printtext{%
- \midsentence\bibstring{nodate}}}{}}%
- {\printtext{\printdateextra}}%
- \hskip\yeartitle}}%
- \nopunct%
- \endgroup}%
+ \renewcommand{\postsep}{\addspace}%
+ \renewcommand{\labelnamepunct}{\newunitpunct}}
+\AtBeginBibliography{%
+ \iftoggle{bbx:yearleft}{%
+ \setlength{\yeartitle}{\fill}}{}}
+\newcommand{\postsep}{%
+ \null\par\nobreak\vskip\postnamesep%
+ \hskip-\bibhang\ignorespaces}
+\renewcommand*{\postsepyear}[1]{%
+ \printtext{\makebox[\bibhang][r]{%
+ #1\hskip\yeartitle}}\nopunct}
+\renewbibmacro*{bbx:nodate}{%
+ \postsepyear{%
+ \iftoggle{bbx:nodate}{%
+ \midsentence\bibstring{nodate}}{}}}
\renewbibmacro*{author}{%
- \ifboolexpr{%
+ \ifboolexpr{
test \ifuseauthor
and
not test {\ifnameundef{author}}
- }%
- {\usebibmacro{bbx:dashcheck}%
+ }
+ {\usebibmacro{bbx:dashcheck}
{}%
{\usebibmacro{bbx:savehash}%
\printnames{author}%
\iffieldundef{nameaddon}{}%
{\setunit{\addspace}%
- \printtext[brackets]{\printfield{nameaddon}}}%
- \iffieldundef{authortype}%
+ \printtext[brackets]{\printfield{nameaddon}}}%*
+ \postsep}%
+ \usebibmacro{date+extrayear}%
+ \iffieldundef{authortype}
{}%
- {\setunit{\addcomma\space}}%
- \usebibmacro{authorstrg}%
- \postsep}}%
- {\global\undef\bbx@lasthash%
- \usebibmacro{labeltitle}%
- \postsep%
- \setunit*{\addspace}}%
- \usebibmacro{date+extrayear}}%
-\renewbibmacro*{editor}{%
- \usebibmacro{bbx:editor}{editorstrg}}%
-\renewbibmacro*{editor+others}{%
- \usebibmacro{bbx:editor}{editor+othersstrg}}%
+ {\usebibmacro{authorstrg}%
+ \printtext{\addcomma\space}}}%
+ {\global\undef\bbx@lasthash
+ \usebibmacro{labeltitle}%
+ \postsep%
+ \usebibmacro{date+extrayear}%
+ }%
+ }
+
\renewbibmacro*{bbx:editor}[1]{%
-\ifboolexpr{%
-test \ifuseeditor
-and
-not test {\ifnameundef{editor}}
-}%
-{\usebibmacro{bbx:dashcheck}%
- {}%
- {\printnames{editor}%
- \postsep%ADD
- \usebibmacro{bbx:savehash}}%
- \usebibmacro{date+extrayear}%
- \usebibmacro{#1}%
- \clearname{editor}%
- \printtext{\addcomma\space}%
-}%
-{\global\undef\bbx@lasthash%
- \usebibmacro{labeltitle}%
- \postsep%
- \usebibmacro{date+extrayear}%
-}%
+ \ifboolexpr{%
+ test \ifuseeditor
+ and
+ not test {\ifnameundef{editor}}
+ }%
+ {\usebibmacro{bbx:dashcheck}%
+ {}%
+ {\printnames{editor}%
+ \postsep%
+ \usebibmacro{bbx:savehash}}%
+ \usebibmacro{date+extrayear}%
+ \usebibmacro{#1}%
+ \clearname{editor}%
+ \printtext{\addcomma\space}%
+ }%
+ {\global\undef\bbx@lasthash%
+ \usebibmacro{labeltitle}%
+ \postsep%
+ \usebibmacro{date+extrayear}%
+ }%
}%
-\renewbibmacro*{translator}{%
-\usebibmacro{bbx:translator}{translatorstrg}}
-\renewbibmacro*{translator+others}{%
-\usebibmacro{bbx:translator}{translator+othersstrg}}
+
\renewbibmacro*{bbx:translator}[1]{%
-\ifboolexpr{%
-test \ifusetranslator
-and
-not test {\ifnameundef{translator}}
-}%
-{\usebibmacro{bbx:dashcheck}%
- {}%
- {\printnames{translator}%
-\postsep%ADD
- \usebibmacro{bbx:savehash}}%
- \usebibmacro{date+extrayear}%
- \usebibmacro{#1}%
- \clearname{translator}%
- \printtext{\addcomma\space}%
-}%
-{\global\undef\bbx@lasthash%
- \usebibmacro{labeltitle}%
- \postsep%
- \usebibmacro{date+extrayear}%
-}%
+ \ifboolexpr{%
+ test \ifusetranslator
+ and
+ not test {\ifnameundef{translator}}
+ }%
+ {\usebibmacro{bbx:dashcheck}%
+ {}%
+ {\printnames{translator}%
+ \postsep%
+ \usebibmacro{bbx:savehash}}%
+ \usebibmacro{date+extrayear}%
+ \usebibmacro{#1}%
+ \clearname{translator}%
+ \printtext{\addcomma\space}%
+ }%
+ {\global\undef\bbx@lasthash%
+ \usebibmacro{labeltitle}%
+ \postsep%
+ \usebibmacro{date+extrayear}%
+ }%
}%
\DeclareCiteCommand{\bbx@crossref@inbook}%
- {}%
+ {\renewcommand*{\postsepyear}{\printtext[parens]}}%
{\usebibmacro{citeindex}%
\ifuseeditor{%
\ifthenelse{\value{listtotal}=2}%
@@ -142,11 +194,11 @@ not test {\ifnameundef{translator}}
{\printnames[][-\value{minnamesincross}]{labelname}}}%
{\usebibmacro{labeltitle}}%
\setunit*{\addspace}%
- \usebibmacro{classic:date+extrayear}}%
+ \printtext[bibhyperref]{\usebibmacro{date+extrayear}}}%
{}%
{}%
\DeclareCiteCommand{\bbx@crossref@incollection}%
- {}%
+ {\renewcommand*{\postsepyear}{\printtext[parens]}}%
{\usebibmacro{citeindex}%
\ifuseeditor{%
\ifthenelse{\value{listtotal}=2}%
@@ -154,111 +206,9 @@ not test {\ifnameundef{translator}}
{\printnames[][-\value{minnamesincross}]{labelname}}}%
{\usebibmacro{labeltitle}}%
\setunit*{\addspace}%
- \usebibmacro{classic:date+extrayear}}%
+ \printtext[bibhyperref]{\usebibmacro{date+extrayear}}}%
{}%
{}%
-\newbibmacro*{classic:date+extrayear}{%
- \begingroup%
- \clearfield{month}%
- \clearfield{day}%
- \ifboolexpr{%
- test {\iffieldundef{date}}
- and
- test {\iffieldundef{year}}
- }%
- {\iftoggle{bbx:nodate}{\printtext[parens]{%
- \midsentence\bibstring{nodate}}}{}}%
- {\printtext[parens]{%
- \printfield{labelyear}%
- \printfield{extrayear}}}%
- \endgroup}%
-\define@key{blx@bib1}{restoreclassic}[]{}
-\define@key{blx@bib2}{restoreclassic}[true]{%
- \ifstrequal{#1}{true}{%
- \setlength{\bibhang}{\parindent}%
- \renewcommand{\labelnamepunct}{\newunitpunct}%
-\renewbibmacro*{date+extrayear}{%
- \begingroup%
- \clearfield{month}%
- \clearfield{day}%
- \ifboolexpr{%
- test {\iffieldundef{date}}
- and
- test {\iffieldundef{year}}
- }%
- {\iftoggle{bbx:nodate}{\printtext[parens]{%
- \midsentence\bibstring{nodate}}}{}}%
- {\printtext[parens]{\printdateextra}}%
- \endgroup}%
-\renewbibmacro*{author}{%
- \ifboolexpr{%
- test \ifuseauthor
- and
- not test {\ifnameundef{author}}
- }%
- {\usebibmacro{bbx:dashcheck}%
- {\bibnamedash}%
- {\usebibmacro{bbx:savehash}%
- \printnames{author}%
- \iffieldundef{nameaddon}{}%
- {\setunit{\addspace}%
- \printtext[brackets]{\printfield{nameaddon}}}%
-\iffieldundef{authortype}%
- {\setunit{\addspace}}%
- {\setunit{\addcomma\space}}}%
- \iffieldundef{authortype}%
- {}%
- {\usebibmacro{authorstrg}%
- \setunit{\addspace}}}%
- {\global\undef\bbx@lasthash%
- \usebibmacro{labeltitle}%
- \setunit*{\addspace}}%
- \usebibmacro{date+extrayear}}%
-\renewbibmacro*{editor}{%
- \usebibmacro{bbx:editor}{editorstrg}}%
-\renewbibmacro*{editor+others}{%
- \usebibmacro{bbx:editor}{editor+othersstrg}}%
-\renewbibmacro*{bbx:editor}[1]{%
- \ifboolexpr{%
- test \ifuseeditor
- and
- not test {\ifnameundef{editor}}
- }%
- {\usebibmacro{bbx:dashcheck}%
- {\bibnamedash}%
- {\printnames{editor}%
-\setunit{\addspace}%
-\usebibmacro{bbx:savehash}}%
- \usebibmacro{#1}%
- \clearname{editor}%
- \setunit{\addspace}}%
- {\global\undef\bbx@lasthash%
- \usebibmacro{labeltitle}%
- \setunit*{\addspace}}%
- \usebibmacro{date+extrayear}}%
-\renewbibmacro*{translator}{%
-\usebibmacro{bbx:translator}{translatorstrg}}%
-\renewbibmacro*{translator+others}{%
-\usebibmacro{bbx:translator}{translator+othersstrg}}%
-\renewbibmacro*{bbx:translator}[1]{%
-\ifboolexpr{%
-test \ifusetranslator
-and
-not test {\ifnameundef{translator}}
-}%
-{\usebibmacro{bbx:dashcheck}%
-{\bibnamedash}%
-{\printnames{translator}%
-\setunit{\addspace}%
-\usebibmacro{bbx:savehash}}%
-\usebibmacro{#1}%
-\clearname{translator}%
-\setunit{\addspace}}%
-{\global\undef\bbx@lasthash%
-\usebibmacro{labeltitle}%
-\setunit*{\addspace}}%
-\usebibmacro{date+extrayear}}%
- }{}}%
%%
%% Copyright 2009-2017 by Ivan Valbusa
%%