diff options
author | Karl Berry <karl@freefriends.org> | 2013-04-13 22:55:37 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-04-13 22:55:37 +0000 |
commit | bf689f9057fa5b4deab72d085b6e483c480aefa7 (patch) | |
tree | 3ca895a3099338054fe382a6efe2c7d7ba8c2619 /Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.bbx | |
parent | a3027590d416e99da1de28c8669669614850c97e (diff) |
biblatex-philosophy (13apr13)
git-svn-id: svn://tug.org/texlive/trunk@29893 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.bbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.bbx | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.bbx b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.bbx index 686b37ca9a5..d2ce3f8b2ad 100644 --- a/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.bbx @@ -13,18 +13,22 @@ %% License information appended %% \ProvidesFile{philosophy-classic.bbx} - [2013/03/30 v0.8d valbusa beta] + [2013/04/13 v0.8e valbusa beta] \RequireBibliographyStyle{authoryear} \RequireBibliographyStyle{philosophy-standard} \newtoggle{bbx:square} +\newtoggle{bbx:nodate} \DeclareBibliographyOption{square}[true]{% \settoggle{bbx:square}{#1}} +\DeclareBibliographyOption{nodate}[true]{% + \settoggle{bbx:nodate}{#1}} \ExecuteBibliographyOptions{% + nodate = true, uniquename = false, pagetracker = true, singletitle = false, @@ -72,10 +76,16 @@ \newbibmacro*{date+extrayear:crossref}{% \begingroup% \clearfield{month}% - \iffieldundef{labelyear} - {\printtext[parens]{\midsentence\bibstring{nodate}}} + \ifboolexpr{ + test {\iffieldundef{date}} + and + test {\iffieldundef{year}} + }% + {\iftoggle{bbx:nodate}{\printtext[parens]{% + \midsentence\bibstring{nodate}}}{}} {\printtext[parens]{\printdateextra}}% \endgroup}% +\newbibmacro*{date+extrayear}{}% } \AtBeginDocument{% @@ -86,6 +96,11 @@ \setcounter{maxnamesincross}{\value{maxnames}}% \setcounter{minnamesincross}{\value{minnames}}% } + +\AtEveryBibitem{% +\iffieldequalstr{entrysubtype}{classic}{% + \togglefalse{bbx:nodate}}} + \renewbibmacro*{relateddate}{} \renewbibmacro*{commarelateddate}{} \renewbibmacro*{issue+date}{% @@ -106,8 +121,13 @@ \renewbibmacro*{date+extrayear}{% \begingroup% \clearfield{month}% - \iffieldundef{labelyear} - {\printtext[parens]{\midsentence\bibstring{nodate}}} + \ifboolexpr{ + test {\iffieldundef{date}} + and + test {\iffieldundef{year}} + }% + {\iftoggle{bbx:nodate}{\printtext[parens]{% + \midsentence\bibstring{nodate}}}{}} {\printtext[parens]{\printdateextra}}% \endgroup}% \renewbibmacro*{author}{% |