diff options
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.bbx | 89 |
1 files changed, 82 insertions, 7 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 4bc6c1bff6e..907555b7dd8 100644 --- a/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-modern.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-modern.bbx @@ -1,11 +1,11 @@ -% $Id: philosophy-modern.bbx,v 0.7c 2011/05/16 Valbusa$ -% Copyright 2009-2011 Ivan Valbusa. This package is author-maintained. +% $Id: philosophy-modern.bbx,v 0.8b 2012/05/06 Valbusa$ +% Copyright 2009-2012 Ivan Valbusa. This package is author-maintained. % Permission is granted to copy, distribute and/or modify this software under the % terms of the LaTeX Project Public License, version 1.3c % http://www.ctan.org/tex-archive/macros/latex/base/lppl.txt. -\ProvidesFile{philosophy-modern.bbx}[philosophy-modern.bbx,v 0.7c 2011/05/16 valbusa beta$] +\ProvidesFile{philosophy-modern.bbx}[philosophy-modern.bbx,v 0.8b 2012/05/06 valbusa beta$] \RequireBibliographyStyle{philosophy-classic} @@ -14,6 +14,7 @@ \settoggle{bbx:yearleft}{#1}} \ExecuteBibliographyOptions{% +dashed=true, yearleft=false} %% new lengths @@ -48,7 +49,7 @@ yearleft=false} \makebox[\bibhang][r]{% \printtext{% \iffieldundef{year}% - {\bibstring{nodate}}% + {}% {\printfield{labelyear}\printfield{extrayear}}% \hskip\yeartitle}}} @@ -75,11 +76,14 @@ yearleft=false} {}%MOD {\usebibmacro{bbx:savehash}% \printnames{author}% - \iffieldundef{authortype} + \iffieldundef{nameaddon}{}% + {\setunit{\addspace}% + \printtext[brackets]{\printfield{nameaddon}}}% + \iffieldundef{authortype} {}% {\setunit{\addcomma\space}}% \usebibmacro{authorstrg}% - \setunit{\addspace} +% \setunit{\addspace}% ? \postsep%ADD }}% {\global\undef\bbx@lasthash @@ -92,7 +96,7 @@ yearleft=false} test \ifuseeditor and not test {\ifnameundef{editor}} - } + }% {\usebibmacro{bbx:dashcheck} {}% removed \bibnamedash {\printnames{editor}% @@ -106,7 +110,77 @@ yearleft=false} {\usebibmacro{#1}\setunit{\addcomma\space}}{}% } + + % restoreclassic +%%--------------------------------------------------- +\define@key{blx@bib}{restoreclassic}[true]{% + \ifstrequal{#1}{true} + { +\setlength{\bibhang}{\parindent} +\renewcommand{\labelnamepunct}{\addcomma\space} + \renewbibmacro*{date+extrayear}{%mergedate=basic + \iffieldundef{labelyear} + {} + {\printtext[parens]{% + \printfield{labelyear}% + \printfield{extrayear}}}}% + +\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*{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*{labeltitle}{% + \iffieldundef{label} + {\iffieldundef{shorttitle} + {\printfield{title}% + \clearfield{title}} + {\printfield[title]{shorttitle}}} + {\printfield{label}}} +} + {}} + + %%--------------------------------------------------------------------------------------------- % BIBLIOGRAPHY DRIVERS %%--------------------------------------------------------------------------------------------- @@ -199,4 +273,5 @@ yearleft=false} \usebibmacro{pageref}% \usebibmacro{finentry}} + \endinput
\ No newline at end of file |