summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.bbx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-03-17 21:52:06 +0000
committerKarl Berry <karl@freefriends.org>2013-03-17 21:52:06 +0000
commite6826e3bb3139f2329f722784dfa24c5cbb824dc (patch)
treee770a052734db40bf9e6b77d167444b5ff6c4634 /Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.bbx
parentf6ebf7e69e4c372ab549c769ce5058a8f864336d (diff)
biblatex-philosophy
git-svn-id: svn://tug.org/texlive/trunk@29411 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.bbx354
1 files changed, 102 insertions, 252 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 e73a0c88271..20b53123e53 100644
--- a/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.bbx
+++ b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.bbx
@@ -1,83 +1,58 @@
-% $Id: philosophy-classic.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-classic.bbx}[philosophy-classic.bbx,v 0.8b 2012/05/06 valbusa beta$]
+%%
+%% This is file `philosophy-classic.bbx',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% biblatex-philosophy.dtx (with options: `classic-bbx')
+%% ______________________________________________________
+%% The biblatex-philosophy package
+%% Copyright (C) 2009-2013 Ivan Valbusa
+%% All rights reserved
+%%
+%% License information appended
+%%
+\ProvidesFile{philosophy-classic.bbx}
+ [2013/03/15 v0.8c valbusa beta]
\RequireBibliographyStyle{authoryear}
\RequireBibliographyStyle{philosophy-standard}
-
-% DECLARE AND EXECUTE BIBLIOGRAPHY OPTIONS
-%*********************************************************************
\newtoggle{bbx:square}
+
\DeclareBibliographyOption{square}[true]{%
- \settoggle{bbx:square}{#1}}
-
+ \settoggle{bbx:square}{#1}}
+
\ExecuteBibliographyOptions{%
-uniquename =false,
-pagetracker =true,
-singletitle =false,
-square =false,
-mergedate =basic,
-dashed=false,
+ uniquename = false,
+ pagetracker = true,
+ singletitle = false,
+ square = false,
+ mergedate = basic,
+ dashed = true,
}
-
-%$$$$$$
-\newcounter{maxnamesincross}
-\newcounter{minnamesincross}
-
-
-% AT BEGIN SHORTHANDS
-%*****************************************
\AtBeginShorthands{%
\togglefalse{bbx:annotation}%
\renewcommand{\labelnamepunct}{\addcomma\space}%
-\renewbibmacro*{publocyear}{%
- \iflistundef{publisher}{}%
- {\printlist{publisher}}%
- \setunit*{\addcomma\space}%
- \printlist{location}%
- \setunit*{\space}%
- \printtext{\printfield{labelyear}}%
- \newunit}%
-\renewbibmacro*{loccolonpub}{%
- \printlist{location}%
- \iflistundef{publisher}%
- {\setunit*{\addspace}}%
- {\setunit*{\addcolon\space}}%
- \printlist{publisher}%
- \setunit*{\addcomma\space}%
- \printtext{\printfield{labelyear}}%
- \newunit}%
-\renewbibmacro*{locpubyear}{%
- \printlist{location}%
- \iflistundef{publisher}%
- {\setunit*{\addspace}}%
- {\setunit*{\addcomma\space}}%
- \printlist{publisher}%
- \setunit*{\addcomma\space}%
- \printtext{\printfield{labelyear}}%
- \newunit}%
- \renewbibmacro*{date+extrayear}{}}
-
-% AT BEGIN DOCUMENT
-%**************************************************
+\renewbibmacro*{relateddate}{%
+ \setunit*{\addspace}%
+ \printdate}
+\renewbibmacro*{commarelateddate}{%
+ \setunit*{\addcomma\space}%
+ \printdate}
+\renewbibmacro*{date+extrayear}{}%
+}
+
\AtBeginDocument{%
- \setcounter{maxnamesincross}{\value{maxnames}}
- \setcounter{minnamesincross}{\value{minnames}}
-
\iftoggle{bbx:square}
- {\renewcommand{\bibopenparen}{\bibopenbracket}%
- \renewcommand{\bibcloseparen}{\bibclosebracket}}
- {}}
-
-%*********************************************************************
-% NUOVE MACRO
-%*********************************************************************
+ {\renewcommand{\bibopenparen}{\bibopenbracket}%
+ \renewcommand{\bibcloseparen}{\bibclosebracket}}%
+ {}
+ \setcounter{maxnamesincross}{\value{maxnames}}%
+ \setcounter{minnamesincross}{\value{minnames}}%
+}
+\renewbibmacro*{relateddate}{}
+\renewbibmacro*{commarelateddate}{}
\renewbibmacro*{issue+date}{%
\ifboolexpr{
test {\iffieldundef{issue}}
@@ -85,17 +60,21 @@ dashed=false,
test {\iffieldundef{month}}
}
{}%
- {\ifdefstring{\bbx@volnumformat}{volnumparens}
+ {\ifdefstring{\bbx@volnumformat}{parens}
{\printtext{%
- \printfield{issue}% \setunit*{\addspace}%
- \printdate
- }}{\printtext[parens]{%
- \printfield{issue}% \setunit*{\addspace}%
- \printdate
- }}}%
+ \printfield{issue}\setunit*{\addspace}%
+ \printdate}}%
+ {\printtext[pureparens]{%
+ \printfield{issue}\setunit*{\addspace}%
+ \printdate}}}%
\newunit}%
-
-% changed
+\renewbibmacro*{date+extrayear}{%
+ \begingroup%
+ \clearfield{month}%
+ \iffieldundef{labelyear}
+ {\printtext[parens]{\midsentence\bibstring{nodate}}}
+ {\printtext[parens]{\printdateextra}}%
+ \endgroup}%
\renewbibmacro*{author}{%
\ifboolexpr{
test \ifuseauthor
@@ -109,21 +88,22 @@ dashed=false,
\iffieldundef{nameaddon}{}%
{\setunit{\addspace}%
\printtext[brackets]{\printfield{nameaddon}}}%
- \iffieldundef{authortype}
- {\setunit{\addspace}}
- {\setunit{\addcomma\space}}}%
+\iffieldundef{authortype}
+ {\setunit{\addspace}}
+ {\setunit{\addcomma\space}}}%
\iffieldundef{authortype}
{}%
{\usebibmacro{authorstrg}%
- \setunit{\addspace}}}%
+\setunit{\addspace}}}%
{\global\undef\bbx@lasthash
\usebibmacro{labeltitle}%
\setunit*{\addspace}}%
- \usebibmacro{date+extrayear}}
+ \usebibmacro{date+extrayear}}%
-\renewbibmacro*{editor+others}{%
+\renewbibmacro*{editor}{%
\usebibmacro{bbx:editor}{editorstrg}}
-
+\renewbibmacro*{editor+others}{%
+ \usebibmacro{bbx:editor}{editor+othersstrg}}
\renewbibmacro*{bbx:editor}[1]{%
\ifboolexpr{
test \ifuseeditor
@@ -133,183 +113,53 @@ dashed=false,
{\usebibmacro{bbx:dashcheck}
{\bibnamedash}
{\printnames{editor}%
- \setunit{\addspace}%
- \usebibmacro{bbx:savehash}}%
+\setunit{\addspace}%
+\usebibmacro{bbx:savehash}}%
\usebibmacro{#1}%
\clearname{editor}%
\setunit{\addspace}}%
{\global\undef\bbx@lasthash
\usebibmacro{labeltitle}%
\setunit*{\addspace}}%
- \usebibmacro{date+extrayear}}
-
-%**************************************************************
-%``Publisher, Location Year''.
-%****************************************************************
-\newbibmacro*{publocyear}{%
- \iflistundef{publisher}%
- {}%
- {\printlist{publisher}}
- \setunit*{\addcomma\space}%
- \printlist{location}%
- \newunit}
-\newbibmacro*{inpublocyear}{%
- \iflistundef{institution}%
- {}%
- {\printlist{institution}}
- \setunit*{\addcomma\space}%
- \printlist{location}%
- \newunit}
-\newbibmacro*{orgpublocyear}{%
- \iflistundef{organization}%
- {}%
- {\printlist{organization}}
- \setunit*{\addcomma\space}%
- \printlist{location}%
- \newunit}
-%**************************************************************
-%``Location: Publisher, Year''
-%****************************************************************
-\newbibmacro*{loccolonpub}{%
- \printlist{location}%
- \iflistundef{publisher}%
- {\setunit*{\addspace}}
- {\setunit*{\addcolon\space}}%
- \printlist{publisher}%
- \newunit}
-\newbibmacro*{inloccolonpub}{%
- \printlist{location}%
- \iflistundef{institution}%
- {\setunit*{\addspace}}
- {\setunit*{\addcolon\space}}%
- \printlist{institution}%
- \newunit}
-\newbibmacro*{orgloccolonpub}{%
- \printlist{location}%
- \iflistundef{organization}%
- {\setunit*{\addspace}}
- {\setunit*{\addcolon\space}}%
- \printlist{organization}%
- \newunit}
-%**************************************************************
-%``Location, Publisher, Year''
-%**************************************************************
-\newbibmacro*{locpubyear}{%
- \printlist{location}%
- \iflistundef{publisher}%
- {\setunit*{\addspace}}
- {\setunit*{\addcomma\space}}%
- \printlist{publisher}%
- \newunit}
-\newbibmacro*{inlocpubyear}{%
- \printlist{location}%
- \iflistundef{institution}%
- {\setunit*{\addspace}}
- {\setunit*{\addcomma\space}}%
- \printlist{institution}%
- \newunit}
-\newbibmacro*{orglocpubyear}{%
- \printlist{location}%
- \iflistundef{organization}%
- {\setunit*{\addspace}}
- {\setunit*{\addcomma\space}}%
- \printlist{organization}%
- \newunit}
-
-\newbibmacro*{crossdate+extrayear}{%
- \iffieldundef{year}%
- {}%
- {\printtext[parens]{\printdateextra}}}
-
-\DeclareCiteCommand{\bbx@crossref}
+ \usebibmacro{date+extrayear}}%
+\DeclareCiteCommand{\bbx@crossref@inbook}
{}%
- {\ifuseeditor{\ifthenelse{\value{listtotal}=2}%
- {\printnames[][-\value{maxnamesincross}]{labelname}}%
- {\printnames[][-\value{minnamesincross}]{labelname}}}%
- {\usebibmacro{labeltitle}}
+ {\usebibmacro{citeindex}%
+ \ifuseeditor{%
+ \ifthenelse{\value{listtotal}=2}%
+ {\printnames[][-\value{maxnamesincross}]{labelname}}%
+ {\printnames[][-\value{minnamesincross}]{labelname}}}%
+ {\usebibmacro{labeltitle}}%
\setunit*{\addspace}%
- \printtext{\usebibmacro{crossdate+extrayear}}}%
+ \usebibmacro{date+extrayear}}%
{}%
{}%
-%-----------------------------------------------------------------
-%
-% DRIVERS
-%
-%-----------------------------------------------------------------
-
-\DeclareBibliographyDriver{incollection}{%
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author/translator+others}%
- \setunit{\labelnamepunct}\newblock
- \usebibmacro{title}%
- \newunit
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byauthor}%
- \newunit\newblock
- \usebibmacro{in:}%
- \iffieldundef{crossref}%
- {\usebibmacro{incollection:full}}%
- {\bbx@crossref{\thefield{crossref}}%
-% \newunit\newblock
-% \printfield{userd}%
-% \newunit\newblock
- \newunit\newblock
- \iffieldundef{maintitle}
- {\printfield{volume}%
- \printfield{part}}
- {}%
- \newunit
- \usebibmacro{chapter+pages}%
- \newunit\newblock
- \iftoggle{bbx:isbn}
- {\printfield{isbn}}
- {}%
- \newunit\newblock
- \usebibmacro{doi+eprint+url}%
- \newunit\newblock
- \usebibmacro{addendum+pubstate:article-book-incoll}%
- \newunit\newblock
- \usebibmacro{pageref}%
- \usebibmacro{finentry}}}
-
-\DeclareBibliographyDriver{inbook}{%
- \usebibmacro{bibindex}%
- \usebibmacro{begentry}%
- \usebibmacro{author/translator+others}%
- \setunit{\labelnamepunct}\newblock
- \usebibmacro{title}%
- \newunit
- \printlist{language}%
- \newunit\newblock
- \usebibmacro{byauthor}%
- \newunit\newblock
- \usebibmacro{in:}%
- \iffieldundef{crossref}%
- {\usebibmacro{inbook:full}}%
- {\bbx@crossref{\thefield{crossref}}%
-% \newunit\newblock
-% \printfield{userd}%
-% \newunit\newblock
- \newunit\newblock
- \iffieldundef{maintitle}
- {\printfield{volume}%
- \printfield{part}}
- {}%
- \newunit
- \usebibmacro{chapter+pages}%
- \newunit\newblock
- \iftoggle{bbx:isbn}
- {\printfield{isbn}}
- {}%
- \newunit\newblock
- \usebibmacro{doi+eprint+url}%
- \newunit\newblock
- \usebibmacro{addendum+pubstate:article-book-incoll}%
- \newunit\newblock
- \usebibmacro{pageref}%
- \usebibmacro{finentry}}}
-
-\endinput \ No newline at end of file
+\DeclareCiteCommand{\bbx@crossref@incollection}
+ {}%
+ {\usebibmacro{citeindex}%
+ \ifuseeditor{%
+ \ifthenelse{\value{listtotal}=2}%
+ {\printnames[][-\value{maxnamesincross}]{labelname}}%
+ {\printnames[][-\value{minnamesincross}]{labelname}}}%
+ {\usebibmacro{labeltitle}}%
+ \setunit*{\addspace}%
+ \usebibmacro{date+extrayear}}%
+ {}%
+ {}%
+\define@key{blx@bib1}{restoreclassic}[]{}
+\define@key{blx@bib2}{restoreclassic}[true]{}
+%%
+%% Copyright 2009-2013 by Ivan Valbusa
+%%
+%% This program is provided under the terms of the
+%% LaTeX Project Public License distributed from CTAN
+%% archives in directory macros/latex/base/lppl.txt.
+%%
+%% Author: Ivan Valbusa
+%% ivan dot valbusa at univr dot it
+%%
+%% This work has the LPPL maintenance status "author-maintained".
+%%
+%%
+%% End of file `philosophy-classic.bbx'.