diff options
author | Karl Berry <karl@freefriends.org> | 2010-11-22 00:35:44 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-11-22 00:35:44 +0000 |
commit | 85f7041e0b2f447c48856bffbd4943c0ffc0a94c (patch) | |
tree | fc3bf72fedb71b11353c25de929ab51d86404146 /Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.bbx | |
parent | 7e6df8f048b4e07863f71df4d22ed7761ee38913 (diff) |
biblatex-philosophy (21nov10)
git-svn-id: svn://tug.org/texlive/trunk@20530 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 | 105 |
1 files changed, 50 insertions, 55 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 97f3104edd1..af0b0a9066c 100644 --- a/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.bbx @@ -1,22 +1,18 @@ -% $Id: philosophy-classic.bbx,v 0.7a 2010/04/03 Valbusa$ +% $Id: philosophy-classic.bbx,v 0.7b 2010/11/20 Valbusa$ % Copyright 2009-2010 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-classic.bbx}[philosophy-classic.bbx,v 0.7a 2010/04/03 valbusa beta$] +\ProvidesFile{philosophy-classic.bbx}[philosophy-classic.bbx,v 0.7b 2010/11/20 valbusa beta$] \RequireBibliographyStyle{authoryear} \RequireBibliographyStyle{philosophy-standard} -\DeclareLanguageMapping{italian}{italian-philosophy} -\DeclareLanguageMapping{english}{english-philosophy} -%*********************************************************************************************************** -% -% DECLARE AND EXECUTE BIBLIOGRAPHY OPTIONS -% -%*********************************************************************************************************** + +% DECLARE AND EXECUTE BIBLIOGRAPHY OPTIONS +%********************************************************************* \newbool{bbx:square} @@ -35,11 +31,8 @@ square=false} \newcounter{minnamesincross} -%*********************************************************************************************************** -% -% AT BEGIN SHORTHANDS -% -%*********************************************************************************************************** +% AT BEGIN SHORTHANDS +%***************************************** \AtBeginShorthands{% \boolfalse{bbx:annotation} \renewcommand{\labelnamepunct}{\addcomma\space} @@ -71,11 +64,8 @@ square=false} \newunit} \renewbibmacro*{date+extrayear}{}} -%*********************************************************************************************************** -% -% AT BEGIN DOCUMENT -% -%*********************************************************************************************************** +% AT BEGIN DOCUMENT +%************************************************** \AtBeginDocument{% \setcounter{maxnamesincross}{\value{maxnames}} \setcounter{minnamesincross}{\value{minnames}} @@ -85,8 +75,6 @@ square=false} \renewcommand{\bibcloseparen}{\bibclosebracket}} {}} - - %********************************************************************* % NUOVE MACRO %********************************************************************* @@ -99,39 +87,38 @@ square=false} \renewbibmacro*{issue+date}{% \ifdefstring{\bbx@volnumformat}{volnumparens} -{\printtext{% +{\ifthenelse{\iffieldundef{issue}\AND\iffieldundef{month}}{}{\printtext{% \iffieldundef{issue} {\printfield{month}}% - {\printfield{issue}}}}% + {\printfield{issue}}}}}% {\ifthenelse{\iffieldundef{issue}\AND\iffieldundef{month}}{}{\printtext[parens]{% \iffieldundef{issue} - {\printfield{month}} - {\printfield{issue}}}}} + {\printfield{month}}% + {\printfield{issue}}}}}% \newunit} % changed + \renewbibmacro*{bbx:editor}[1]{% \ifthenelse{\ifuseeditor\AND\NOT\ifnameundef{editor}} {\ifthenelse{\iffieldequals{fullhash}{\bbx@lasthash}\AND - \NOT\iffirstonpage} + \NOT\iffirstonpage\AND + \(\NOT\boolean{bbx@inset}\OR + \iffieldequalstr{entrysetcount}{1}\)} {\bibnamedash} {\printnames{editor}% \setunit{\addspace}% - \usebibmacro{date+extrayear}% - \setunit*{\addspace}% - \savefield{fullhash}{\bbx@lasthash}}% + \usebibmacro{bbx:savehash}}% \usebibmacro{#1}% \clearname{editor}% \setunit{\addspace}}% {\global\undef\bbx@lasthash \usebibmacro{labeltitle}% - \setunit*{\addspace}% - \usebibmacro{date+extrayear}% - }% -} - + \setunit*{\addspace}}% + \usebibmacro{date+extrayear}} + % Macro per la forma ``Publisher, Location Year''. -%*********************************************************************************************************** +%**************************************************************** \newbibmacro*{publocyear}{% \iflistundef{publisher}% {} @@ -157,7 +144,7 @@ square=false} \newunit} % Macro per la forma ``Location: Publisher, Year'' -%*********************************************************************************************************** +%**************************************************************** \newbibmacro*{loccolonpub}{% \printlist{location}% \iflistundef{publisher}% @@ -183,7 +170,7 @@ square=false} \newunit} % Macro per la forma ``Location, Publisher, Year'' -%*********************************************************************************************************** +%************************************************************** \newbibmacro*{locpubyear}{% \printlist{location}% \iflistundef{publisher}% @@ -215,23 +202,19 @@ square=false} \newbibmacro*{crossdate+extrayear}{% \iffieldundef{year}% {}% - {\unspace\printtext[parens]{\printdateextra}}} + {\printtext[parens]{\printdateextra}}} - - \DeclareCiteCommand{\bbx@crossref} +\DeclareCiteCommand{\bbx@crossref} + {}% + {\ifuseeditor{%\ifthenelse{\value{listtotal}=2} + %{\printnames[][-\value{maxnamesincross}]{labelname}} + %{\printnames[][-\value{minnamesincross}]{labelname}} + \printnames{labelname}} + {\usebibmacro{labeltitle}} + \setunit*{\addspace}% + \printtext{\usebibmacro{crossdate+extrayear}}}% + {}% {}% - {\ifsingletitle% - {\printtext{\ifthenelse{\value{listtotal}=2} - {\printnames[][-\value{maxnamesincross}]{labelname}} - {\printnames[][-\value{minnamesincross}]{labelname}}}}% - {\ifthenelse{\value{listtotal}=2} - {\printnames[][-\value{maxnamesincross}]{labelname}} - {\printnames[][-\value{minnamesincross}]{labelname}} - \setunit{\addspace}% - \printtext{\usebibmacro{crossdate+extrayear}}}}% - {\unspace}% - {\unspace} - \DeclareBibliographyDriver{incollection}{% \usebibmacro{bibindex}% @@ -253,7 +236,13 @@ square=false} \printfield{userd}% \newunit\newblock \usebibmacro{chapter+pages}% - \newunit\newblock + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock \usebibmacro{incolladdendum+pubstate}% \newunit\newblock \usebibmacro{pageref}% @@ -273,13 +262,19 @@ square=false} \usebibmacro{in:}% \iffieldundef{crossref}% {\usebibmacro{inbook:full}}% - {\printtext{\setunit{\unspace}}% Thanks to Sander Gliboff + {%\printtext{\setunit{\unspace}}% Thanks to Sander Gliboff \bbx@crossref{\thefield{crossref}}% \newunit\newblock \printfield{userd}% \newunit\newblock \usebibmacro{chapter+pages}% - \newunit\newblock + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock \usebibmacro{inbookaddendum+pubstate}% \newunit\newblock \usebibmacro{pageref}% |