diff options
author | Karl Berry <karl@freefriends.org> | 2010-03-09 00:22:50 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-03-09 00:22:50 +0000 |
commit | 62993c5bcad4ec24f4de93ef85f925278433b941 (patch) | |
tree | dbb395e18efdf1fba65bada6d0927ac55fbf292d /Master/texmf-dist/tex | |
parent | 5d748b68d77bc6f3bf05eb9abbf7e7071a124449 (diff) |
biblatex-philosophy update (8mar10)
git-svn-id: svn://tug.org/texlive/trunk@17387 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
7 files changed, 1112 insertions, 995 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-philosophy/italian-philosophy.lbx b/Master/texmf-dist/tex/latex/biblatex-philosophy/italian-philosophy.lbx new file mode 100644 index 00000000000..716a0e0d8cf --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-philosophy/italian-philosophy.lbx @@ -0,0 +1,27 @@ +% italian-philosophy.lbx,Ivan Valbusa 2010 + +\ProvidesFile{italian-philosophy.lbx}[2010/03/07 v 0.5 biblatex localization file for biblatex-philosophy] + +\InheritBibliographyExtras{italian} + +\DeclareBibliographyStrings{% + inherit = {italian}, + opcit = {{cit\adddot}{cit\adddot}}, + ibidem = {{ivi}{ivi}}, + loccit = {{ibidem}{ibidem}}, + sequentes = {{ss\adddot}{ss\adddot}}, + sequens = {{s\adddot}{s\adddot}}, + reprint = {{rist\adddot}{rist\adddot}}, + reprintas = {{trad\adddotspace it\adddot}{trad\adddotspace it\adddot}}, + see = {{vedi}{vedi}}, + andothers = {{\mkbibemph{et\addabbrvspace al\adddot}}{\mkbibemph{et\addabbrvspace al\adddot}}}, + editor = {{(a cura di)}{(a cura di)}}, + editors = {{(a cura di)}{(a cura di)}}, + withcommentator = {{{con commenti di}{con comm\adddot\addabbrvspace di}}}, + withannotator = {{annotazioni di}{annotazioni di}}, + withintroduction = {{introduzione di}{introduzione di}}, + withforeword = {{prefazione di}{prefazione di}}, + withafterword = {{postfazione di}{postfazione di}}} + + +\endinput 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 4f11f300639..c4c2cddcd36 100644 --- a/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.bbx @@ -1,19 +1,27 @@ -% $Id: philosophy-classic.bbx,v 0.4c 2010/02/27 Valbusa$ +% $Id: philosophy-classic.bbx,v 0.5 2010/03/07 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.4c 2010/01/27 valbusa beta$] +\ProvidesFile{philosophy-classic.bbx}[philosophy-classic.bbx,v 0.5 2010/03/07 valbusa beta$] \RequireBibliographyStyle{authoryear} +\DeclareLanguageMapping{italian}{italian-philosophy} +%*********************************************************************************************************** +% +% DECLARE AND EXECUTE BIBLIOGRAPHY OPTIONS +% +%*********************************************************************************************************** \newbool{bbx:locpubyear} \newbool{bbx:annotation} \newbool{bbx:library} \newbool{bbx:scauthors} \newbool{bbx:scauthorsbib} +\newbool{bbx:origparens} +\newbool{bbx:origbrackets} \newbool{bbx:square} \newbool{bbx:namelastfirst} \newbool{bbx:onlyfirstsc} @@ -30,14 +38,19 @@ \csuse{bool#1}{bbx:scauthors}} \DeclareBibliographyOption{scauthorsbib}[true]{% \csuse{bool#1}{bbx:scauthorsbib}} +\DeclareBibliographyOption{origparens}[true]{% + \csuse{bool#1}{bbx:origparens}} + \DeclareBibliographyOption{origbrackets}[true]{% + \csuse{bool#1}{bbx:origbrackets}} +\DeclareBibliographyOption{itbackref}[true]{% + \csuse{bool#1}{bbx:itbackref}} + \DeclareBibliographyOption{square}[true]{% \csuse{bool#1}{bbx:square}} \DeclareBibliographyOption{namelastfirst}[true]{% \csuse{bool#1}{bbx:namelastfirst}} \DeclareBibliographyOption{onlyfirstsc}[true]{% \csuse{bool#1}{bbx:onlyfirstsc}} -\DeclareBibliographyOption{itbackref}[true]{% - \csuse{bool#1}{bbx:itbackref}} \ExecuteBibliographyOptions{% @@ -45,9 +58,11 @@ uniquename=false, pagetracker, locpubyear=false, annotation=false, -library=false, +library=true, scauthors=false, scauthorsbib=false, +origparens=false, +origbrackets=false, singletitle=false, square=false, onlyfirstsc=false, @@ -55,21 +70,26 @@ namelastfirst=false, itbackref=false } +%$$$$$$ \newcounter{maxnamesincross} \newcounter{minnamesincross} -% AT BEGIN DOCUMENT -%********************************************************************* +%*********************************************************************************************************** +% +% AT BEGIN SHORTHANDS +% +%*********************************************************************************************************** \AtBeginShorthands{% - \renewcommand{\labelnamepunct}{\addcomma\space} +\boolfalse{bbx:annotation} +\renewcommand{\labelnamepunct}{\addcomma\space} \renewbibmacro*{commaloc}{% \iflistundef{publisher}{} {\printlist{publisher}} \setunit*{\addcomma\space}% \printlist{location}% \setunit*{\space}% - \printtext{\printdateextra}% + \printtext{\printfield{labelyear}}% \newunit} \renewbibmacro*{colonloc}{% \printlist{location}% @@ -78,70 +98,53 @@ itbackref=false {\setunit*{\addcolon\space}}% \printlist{publisher}% \setunit*{\addcomma\space}% - \printtext{\printdateextra}% + \printtext{\printfield{labelyear}}% \newunit} -\renewbibmacro*{date+extrayear}{} -\renewbibmacro*{origfields}{% - \iflistundef{origlocation}% - {} - {\setunit{\addsemicolon\space} - \iffieldundef{reprinttitle}% - {\printtext{\bibstring{reprintas}}} - {\printtext{\bibstring{reprint}}\nopunct} - \setunit{\addspace} - \iffieldundef{reprinttitle}% - {\usebibmacro{origtitle}} - {\usebibmacro{reprinttitle}} - \newunit\newblock - \usebibmacro{origpublisher+origlocation+origdate}}}} +\renewbibmacro*{date+extrayear}{}} +%*********************************************************************************************************** +% +% AT BEGIN DOCUMENT +% +%*********************************************************************************************************** \AtBeginDocument{% \setcounter{maxnamesincross}{\value{maxnames}} \setcounter{minnamesincross}{\value{minnames}} - + +\ifbool{bbx:origbrackets}{\booltrue{bbx:origparens} +\renewcommand{\origleftparen}{\bibleftbracket} +\renewcommand{\origrightparen}{\bibrightbracket}}% +{}% + \ifbool{bbx:scauthors} - {\renewcommand*{\mkbibnamelast}[1]{\textsc{#1}} - \renewcommand*{\mkbibnamefirst}[1]{\textsc{#1}} - \renewcommand*{\mkbibnameprefix}[1]{\textsc{#1}}} - {} + {\booltrue{bbx:scauthorsbib}\booltrue{cbx:scauthorscite}} + {}% \ifbool{bbx:square} {\renewcommand{\bibleftparen}{\bibleftbracket}% \renewcommand{\bibrightparen}{\bibrightbracket}} - {} -} - - -% AT EVERY CITE -%********************************************************************* -\AtEveryCite{% - \ifbool{bbx:onlyfirstsc}% - {\renewcommand*{\mkbibnamelast}[1]{\textsc{#1}}}% - {}% NB senza commento aggiunge uno spazio!!!! -} + {}} -% AT BEGIN BIBLIOGRAPHY -%********************************************************************* +%*********************************************************************************************************** +% +% AT BEGIN BILIOGRAPHY +% +%*********************************************************************************************************** \AtBeginBibliography{% - \ifbool{bbx:namelastfirst}{% - \DeclareNameFormat{sortname}{% - \ifnum\value{listcount}=1\relax - \iffirstinits - {\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}} - {\usebibmacro{name:last-first}{#1}{#3}{#5}{#7}}% - \ifblank{#3#5} - {} - {\usebibmacro{name:revsdelim}}% - \else - \iffirstinits - {\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}} - {\usebibmacro{name:last-first}{#1}{#3}{#5}{#7}}% - \fi - \usebibmacro{name:andothers}}}{} - - \ifbool{bbx:scauthorsbib} - {\renewcommand*{\mkbibnamelast}[1]{\textsc{#1}} - \renewcommand*{\mkbibnamefirst}[1]{\textsc{#1}} - \renewcommand*{\mkbibnameprefix}[1]{\textsc{#1}}}{} +% SMALL CAPS AUTHORS NAME +\ifbool{bbx:scauthorsbib}{% +\DeclareNameFormat{sortname}{% + \ifnumequal{\value{listcount}}{1} + {\iffirstinits + {\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}} + {\ifblank{#3}{\usebibmacro{name:last-first}{\textsc{#1}\nopunct}{\textsc{#3}}{\textsc{#5}}{\textsc{#7}}}{\usebibmacro{name:last-first}{\textsc{#1}}{\textsc{#3}}{\textsc{#5}}{\textsc{#7}}}}% + \ifblank{#3#5} + {} + {\usebibmacro{name:revsdelim}}} + {\iffirstinits + {\usebibmacro{name:first-last}{\textsc{#1}}{\textsc{#4}}{\textsc{#5}}{\textsc{#7}}} + {\usebibmacro{name:first-last}{\textsc{#1}}{\textsc{#3}}{\textsc{#5}}{\textsc{#7}}}}% + \usebibmacro{name:andothers}} +}{}% \ifbool{bbx:onlyfirstsc} {\DeclareNameFormat{sortname}{% @@ -158,19 +161,19 @@ itbackref=false {\usebibmacro{name:first-last}{#1}{#3}{#5}{#7}}% \fi \usebibmacro{name:andothers}}} - {} + {}% \ifbool{bbx:itbackref} {\renewbibmacro*{pageref}{% \iflistundef{pageref} - {} + {}% {\setunit{\addperiod\space}% \ifnum\value{pageref}>1\relax - \printtext[backrefparens]{Citato\space alle\space \bibstring{pages}\ppspace% - \printlist[pageref][-\value{listtotal}]{pageref}\adddot} + \printtext[backrefparens]{Citato\addspace alle\addspace \bibstring{pages}\ppspace% + \printlist[pageref][-\value{listtotal}]{pageref}\adddot}\nopunct \else - \printtext[backrefparens]{Citato\space a\space \bibstring{page}\ppspace% - \printlist[pageref][-\value{listtotal}]{pageref}\adddot} + \printtext[backrefparens]{Citato\addspace a\addspace \bibstring{page}\ppspace% + \printlist[pageref][-\value{listtotal}]{pageref}\adddot}\nopunct \fi}}}% {\renewbibmacro*{pageref}{% \iflistundef{pageref} @@ -179,46 +182,24 @@ itbackref=false \ifnum\value{pageref}>1\relax \printtext[backrefparens]{\bibstring{see}\space% \bibstring{pages}\ppspace% - \printlist[pageref][-\value{listtotal}]{pageref}\adddot} + \printlist[pageref][-\value{listtotal}]{pageref}\adddot}\nopunct \else \printtext[backrefparens]{\bibstring{see}\space% \bibstring{page}\ppspace% - \printlist[pageref][-\value{listtotal}]{pageref}\adddot} + \printlist[pageref][-\value{listtotal}]{pageref}\adddot}\nopunct \fi}}}% } -%-------------------------------------------------------------------------------------------- -% Settings for italian language -%-------------------------------------------------------------------------------------------- +%*********************************************************************************************************** % +% FIELDS FORMAT +% +%*********************************************************************************************************** -\DefineBibliographyStrings{italian}{% - sequentes = {ss\adddot}, - sequens = {s\adddot}, - reprint = {ristampa}, - reprintof = {ed.~orig.}, - reprintas = {trad.~it.}, - see = {vedi}, - editor = {(a~cura~di)}, - editors = {(a~cura~di)}, - withcommentator = {{con commenti di}{con comm\adddot\ di}}, - withannotator = {annotazioni di}, - withintroduction = {introduzione di}, - withforeword = {prefazione di}, - withafterword = {postfazione di} -} - -%\DefineBibliographyExtras{english}{% -%\renewrobustcmd*{\bibrangedash}{\mbox{-}\nobreak} -%} - - - -%********************************************************************* -% FORMATS -%********************************************************************* - +%--------------------------------------------------------------------- +% new commands +%--------------------------------------------------------------------- \newcommand*{\pureleftparen}{\blx@postpunct(} \newcommand*{\purerightparen}{\blx@postpunct)\midsentence} @@ -229,42 +210,52 @@ itbackref=false \pureleftparen#1\blx@postpunct\purerightparen \endgroup} -%--------------------------------------------------------------------- -%% new commands -%--------------------------------------------------------------------- \appto\biburlsetup{\Urlmuskip=0mu\relax} -\newcommand{\backrefleftparen}{(} -\newcommand{\backrefrightparen}{)} -\newcommand{\backrefparens}[1]{\backrefleftparen#1\backrefrightparen} - -%\newcommand{\annotationfont}{} -%\newcommand{\libraryfont}{\sffamily} \newcommand{\annotationfont}{\sffamily} \newcommand{\libraryfont}{} \renewcommand*{\newunitpunct}{\addcomma\space} \renewcommand*{\subtitlepunct}{\adddot\space} +% Nuovi comandi per avere la traduzione tra parentesi +\newcommand{\origleftparen}{\bibleftparen} +\newcommand{\origrightparen}{\bibrightparen} + + %--------------------------------------------------------------------- -%% fields format +% fields format %--------------------------------------------------------------------- +% TITLE +\DeclareFieldFormat[inbook]{title}{\mkbibemph{#1}} + +% CITETITLE \DeclareFieldFormat[inbook]{citetitle}{\mkbibemph{#1}} -\DeclareFieldFormat{pureparens}{\mkpureparens{#1}} -\DeclareFieldFormat{url}{\url{#1}} -\DeclareFieldFormat{labelyear}{\mknumalph{#1}} + +% ORIGTITLE \DeclareFieldFormat{origtitle}{\mkbibemph{#1}} + +% USERA \DeclareFieldFormat{usera}{\mkbibemph{#1}} \DeclareFieldFormat[article]{usera}{\mkbibquote{#1}} \DeclareFieldFormat[inbook]{usera}{\mkbibemph{#1}} \DeclareFieldFormat[incollection]{usera}{\mkbibquote{#1}} + +% USERC \DeclareFieldFormat{userc}{\mkpageprefix[bookpagination]{#1}} -\DeclareFieldFormat{shorthandwidth}{#1} -\DeclareFieldFormat[inbook]{title}{\mkbibemph{#1}} + +% URL +\DeclareFieldFormat{url}{\url{#1}} + +% ANNOTATION LIBRARY \DeclareFieldFormat{annotation}{\annotationfont #1} \DeclareFieldFormat{library}{\libraryfont #1} -\DeclareFieldFormat{backrefparens}{\backrefparens{#1}} -\DeclareFieldFormat{aut}{\mkpageprefix[bookpagination]{#1}} -\DeclareFieldFormat{edition}{\ifinteger{#1}{\mkbibfemord{#1}~\bibstring{edition}}{#1}} + +% PARENS +\DeclareFieldFormat{pureparens}{\mkpureparens{#1}} +\DeclareFieldFormat{backrefparens}{\mkpureparens{#1}} + + + %********************************************************************* % NUOVI AMBIENTI @@ -280,7 +271,7 @@ itbackref=false {\endlist} \renewenvironment*{theshorthands} - {\boolfalse{bbx:library}\boolfalse{bbx:annotation}\list + {\list {\printfield[shorthandwidth]{shorthand}} {\setlength{\labelwidth}{\shorthandwidth}% \setlength{\leftmargin}{\labelwidth}% @@ -294,29 +285,6 @@ itbackref=false %********************************************************************* % NUOVE MACRO %********************************************************************* - -\renewbibmacro*{name:andothers}{% - \ifthenelse{\value{listcount}=\value{liststop}\AND - \ifmorenames} - {\ifnum\value{liststop}>1 \finalandcomma\fi - \andothersdelim\bibstring[\emph]{andothers}} - {}} - -%\renewcommand*{\lbx@typeeditor}{% -% \iffieldundef{editortype} -% {\printtext[parens]{\bibstring{typeeditor}}} -% {\bibstring{type\thefield{editortype}}}} - -%\renewcommand*{\lbx@typeeditors}{% -% \iffieldundef{editortype} -% {\printtext[parens]{\bibstring{typeeditors}}} -% {\bibstring{type\thefield{editortype}s}}} - - -\renewbibmacro*{date+extrayear}{% - \iffieldundef{year} - {} - {\printtext[parens]{\printdateextra}}} \renewbibmacro*{journal+issuetitle}{% \usebibmacro{journal}% @@ -338,11 +306,11 @@ itbackref=false \usebibmacro{issue}% \newunit} +% per avere il numero tra parentesi \renewbibmacro*{issue+date}{% \ifthenelse{\iffieldundef{issue}\AND\iffieldundef{month}} - {} - {\printtext[pureparens]{% - \iffieldundef{issue} + {}% + {\iffieldundef{issue} {\iffieldundef{day} {\printfield{month}% \setunit{\addspace}% @@ -350,9 +318,15 @@ itbackref=false {\printtext{\bibdate}}} {\printfield{issue}% \setunit{\addspace}% - }}}% + }}% \newunit} +% per eliminare il mese nelle etichette delle voci article +\renewbibmacro*{date+extrayear}{% + \iffieldundef{year} + {}% + {\printtext[parens]{\printfield{labelyear}\printfield{extrayear}}}} + % changed \renewbibmacro*{bbx:editor}[1]{% \ifthenelse{\ifuseeditor\AND\NOT\ifnameundef{editor}} @@ -375,7 +349,6 @@ itbackref=false } - \renewbibmacro*{annotation}{% \ifbool{bbx:library}{% \setunit{\addperiod\space} @@ -418,17 +391,18 @@ itbackref=false \newbibmacro*{origfields}{% \iflistundef{origlocation}% {} - {\setunit{\addsemicolon\space} + {\ifbool{bbx:origparens}{\setunit{\addspace\origleftparen}}{% +\setunit{\addsemicolon\space}}% \iffieldundef{reprinttitle}% - {\printtext{\bibstring{reprintas}}} - {\printtext{\bibstring{reprint}}\nopunct} - \setunit{\addspace} + {\printtext{\bibstring{reprintas}}\nopunct} + {\printtext{\bibstring{reprint}}\nopunct}% + \setunit{\addspace}% \iffieldundef{reprinttitle}% {\usebibmacro{origtitle}} {\usebibmacro{reprinttitle}} \newunit\newblock - \usebibmacro{origpublisher+origlocation+origdate}} -} + \usebibmacro{origpublisher+origlocation+origdate}% + \ifbool{bbx:origparens}{\origrightparen}{}}} \newbibmacro*{origpublisher+origlocation+origdate}{% @@ -440,28 +414,29 @@ itbackref=false \setunit{\bibpagespunct}% \printfield{userc}}} -\newbibmacro*{origcommaloc}{% + + \newbibmacro*{origcommaloc}{% \iflistundef{origpublisher}% {\printlist{origlocation} - \setunit*{\addspace} - \printorigdate} - {\printlist{origpublisher} - \setunit*{\addcomma\space} - \printlist{origlocation} - \setunit*{\addspace} - \printorigdate} + \setunit*{\addspace}% + \printorigdate}% + {\printlist{origpublisher}% + \setunit*{\addcomma\space}% + \printlist{origlocation}% + \setunit*{\addspace}% + \printorigdate}% \newunit} \newbibmacro*{origcolonloc}{% -\iflistundef{origlocation}{} +\iflistundef{origlocation}{}% {\printlist{origlocation}}% \iflistundef{origpublisher}% - {\setunit*{\addspace} + {\setunit*{\addspace}% \printorigdate}% {\setunit*{\addcolon\space}% \printlist{origpublisher}% \setunit*{\addcomma\space}% - \printorigdate} + \printorigdate}% \newunit} \newbibmacro*{reprinttitle}{% @@ -476,7 +451,7 @@ itbackref=false \newbibmacro*{origtitle}{% \iffieldundef{origtitle}{}{ - \printfield[title]{origtitle}% + \printfield[origtitle]{origtitle}% \setunit{\addcomma\space}} \iffieldundef{userb}{}{% \printfield{userb}% @@ -484,34 +459,38 @@ itbackref=false \newbibmacro*{origtitle:incollection}{% \iflistundef{origlocation}{}{% - \setunit{\addsemicolon\space}% +\ifbool{bbx:origparens}{\setunit{\addspace\origleftparen}}{% +\setunit{\addsemicolon\space}}% \printtext{\bibstring{reprintas}% \iffieldundef{usera}% {\setunit{\addspace}}% - {\setunit{\addspace} - \printfield[usera]{usera} - \setunit{\addcomma\space} + {\setunit{\addspace}% + \printfield[usera]{usera}% + \setunit{\addcomma\space}% \usebibmacro{in:}}% - \setunit{\addspace} + \setunit{\addspace}% \newblock \iffieldundef{origtitle}{}{% - \printfield[title]{origtitle} + \printfield[origtitle]{origtitle}% \setunit{\addcomma\space}} \iffieldundef{userb}{}{% \printfield{userb}% \newunit} - \usebibmacro{origpublisher+origlocation+origdate}}}} + \usebibmacro{origpublisher+origlocation+origdate}% + \ifbool{bbx:origparens}{\origrightparen}{}% +}}} \newbibmacro*{origtitle:inbook}{% \iflistundef{origlocation}{}{% - \setunit{\addsemicolon\space}% +\ifbool{bbx:origparens}{\setunit{\addspace\origleftparen}}{% +\setunit{\addsemicolon\space}}% \printtext{\bibstring{reprintas}% \iffieldundef{usera}% - {\setunit{\addspace}} - {\setunit{\addspace} - \printfield[usera:inarticle]{usera} - \setunit{\addcomma\space} - }% + {\setunit{\addspace}}% + {\setunit{\addspace}% + \printfield{usera}% + \setunit{\addcomma\space}% + \usebibmacro{in:}}% \setunit{\addspace} \newblock \iffieldundef{origtitle}{}{% @@ -520,125 +499,89 @@ itbackref=false \iffieldundef{userb}{}{% \printfield{userb}% \newunit} - \usebibmacro{origpublisher+origlocation+origdate}}}} + \usebibmacro{origpublisher+origlocation+origdate}% + \ifbool{bbx:origparens}{\origrightparen}{}% +}}} \renewbibmacro*{in:}{% \bibstring{in}\addcolon\setunit{\addspace}} \newbibmacro*{articletranslated}{% \iflistundef{origlocation}{}{% - \setunit{\addsemicolon\space}% +\ifbool{bbx:origparens}{\setunit{\addspace\origleftparen}}{% +\setunit{\addsemicolon\space}}% \printtext{\bibstring{reprintas}% \iffieldundef{usera}% {\setunit{\addspace}}% {\setunit{\addspace} \printfield{usera}% \setunit{\addcomma\space}% - \usebibmacro{in:}}% + \usebibmacro{in:}% + \setunit{\addspace}}% \iffieldundef{origtitle}{}{% \printfield[origtitle]{origtitle}% \newunit\newblock} \iffieldundef{userb}{}{% \printfield{userb} \newunit} - \usebibmacro{origpublisher+origlocation+origdate}}% - }} + \usebibmacro{origpublisher+origlocation+origdate}% + \ifbool{bbx:origparens}{\origrightparen}{}% +}}} %********************************************************************* %% BIBLIOGRAPHY DRIVERS %********************************************************************* - - \DeclareBibliographyDriver{article}{% - \usebibmacro{bibindex}% - \usebibmacro{begentry}% - \usebibmacro{author/editor}% - \setunit{\labelnamepunct}\newblock - \usebibmacro{title}% - \newunit - \printlist{language}% - \newunit\newblock - \usebibmacro{byauthor}% - \newunit\newblock - \usebibmacro{byeditor+others}% - \newunit\newblock - \printfield{version}% - \newunit\newblock - \usebibmacro{journal+issuetitle}% -\newunit\newblock - \printfield{note}% - \setunit{\bibpagespunct}% - \printfield{pages} - \newunit\newblock - \printfield{issn}% - \newunit\newblock - \printfield{doi}% + +%*********************************************************************************************************** + \renewbibmacro*{addendum+pubstate}{% + \printfield{addendum}% \newunit\newblock - \usebibmacro{eprint}% + \printfield{pubstate}% + \newunit\newblock + \usebibmacro{origfields}% \newunit\newblock - \usebibmacro{url+urldate}% - \newunit\newblock + \usebibmacro{annotation}% +} + +%*********************************************************************************************************** + \newbibmacro*{artaddendum+pubstate}{% \printfield{addendum}% + \newunit\newblock + \printfield{pubstate}% + \newunit\newblock \usebibmacro{articletranslated}% \newunit\newblock - \usebibmacro{annotation}% - \newunit\newblock - \usebibmacro{pageref}% - \usebibmacro{finentry}} + \usebibmacro{annotation}% +} -\DeclareBibliographyDriver{book}{% - \usebibmacro{bibindex}% - \usebibmacro{begentry}% - \usebibmacro{author/editor}% - \setunit{\labelnamepunct}\newblock - \usebibmacro{maintitle+title}% - \newunit - \printlist{language}% - \newunit\newblock - \usebibmacro{byauthor}% - \newunit\newblock - \usebibmacro{byeditor+others}% - \newunit\newblock - \printfield{edition}% - \newunit - \iffieldundef{maintitle} - {\printfield{volume}% - \printfield{part}} - {}% - \newunit - \printfield{volumes}% - \newunit\newblock - \usebibmacro{series+number}% - \newunit\newblock - \printfield{note}% - \newunit\newblock - \usebibmacro{publisher+location+date} - \newunit\newblock - \usebibmacro{chapter+pages}% - \newunit - \printfield{pagetotal}% - \newunit\newblock - \printfield{isbn}% - \newunit\newblock - \printfield{doi}% - \newunit\newblock - \usebibmacro{eprint}% +%*********************************************************************************************************** + \newbibmacro*{inbookaddendum+pubstate}{% + \printfield{addendum}% \newunit\newblock - \usebibmacro{url+urldate}% + \printfield{pubstate}% + \newunit\newblock + \usebibmacro{origtitle:inbook}% \newunit\newblock + \usebibmacro{annotation}% +} + +%*********************************************************************************************************** + \newbibmacro*{incolladdendum+pubstate}{% \printfield{addendum}% - \usebibmacro{origfields}% + \newunit\newblock + \printfield{pubstate}% + \newunit\newblock + \usebibmacro{origtitle:incollection}% \newunit\newblock \usebibmacro{annotation}% - \newunit\newblock - \usebibmacro{pageref}% - \usebibmacro{finentry}} +} -\DeclareBibliographyDriver{booklet}{% +\DeclareBibliographyDriver{article}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% - \usebibmacro{author/editor}% + \usebibmacro{author/translator+others}% \setunit{\labelnamepunct}\newblock \usebibmacro{title}% \newunit @@ -646,108 +589,52 @@ itbackref=false \newunit\newblock \usebibmacro{byauthor}% \newunit\newblock - \usebibmacro{byeditor+others}% - \newunit\newblock - \printfield{howpublished}% - \newunit\newblock - \printfield{type}% - \newunit\newblock - \printfield{note}% - \newunit\newblock - \usebibmacro{location+year}% - \newunit\newblock - \usebibmacro{chapter+pages}% - \newunit - \printfield{pagetotal}% - \newunit\newblock - \printfield{doi}% + \usebibmacro{bytranslator+others}% \newunit\newblock - \usebibmacro{eprint}% - \newunit\newblock - \usebibmacro{url+urldate}% + \printfield{version}% \newunit\newblock - \printfield{addendum}% - \usebibmacro{origfields}% - \newunit\newblock - \usebibmacro{annotation}% - \newunit\newblock - \usebibmacro{pageref}% - \usebibmacro{finentry}} - -\DeclareBibliographyDriver{collection}{% - \usebibmacro{bibindex}% - \usebibmacro{begentry}% - \usebibmacro{editor+others}% - \setunit{\labelnamepunct}\newblock - \usebibmacro{maintitle+title}% - \newunit - \printlist{language}% + \usebibmacro{journal+issuetitle}% \newunit\newblock \usebibmacro{byeditor+others}% \newunit\newblock - \printfield{edition}% - \newunit% - \iffieldundef{maintitle} - {\printfield{volume}% - \printfield{part}} - {}% - \newunit - \printfield{volumes}% - \newunit\newblock - \usebibmacro{series+number}% - \newunit\newblock - \printfield{note}% - \newunit\newblock - \usebibmacro{publisher+location+date}% - \newunit\newblock - \usebibmacro{chapter+pages}% - \newunit\newblock - \printfield{pagetotal}% + \usebibmacro{note+pages}% \newunit\newblock - \printfield{isbn}% - \newunit\newblock - \printfield{doi}% + \iftoggle{bbx:isbn} + {\printfield{issn}} + {}% \newunit\newblock - \usebibmacro{eprint}% + \usebibmacro{doi+eprint+url}% \newunit\newblock - \usebibmacro{url+urldate}% + \usebibmacro{artaddendum+pubstate}% \newunit\newblock - \printfield{addendum}% - \usebibmacro{origfields}% - \newunit\newblock - \usebibmacro{annotation}% - \newunit\newblock - \usebibmacro{pageref}% - \usebibmacro{finentry}} - - -%%-------------------------------------------------------------------------------------------------- -%% INBOOK with crossref -%%-------------------------------------------------------------------------------------------------- - -\newbibmacro*{crossdate+extrayear}{% + \usebibmacro{pageref}% + \usebibmacro{finentry}} + + \newbibmacro*{crossdate+extrayear}{% \iffieldundef{year}% {}% {\unspace\printtext[parens]{\printdateextra}}} -\DeclareCiteCommand{\bbx@inbookcrossref} + + \DeclareCiteCommand{\bbx@crossref} {}% {\ifsingletitle% - {\printtext[bibhyperref]{\ifthenelse{\value{listtotal}=2} + {\printtext{\ifthenelse{\value{listtotal}=2} {\printnames[][-\value{maxnamesincross}]{labelname}} {\printnames[][-\value{minnamesincross}]{labelname}}}}% - {\ifthenelse{\value{listtotal}=2}% + {\ifthenelse{\value{listtotal}=2} {\printnames[][-\value{maxnamesincross}]{labelname}} {\printnames[][-\value{minnamesincross}]{labelname}} \setunit{\addspace}% - \printtext[bibhyperref]{\usebibmacro{crossdate+extrayear}}}}% - {\unspace}% + \printtext{\usebibmacro{crossdate+extrayear}}}}% {\unspace}% + {\unspace} -\DeclareBibliographyDriver{inbook}{% + +\DeclareBibliographyDriver{incollection}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% - \usebibmacro{author}% + \usebibmacro{author/translator+others}% \setunit{\labelnamepunct}\newblock \usebibmacro{title}% \newunit @@ -757,38 +644,21 @@ itbackref=false \newunit\newblock \usebibmacro{in:}% \iffieldundef{crossref}% - {\iffieldundef{xref}% - {\usebibmacro{inbook:full}}% - {\bbx@inbookcrossref{\thefield{xref}}% + {\usebibmacro{incollection:full}}% + {\printtext{\setunit{\unspace}}% Thanks to Sander Gliboff + \bbx@crossref{\thefield{crossref}}% \newunit\newblock \printfield{userd}% \newunit\newblock \usebibmacro{chapter+pages}% \newunit\newblock - \printfield{addendum}% - \usebibmacro{origtitle:inbook} - \newunit\newblock - \usebibmacro{annotation}% - \newunit\newblock - \usebibmacro{pageref}}}% - {\bbx@inbookcrossref{\thefield{crossref}}% + \usebibmacro{incolladdendum+pubstate}% \newunit\newblock - \printfield{userd}% - \newunit\newblock - \usebibmacro{chapter+pages}% - \newunit\newblock - \printfield{addendum}% - \usebibmacro{origtitle:inbook}% - \newunit\newblock - \usebibmacro{annotation}% - \newunit\newblock - \usebibmacro{pageref}}% - \usebibmacro{finentry}} + \usebibmacro{pageref}% + \usebibmacro{finentry}}} - \newbibmacro*{inbook:full}{% - \usebibmacro{bybookauthor}% - \newunit\newblock - \usebibmacro{maintitle+booktitle}% + \newbibmacro*{incollection:full}{% + \usebibmacro{maintitle+booktitle}% \newunit\newblock \usebibmacro{byeditor+others}% \newunit\newblock @@ -809,48 +679,21 @@ itbackref=false \newunit\newblock \usebibmacro{chapter+pages}% \newunit\newblock - \printfield{isbn}% - \newunit\newblock - \printfield{doi}% + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% \newunit\newblock - \usebibmacro{eprint}% + \usebibmacro{doi+eprint+url}% \newunit\newblock - \usebibmacro{url+urldate}% + \usebibmacro{incolladdendum+pubstate}% \newunit\newblock - \printfield{addendum}% - \usebibmacro{origtitle:inbook}% - \newunit\newblock - \usebibmacro{annotation}% - \newunit\newblock - \usebibmacro{pageref}} - -%%-------------------------------------------------------------------------------------------------- -%% INCOLLECTION with crossref -%%-------------------------------------------------------------------------------------------------- - -%\ifthenelse{\value{listtotal}=2}{\setcounter{maxnamesincross}{2}} -%{\setcounter{maxnamesincross}{2}} -% - -\DeclareCiteCommand{\bbx@crossref} - {}% - {\ifsingletitle% - {\printtext[bibhyperref]{\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[bibhyperref]{\usebibmacro{date+extrayear}}}}% - {\unspace}% - {\unspace} - + \usebibmacro{pageref}% + \usebibmacro{finentry}} -\DeclareBibliographyDriver{incollection}{% +\DeclareBibliographyDriver{inbook}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% - \usebibmacro{author/editor}% + \usebibmacro{author/translator+others}% \setunit{\labelnamepunct}\newblock \usebibmacro{title}% \newunit @@ -859,45 +702,23 @@ itbackref=false \usebibmacro{byauthor}% \newunit\newblock \usebibmacro{in:}% -\iffieldundef{crossref}% - {\iffieldundef{xref}% - {\usebibmacro{incollection:full}}% - {\bbx@crossref{\thefield{xref}} - \newunit\newblock - \printfield{userd}% - \newunit\newblock - \usebibmacro{chapter+pages}% - \newunit\newblock - \printfield{addendum}% - \usebibmacro{origtitle:incollection} - \newunit\newblock - \usebibmacro{annotation}% - \newunit\newblock - \usebibmacro{pageref}}}% - {\bbx@crossref{\thefield{crossref}}% + \iffieldundef{crossref}% + {\usebibmacro{inbook:full}}% + {\printtext{\setunit{\unspace}}% Thanks to Sander Gliboff + \bbx@crossref{\thefield{crossref}}% \newunit\newblock \printfield{userd}% \newunit\newblock \usebibmacro{chapter+pages}% \newunit\newblock - \printfield{addendum}% - \usebibmacro{origtitle:incollection}% - \newunit\newblock - \usebibmacro{annotation}% - \newunit\newblock - \usebibmacro{pageref}}% - \usebibmacro{finentry}} - -\newbibmacro*{incollection:full}{% - \usebibmacro{bibindex}% - \usebibmacro{begentry}% -% \usebibmacro{editor+others}% -% \setunit{\labelnamepunct}\newblock -%\setunit{\unspace\addspace}% -%\printnames{editor} -% \usebibmacro{editorstrg} -% \setunit{\addcomma\space} -%\setunit*{\addspace} + \usebibmacro{inbookaddendum+pubstate}% + \newunit\newblock + \usebibmacro{pageref}% + \usebibmacro{finentry}}} + + \newbibmacro*{inbook:full}{ + \usebibmacro{bybookauthor}% + \newunit\newblock \usebibmacro{maintitle+booktitle}% \newunit\newblock \usebibmacro{byeditor+others}% @@ -906,55 +727,6 @@ itbackref=false \newunit \iffieldundef{maintitle} {\printfield{volume}% - \printfield{part} - } - {}% - \newunit - \printfield{volumes}% - \newunit\newblock - \usebibmacro{series+number}% - \newunit\newblock - \printfield{note}% - \newunit\newblock - \usebibmacro{publisher+location+date}% - \newunit\newblock - \usebibmacro{chapter+pages}% - \newunit\newblock - \printfield{isbn}% - \newunit\newblock - \printfield{doi}% - \newunit\newblock - \usebibmacro{eprint}% - \newunit\newblock - \usebibmacro{url+urldate}% - \newunit\newblock - \printfield{addendum}% - \usebibmacro{origtitle:incollection}% - \newunit\newblock - \usebibmacro{annotation}% - \newunit\newblock - \usebibmacro{pageref}} - -\DeclareBibliographyDriver{inproceedings}{% - \usebibmacro{bibindex}% - \usebibmacro{begentry}% - \usebibmacro{author}% - \setunit{\labelnamepunct}\newblock - \usebibmacro{title}% - \newunit - \printlist{language}% - \newunit\newblock - \usebibmacro{byauthor}% - \newunit\newblock - \usebibmacro{in:}% - \usebibmacro{maintitle+booktitle}% - \newunit - \printfield{venue}% - \newunit\newblock - \usebibmacro{byeditor+others}% - \newunit\newblock - \iffieldundef{maintitle} - {\printfield{volume}% \printfield{part}} {}% \newunit @@ -962,359 +734,20 @@ itbackref=false \newunit\newblock \usebibmacro{series+number}% \newunit\newblock - \printfield{note} - \newunit\newblock - \printlist{organization}% - \newunit - \usebibmacro{publisher+location+date}% - \newunit\newblock - \usebibmacro{chapter+pages}% - \newunit\newblock - \printfield{isbn}% - \newunit\newblock - \printfield{doi}% - \newunit\newblock - \usebibmacro{eprint}% - \newunit\newblock - \usebibmacro{url+urldate}% - \newunit\newblock - \printfield{addendum}% - \usebibmacro{origfields}% - \newunit\newblock - \usebibmacro{annotation}% - \newunit\newblock - \usebibmacro{pageref}% - \usebibmacro{finentry}} - -\DeclareBibliographyDriver{manual}{% - \usebibmacro{bibindex}% - \usebibmacro{begentry}% - \usebibmacro{author/editor}% - \setunit{\labelnamepunct}\newblock - \usebibmacro{title}% - \newunit - \printlist{language}% - \newunit\newblock - \usebibmacro{byauthor}% - \newunit\newblock - \usebibmacro{byeditor}% - \newunit\newblock - \printfield{edition}% - \newunit% - \usebibmacro{series+number}% - \newunit\newblock - \printfield{type}% - \newunit - \printfield{version}% - \newunit\newblock - \printfield{note} - \newunit\newblock - \printlist{organization}% - \newunit - \usebibmacro{publisher+location+date}% - \newunit\newblock - \usebibmacro{chapter+pages}% - \newunit - \printfield{pagetotal}% - \newunit\newblock - \printfield{isbn}% - \newunit\newblock - \printfield{doi}% - \newunit\newblock - \usebibmacro{eprint}% - \newunit\newblock - \usebibmacro{url+urldate}% - \newunit\newblock - \printfield{addendum}% - \usebibmacro{origfields}% - \newunit\newblock - \usebibmacro{annotation}% - \newunit\newblock - \usebibmacro{pageref} - \usebibmacro{finentry}} - -\DeclareBibliographyDriver{misc}{% - \usebibmacro{bibindex}% - \usebibmacro{begentry}% - \usebibmacro{author/editor}% - \setunit{\labelnamepunct}\newblock - \usebibmacro{title}% - \newunit - \printlist{language}% - \newunit\newblock - \usebibmacro{byauthor}% - \newunit\newblock - \usebibmacro{byeditor}% - \newunit\newblock - \printfield{howpublished}% - \newunit\newblock - \printfield{type}% - \newunit - \printfield{version}% - \newunit\newblock - \printfield{note} - \newunit\newblock - \printlist{organization}% - \newunit\newblock - \printlist{location}% - \newunit\newblock - \usebibmacro{date}% - \newunit\newblock - \printfield{doi}% - \newunit\newblock - \usebibmacro{eprint}% - \newunit\newblock - \usebibmacro{url+urldate}% - \newunit\newblock - \printfield{addendum}% - \usebibmacro{origfields}% - \newunit\newblock - \usebibmacro{annotation}% - \newunit\newblock - \usebibmacro{pageref}% - \usebibmacro{finentry}} - -%\DeclareBibliographyDriver{online}{% -% \usebibmacro{bibindex}% -% \usebibmacro{begentry}% -% \usebibmacro{author/editor+others/translator+others}% -% \setunit{\labelnamepunct}\newblock -% \usebibmacro{title}% -% \newunit -% \printlist{language}% -% \newunit\newblock -% \usebibmacro{byauthor}% -% \newunit\newblock -% \usebibmacro{byeditor+others}% -% \newunit\newblock -% \printfield{version}% -% \newunit -% \printfield{note}% -% \newunit\newblock -% \printlist{organization}% -% \newunit\newblock -% \usebibmacro{date}% -% \newunit\newblock -% \usebibmacro{eprint}% -% \newunit\newblock -% \usebibmacro{url+urldate}% -% \newunit\newblock -% \printfield{addendum}% -% \newunit\newblock -% \usebibmacro{annotation}% -% \newunit\newblock -% \usebibmacro{pageref}% -% \usebibmacro{finentry}} - - \DeclareBibliographyDriver{patent}{% - \usebibmacro{bibindex}% - \usebibmacro{begentry}% - \usebibmacro{author}% - \setunit{\labelnamepunct}\newblock - \usebibmacro{title}% - \newunit - \printlist{language}% - \newunit\newblock - \usebibmacro{byauthor}% - \newunit\newblock - \printfield{type}% - \setunit*{\addspace}% - \printfield{number}% - \iflistundef{location} - {} - {\setunit*{\addspace}% - \printtext[parens]{% - \printlist[][-\value{listtotal}]{location}}}% - \newunit\newblock - \usebibmacro{byholder}% - \newunit\newblock - \printfield{note}% - \newunit\newblock - \usebibmacro{date}% - \newunit\newblock - \usebibmacro{url+urldate}% - \newunit\newblock - \printfield{addendum}% - \newunit\newblock - \usebibmacro{annotation}% - \newunit\newblock - \usebibmacro{pageref}% - \usebibmacro{finentry}} - -\DeclareBibliographyDriver{periodical}{% - \usebibmacro{bibindex}% - \usebibmacro{begentry}% - \usebibmacro{editor}% - \setunit{\labelnamepunct}\newblock - \usebibmacro{title+issuetitle}% - \newunit - \printlist{language}% - \newunit\newblock - \usebibmacro{byeditor}% - \newunit\newblock \printfield{note}% \newunit\newblock - \printfield{issn}% - \newunit\newblock - \printfield{doi}% - \newunit\newblock - \usebibmacro{eprint}% - \newunit\newblock - \usebibmacro{url+urldate}% - \newunit\newblock - \printfield{addendum}% - \newunit\newblock - \usebibmacro{annotation}% - \newunit\newblock - \usebibmacro{pageref}% - \usebibmacro{finentry}} - - -\DeclareBibliographyDriver{proceedings}{% - \usebibmacro{bibindex}% - \usebibmacro{begentry}% - \usebibmacro{editor}% - \setunit{\labelnamepunct}\newblock - \usebibmacro{maintitle+title}% - \newunit - \printlist{language}% - \newunit\newblock - \printfield{venue}% - \newunit\newblock - \usebibmacro{byeditor+others}% - \newunit\newblock - \iffieldundef{maintitle} - {\printfield{volume}% - \printfield{part}} - {}% - \newunit - \printfield{volumes}% - \newunit\newblock - \usebibmacro{series+number}% - \newunit\newblock - \printfield{note} - \newunit\newblock - \printlist{organization}% - \newunit \usebibmacro{publisher+location+date}% \newunit\newblock \usebibmacro{chapter+pages}% - \newunit - \printfield{pagetotal}% - \newunit\newblock - \printfield{isbn}% - \newunit\newblock - \printfield{doi}% \newunit\newblock - \usebibmacro{eprint}% - \newunit\newblock - \usebibmacro{url+urldate}% - \newunit\newblock - \printfield{addendum}% - \usebibmacro{origfields}% - \newunit\newblock - \usebibmacro{annotation}% - \newunit\newblock - \usebibmacro{pageref}% - \usebibmacro{finentry}} - - \DeclareBibliographyDriver{report}{% - \usebibmacro{bibindex}% - \usebibmacro{begentry}% - \usebibmacro{author}% - \setunit{\labelnamepunct}\newblock - \usebibmacro{title}% - \newunit - \printlist{language}% - \newunit\newblock - \usebibmacro{byauthor}% - \newunit\newblock - \printfield{type}% - \setunit*{\addspace}% - \printfield{number}% - \newunit\newblock - \printfield{version}% - \newunit - \printfield{note}% - \newunit\newblock - \usebibmacro{institution+location+year}% - \newunit\newblock - \usebibmacro{chapter+pages}% - \newunit - \printfield{pagetotal}% - \newunit\newblock - \printfield{isrn}% - \newunit\newblock - \printfield{doi}% - \newunit\newblock - \usebibmacro{eprint}% - \newunit\newblock - \usebibmacro{url+urldate}% - \newunit\newblock - \printfield{addendum}% - \newunit\newblock - \usebibmacro{annotation}% - \newunit\newblock - \usebibmacro{pageref}% - \usebibmacro{finentry}} - -\DeclareBibliographyDriver{thesis}{% - \usebibmacro{bibindex}% - \usebibmacro{begentry}% - \usebibmacro{author}% - \setunit{\labelnamepunct}\newblock - \usebibmacro{title}% - \newunit - \printlist{language}% - \newunit\newblock - \usebibmacro{byauthor}% - \newunit\newblock - \printfield{note}% - \newunit\newblock - \printfield{type}% - \newunit - \usebibmacro{institution+location+year}% - \newunit\newblock - \usebibmacro{chapter+pages}% - \newunit - \printfield{pagetotal}% - \newunit\newblock - \printfield{doi}% - \newunit\newblock - \usebibmacro{eprint}% - \newunit\newblock - \usebibmacro{url+urldate}% - \newunit\newblock - \printfield{addendum}% - \newunit\newblock - \usebibmacro{annotation}% - \newunit\newblock - \usebibmacro{pageref}% - \usebibmacro{finentry}} - -\DeclareBibliographyDriver{unpublished}{% - \usebibmacro{bibindex}% - \usebibmacro{begentry}% - \usebibmacro{author}% - \setunit{\labelnamepunct}\newblock - \usebibmacro{title}% - \newunit - \printlist{language}% - \newunit\newblock - \usebibmacro{byauthor}% - \newunit\newblock - \printfield{howpublished}% - \newunit\newblock - \printfield{note}% - \newunit\newblock - \usebibmacro{date}% + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% \newunit\newblock - \usebibmacro{url+urldate}% + \usebibmacro{doi+eprint+url}% \newunit\newblock - \printfield{addendum}% + \usebibmacro{addendum+pubstate}% \newunit\newblock - \usebibmacro{annotation}% - \newunit\newblock \usebibmacro{pageref}% \usebibmacro{finentry}} diff --git a/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.cbx b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.cbx index 9ca2d41d0dd..5fb9c298206 100644 --- a/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.cbx +++ b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-classic.cbx @@ -1,13 +1,14 @@ -% $Id: philosophy-classic.cbx,v 0.4c 2010/02/27 Valbusa$ +% $Id: philosophy-classic.cbx,v 0.5 2010/03/07 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.cbx}[philosophy-classic.cbx,v 0.4c 2010/02/27 valbusa beta$] +\ProvidesFile{philosophy-classic.cbx}[philosophy-classic.cbx,v 0.5 2010/03/07 valbusa beta$] \RequireCitationStyle{authoryear-comp} +\DeclareLanguageMapping{italian}{italian-philosophy} \newbool{cbx:scauthorscite} @@ -18,8 +19,15 @@ scauthorscite=false } - +%*********************************************************************************************************** +% +% AT EVERY CITE +% +%*********************************************************************************************************** \AtEveryCite{% + \ifbool{bbx:onlyfirstsc}% + {\renewcommand*{\mkbibnamelast}[1]{\textsc{#1}}}% + {}% \ifbool{cbx:scauthorscite}% {\renewcommand*{\mkbibnamelast}[1]{\textsc{#1}}} {}% 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 8f686073d13..b42152fe62a 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.4c 2010/02/27 Valbusa$ +% $Id: philosophy-modern.bbx,v 0.5 2010/03/07 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-modern.bbx}[philosophy-modern.bbx,v 0.4c 2010/02/27 valbusa beta$] +\ProvidesFile{philosophy-modern.bbx}[philosophy-modern.bbx,v 0.5 2010/03/07 valbusa beta$] \RequireBibliographyStyle{philosophy-classic} @@ -35,7 +35,8 @@ yearleft=false% %% new commands %%--------------------------------------------------------------------------------------------- -\newcommand{\postsep}{\par\vspace*{\postnamesep}\hspace*{-\bibhang}\ignorespaces} +\newcommand{\postsep}{\par\nobreak\vskip\postnamesep\hskip-\bibhang\ignorespaces} + %\renewcommand{\labelnamepunct}{% % \ifthenelse{\ifnameundef{author}} @@ -55,50 +56,7 @@ yearleft=false% \AtBeginShorthands{% \renewcommand{\postsep}{} - \renewcommand{\labelnamepunct}{\addcomma\space} -\renewbibmacro*{commaloc}{% - \iflistundef{publisher}{} - {\printlist{publisher}} - \setunit*{\addcomma\space}% - \printlist{location}% - \setunit*{\space}% - \printtext{\printdateextra}% - \newunit} -\renewbibmacro*{colonloc}{% - \printlist{location}% - \iflistundef{publisher} - {\setunit*{\addspace}} - {\setunit*{\addcolon\space}}% - \printlist{publisher}% - \setunit*{\addcomma\space}% - \printtext{\printdateextra}% - \newunit} -\renewbibmacro*{date+extrayear}{} -\renewbibmacro*{origfields}{% - \iflistundef{origlocation}% - {} - {\setunit{\addsemicolon\space} - \iffieldundef{reprinttitle}% - {\printtext{\bibstring{reprintas}}} - {\printtext{\bibstring{reprint}}\nopunct} - \setunit{\addspace} - \iffieldundef{reprinttitle}% - {\usebibmacro{origtitle}} - {\usebibmacro{reprinttitle}} - \newunit\newblock - \usebibmacro{origpublisher+origlocation+origdate}} -} - -\renewbibmacro*{title}{% - \ifthenelse{\iffieldundef{title}\AND\iffieldundef{subtitle}} - {}% - {\printtext[title]{% - \printfield[titlecase]{title}% - \setunit{\subtitlepunct}% - \printfield[titlecase]{subtitle}}% - \newunit}% - \printfield{titleaddon}} -} + \renewcommand{\labelnamepunct}{\addcomma\space}} %%--------------------------------------------------------------------------------------------- @@ -109,38 +67,10 @@ yearleft=false% \iffieldundef{year}% {}% {\makebox[\bibhang][r]{% - \printtext{\printdateextra% + \printtext{\printfield{labelyear}\printfield{extrayear}% \hskip\yeartitle}}}} -\renewbibmacro*{title}{% - \ifthenelse{\iffieldundef{title}\AND\iffieldundef{subtitle}} - {}% - {\iflistundef{origlocation} - {\iffieldundef{origdate} - {} - {\printtext[parens]{\bibstring{reprintof}\addspace\printorigdate}} - \printtext[title]{% - \printfield[titlecase]{title}% - \setunit{\subtitlepunct}% - \printfield[titlecase]{subtitle}}} - {\printtext[title]{% - \printfield[titlecase]{title}% - \setunit{\subtitlepunct}% - \printfield[titlecase]{subtitle}} - }% - \newunit}% -\printfield{titleaddon}} - -\renewbibmacro*{maintitle}{% - \ifthenelse{\iffieldundef{maintitle}\AND\iffieldundef{mainsubtitle}} - {} - {%\iffieldundef{origlocation}{\printtext{ed. or. \printfield{year}}}{} - \printtext[maintitle]{% - \printfield[titlecase]{maintitle}% - \setunit{\subtitlepunct}% - \printfield[titlecase]{mainsubtitle}}% - \newunit}% - \printfield{maintitleaddon}} + % label for entries without 'editor' and 'author' @@ -154,84 +84,52 @@ yearleft=false% {\printtext{\printfield{label}}% \postsep}} -% macro 'author' +% macro 'author' OKKKKK %%---------------------------------------------------- + \renewbibmacro*{author}{% - \ifthenelse{\ifuseauthor\AND\NOT\ifnameundef{author}} - {\ifthenelse{\iffieldequals{fullhash}{\bbx@lasthash}\AND - \NOT\iffirstonpage} - {}% - {\savefield{fullhash}{\bbx@lasthash}% - \printnames{author}% - \postsep - \iffieldundef{authortype} - {}% - {\setunit{\addcomma\space}}}% + \ifthenelse{\ifuseauthor\AND\NOT\ifnameundef{author}} + {\ifthenelse{\iffieldequals{fullhash}{\bbx@lasthash}\AND + \NOT\iffirstonpage\AND + \(\NOT\boolean{bbx@inset}\OR + \iffieldequalstr{entrysetcount}{1}\)} + {}%MOD + {\usebibmacro{bbx:savehash}% + \printnames{author}% + \postsep%ADD \iffieldundef{authortype} - {}% - {\usebibmacro{authorstrg}% + {\setunit{\addspace}} + {\setunit{\addcomma\space}}}% + \iffieldundef{authortype} + {} + {\usebibmacro{authorstrg}% \setunit{\addspace}}}% - {\global\undef\bbx@lasthash - \usebibmacro{labeltitle}}% - \usebibmacro{date+extrayear}} + {\global\undef\bbx@lasthash + \usebibmacro{labeltitle}% + \setunit*{\addspace}}% + \usebibmacro{date+extrayear}} -% macro 'editor' + +% macro 'editor' OKKKKKK %%---------------------------------------------------- \renewbibmacro*{bbx:editor}[1]{% - \ifthenelse{\ifuseeditor\AND\NOT\ifnameundef{editor}} - {\ifthenelse{\iffieldequals{fullhash}{\bbx@lasthash}\AND - \NOT\iffirstonpage} - {}% - {\printnames{editor}% - \postsep\savefield{fullhash}{\bbx@lasthash}}% - \clearname{editor}}% - {\global\undef\bbx@lasthash - \usebibmacro{labeltitle}% - }% - \usebibmacro{date+extrayear}% - \setunit*{\unspace} - \iffieldundef{label} - {\usebibmacro{#1}}{}% - } - - -%%--------------------------------------------------------------------------------------------- -% Crossref -%%--------------------------------------------------------------------------------------------- - -\renewbibmacro*{crossdate+extrayear}{% - \iffieldundef{year}% - {}% - {\unspace\printtext[parens]{\printdateextra}}} - -\DeclareCiteCommand{\bbx@inbookcrossref} - {}% - {\ifsingletitle% - {\printtext[bibhyperref]{\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[bibhyperref]{\usebibmacro{crossdate+extrayear}}}}% - {\unspace}% - {\unspace} - -\DeclareCiteCommand{\bbx@crossref} - {}% - {\ifsingletitle% - {\printtext[bibhyperref]{\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[bibhyperref]{\usebibmacro{crossdate+extrayear}}}}% - {\unspace}% - {\unspace} + \ifthenelse{\ifuseeditor\AND\NOT\ifnameundef{editor}} + {\ifthenelse{\iffieldequals{fullhash}{\bbx@lasthash}\AND + \NOT\iffirstonpage\AND + \(\NOT\boolean{bbx@inset}\OR + \iffieldequalstr{entrysetcount}{1}\)} + {}%MOD + {\printnames{editor}% + \postsep%ADD + \usebibmacro{bbx:savehash}}% + \clearname{editor}}% + {\global\undef\bbx@lasthash + \usebibmacro{labeltitle}}% + \usebibmacro{date+extrayear}% + \iffieldundef{label} + {\usebibmacro{#1}\setunit{\addcomma\space}}{}% + } %%--------------------------------------------------------------------------------------------- % BIBLIOGRAPHY DRIVERS @@ -241,16 +139,15 @@ yearleft=false% \usebibmacro{bibindex}% \usebibmacro{begentry}% \usebibmacro{editor+others}% - \ifuseeditor{\setunit{\addspace}}% - {\unspace}\newblock - \usebibmacro{maintitle+title}% + \setunit{\addcomma\space}\newblock + \usebibmacro{maintitle+title}% \newunit \printlist{language}% \newunit\newblock \usebibmacro{byeditor+others}% \newunit\newblock - \printfield{edition}% - \newunit% + \printfield{edition}% + \newunit \iffieldundef{maintitle} {\printfield{volume}% \printfield{part}} @@ -268,23 +165,16 @@ yearleft=false% \newunit \printfield{pagetotal}% \newunit\newblock - \printfield{isbn}% - \newunit\newblock - \printfield{doi}% + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% \newunit\newblock - \usebibmacro{eprint}% + \usebibmacro{doi+eprint+url}% \newunit\newblock - \usebibmacro{url+urldate}% + \usebibmacro{addendum+pubstate}% \newunit\newblock - \printfield{addendum}% - \usebibmacro{origfields}% - \newunit\newblock - \usebibmacro{annotation}% - \newunit\newblock - \usebibmacro{pageref}% - \newunit\newblock - \usebibmacro{finentry}} - + \usebibmacro{pageref}% + \usebibmacro{finentry}} \DeclareBibliographyDriver{set}{% diff --git a/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-modern.cbx b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-modern.cbx index 78bf86b57dd..f6f540223d5 100644 --- a/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-modern.cbx +++ b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-modern.cbx @@ -1,10 +1,10 @@ -% $Id: philosophy-modern.cbx,v 0.4c 2010/02/27 Valbusa$ +% $Id: philosophy-modern.cbx,v 0.5 2010/03/07 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-modern.cbx}[philosophy-modern.cbx,v 0.4c 2010/02/27 valbusa beta$] +\ProvidesFile{philosophy-modern.cbx}[philosophy-modern.cbx,v 0.5 2010/03/07 valbusa beta$] \RequireCitationStyle{philosophy-classic} diff --git a/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-verbose.bbx b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-verbose.bbx new file mode 100644 index 00000000000..f424d8643f3 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-verbose.bbx @@ -0,0 +1,654 @@ +% $Id: philosophy-verbose.bbx,v 0.5 2010/03/07 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-verbose.bbx}[$Id: philosophy-verbose.bbx,v 0.5 2010/03/07 valbsua beta $] + +\RequireBibliographyStyle{authortitle} +\DeclareLanguageMapping{italian}{italian-philosophy} + +%*********************************************************************************************************** +% +% DECLARE AND EXECUTE BIBLIOGRAPHY OPTIONS +% +%*********************************************************************************************************** + +\newbool{bbx:locpubyear} +\newbool{bbx:annotation} +\newbool{bbx:library} +\newbool{bbx:scauthors} +\newbool{bbx:scauthorsbib} +\newbool{bbx:origparens} +\newbool{bbx:origbrackets} +\newbool{bbx:itbackref} + + +\DeclareBibliographyOption{locpubyear}[true]{% + \csuse{bool#1}{bbx:locpubyear}} +\DeclareBibliographyOption{annotation}[true]{% + \csuse{bool#1}{bbx:annotation}} +\DeclareBibliographyOption{library}[true]{% + \csuse{bool#1}{bbx:library}} +\DeclareBibliographyOption{scauthors}[true]{% + \csuse{bool#1}{bbx:scauthors}} +\DeclareBibliographyOption{scauthorsbib}[true]{% + \csuse{bool#1}{bbx:scauthorsbib}} + +\DeclareBibliographyOption{origparens}[true]{% + \csuse{bool#1}{bbx:origparens}} + \DeclareBibliographyOption{origbrackets}[true]{% + \csuse{bool#1}{bbx:origbrackets}} +\DeclareBibliographyOption{itbackref}[true]{% + \csuse{bool#1}{bbx:itbackref}} + +\ExecuteBibliographyOptions{% +locpubyear=false, +annotation=false, +library=true, +scauthors=false, +scauthorsbib=false, +itbackref=false, +origparens=false, +origbrackets=false} + +%*********************************************************************************************************** +% +% AT BEGIN SHORTHANDS +% +%*********************************************************************************************************** +% +\AtBeginShorthands{\boolfalse{bbx:annotation}} + +%*********************************************************************************************************** +% +% AT BEGIN DOCUMENT +% +%*********************************************************************************************************** +\AtBeginDocument{% +\ifbool{bbx:origbrackets}{\booltrue{bbx:origparens} +\renewcommand{\origleftparen}{\bibleftbracket} +\renewcommand{\origrightparen}{\bibrightbracket}}% +{}% + \ifbool{bbx:scauthors} + {\booltrue{bbx:scauthorsbib}\booltrue{cbx:scauthorscite}}% + {}% +} + +%*********************************************************************************************************** +% +% AT BEGIN BILIOGRAPHY +% +%*********************************************************************************************************** +\AtBeginBibliography{% +\global\boolfalse{cbx:loccit}% +\citetrackertrue +% ITLIAN BACKREF +\ifbool{bbx:itbackref} + {\renewbibmacro*{pageref}{% + \iflistundef{pageref} + {}% + {\setunit{\addperiod\space}% + \ifnum\value{pageref}>1\relax + \printtext[backrefparens]{Citato\addspace alle\addspace \bibstring{pages}\ppspace% + \printlist[pageref][-\value{listtotal}]{pageref}\adddot}\nopunct + \else + \printtext[backrefparens]{Citato\addspace a\addspace \bibstring{page}\ppspace% + \printlist[pageref][-\value{listtotal}]{pageref}\adddot}\nopunct + \fi}}}% + {\renewbibmacro*{pageref}{% + \iflistundef{pageref} + {} + {\setunit{\addperiod\space}% + \ifnum\value{pageref}>1\relax + \printtext[backrefparens]{\bibstring{see}\space% + \bibstring{pages}\ppspace% + \printlist[pageref][-\value{listtotal}]{pageref}\adddot}\nopunct + \else + \printtext[backrefparens]{\bibstring{see}\space% + \bibstring{page}\ppspace% + \printlist[pageref][-\value{listtotal}]{pageref}\adddot}\nopunct + \fi}}} +% SMALL CAPS AUTHORS NAME +\ifbool{bbx:scauthorsbib}{\DeclareNameFormat{sortname}{% + \ifnumequal{\value{listcount}}{1} + {\iffirstinits + {\usebibmacro{name:last-first}{\textsc{#1}}{\textsc{#4}}{\textsc{#5}}{\textsc{#7}}} + {\usebibmacro{name:last-first}{\textsc{#1}}{\textsc{#3}}{\textsc{#5}}{\textsc{#7}}}% + \ifblank{#3#5} + {} + {\usebibmacro{name:revsdelim}}} + {\iffirstinits + {\usebibmacro{name:first-last}{\textsc{#1}}{\textsc{#4}}{\textsc{#5}}{\textsc{#7}}} + {\usebibmacro{name:first-last}{\textsc{#1}}{\textsc{#3}}{\textsc{#5}}{\textsc{#7}}}}% + \usebibmacro{name:andothers}} +}{}} + + +%*********************************************************************************************************** +% +% FIELDS FORMAT +% +%*********************************************************************************************************** + + +%--------------------------------------------------------------------- +% new commands +%--------------------------------------------------------------------- +\newcommand*{\pureleftparen}{\blx@postpunct(} +\newcommand*{\purerightparen}{\blx@postpunct)\midsentence} + +\newrobustcmd{\mkpureparens}[1]{% + \blx@postpunct + \begingroup + \let\mkpureparens\blx@noparens + \pureleftparen#1\blx@postpunct\purerightparen + \endgroup} + +% Definisco ora alcuni comandi che servono per il formato dei campi. +\newcommand{\annotationfont}{\sffamily} +\newcommand{\libraryfont}{} +\newcommand{\backrefleftparen}{(} +\newcommand{\backrefrightparen}{)} +\newcommand{\backrefparens}[1]{\backrefleftparen#1\backrefrightparen} + +% Nuovi comandi per avere la traduzione tra parentesi +\newcommand{\origleftparen}{\bibleftparen} +\newcommand{\origrightparen}{\bibrightparen} + +\renewcommand*{\newunitpunct}{\addcomma\space} +\renewcommand*{\subtitlepunct}{\addperiod\space} + +\appto\biburlsetup{\Urlmuskip=0mu\relax} + +%--------------------------------------------------------------------- +% fields format +%--------------------------------------------------------------------- + +% TITLE +\DeclareFieldFormat[inbook]{title}{\mkbibemph{#1}} + +% CITETITLE +\DeclareFieldFormat[inbook]{citetitle}{\mkbibemph{#1}} + +% ORIGTITLE +\DeclareFieldFormat{origtitle}{\mkbibemph{#1}} + +% USERA +\DeclareFieldFormat{usera}{\mkbibemph{#1}} +\DeclareFieldFormat[article]{usera}{\mkbibquote{#1}} +\DeclareFieldFormat[inbook]{usera}{\mkbibemph{#1}} +\DeclareFieldFormat[incollection]{usera}{\mkbibquote{#1}} + +% USERC +\DeclareFieldFormat{userc}{\mkpageprefix[bookpagination]{#1}} + +% URL +\DeclareFieldFormat{url}{\url{#1}} + +% ANNOTATION LIBRARY +\DeclareFieldFormat{annotation}{\annotationfont #1} +\DeclareFieldFormat{library}{\libraryfont #1} + +% PARENS +\DeclareFieldFormat{backrefparens}{\mkpureparens{#1}} + + + + + +%*********************************************************************************************************** +% +% NEW MACROS +% +%*********************************************************************************************************** + +%%*********************************************************************************************************** +%\renewbibmacro*{pageref}{% +% \iflistundef{pageref} +% {}% +% {\setunit{\addperiod\space}% +% \ifnum\value{pageref}>1\relax +% \printtext[backrefparens]{\bibstring{see}\space% +% \bibstring{pages}\ppspace% +% \printlist[pageref][-\value{listtotal}]{pageref}\adddot}\nopunct%MOD +% \else +% \printtext[backrefparens]{\bibstring{see}\space% +% \bibstring{page}\ppspace% +% \printlist[pageref][-\value{listtotal}]{pageref}\adddot}\nopunct%MOD +% \fi}} + +%*********************************************************************************************************** +\renewbibmacro*{publisher+location+date}{% + \ifbool{bbx:locpubyear}% + {\usebibmacro{colonloc}} + {\usebibmacro{commaloc}}} + +% Macro per la forma ``Publisher, Location Year''. +%*********************************************************************************************************** +\newbibmacro*{commaloc}{% + \iflistundef{publisher}% + {}% + {\printlist{publisher}} + \setunit*{\addcomma\space}% + \printlist{location}% + \setunit*{\addspace}% + \usebibmacro{date}% + \newunit} + +% Macro per la forma ``Location: Publisher, Year'' +%*********************************************************************************************************** +\newbibmacro*{colonloc}{% + \printlist{location}% + \iflistundef{publisher}% + {\setunit*{\addspace}} + {\setunit*{\addcolon\space}}% + \printlist{publisher}% + \setunit*{\addcomma\space}% + \usebibmacro{date}% +\newunit} + + +%*********************************************************************************************************** +%*********************************************************************************************************** + +\renewbibmacro*{bbx:editor}[1]{% + \ifthenelse{\ifuseeditor\AND\NOT\ifnameundef{editor}} + {\ifthenelse{\iffieldequals{fullhash}{\bbx@lasthash}\AND + \NOT\iffirstonpage\AND + \(\NOT\boolean{bbx@inset}\OR + \iffieldequalstr{entrysetcount}{1}\)} + {\bibnamedash} + {\printnames{editor}% + \setunit{\addspace}% #MOD# + \usebibmacro{bbx:savehash}}% + \usebibmacro{#1}% + \clearname{editor}} + {\global\undef\bbx@lasthash}} + + \renewbibmacro*{author}{% + \ifthenelse{\ifuseauthor\AND\NOT\ifnameundef{author}}% + {\ifthenelse{\iffieldequals{fullhash}{\bbx@lasthash}\AND + \NOT\iffirstonpage\AND + \(\NOT\boolean{bbx@inset}\OR + \iffieldequalstr{entrysetcount}{1}\)} + {\bibnamedash}% + {\printnames{author}% + \setunit{\addcomma\space}% + \usebibmacro{bbx:savehash}}% + \usebibmacro{authorstrg}} + {\global\undef\bbx@lasthash}} + + +%*********************************************************************************************************** +% Definisco le macro che verranno utilizzate per stampare le informazioni relative alla traduzione, che sono state inserite all'interno dei record bibliografici nei campi orig-. +%*********************************************************************************************************** +\newbibmacro*{origfields}{% +\iflistundef{origlocation}% + {}% + {\ifbool{bbx:origparens}{\setunit{\addspace\origleftparen}}{% +\setunit{\addsemicolon\space}}% + \iffieldundef{reprinttitle}% + {\printtext{\bibstring{reprintas}}\nopunct} + {\printtext{\bibstring{reprint}}\nopunct} + \setunit{\addspace}% + \iffieldundef{reprinttitle}% + {\usebibmacro{origtitle}}% + {\usebibmacro{reprinttitle}}% + \newunit\newblock + \usebibmacro{origpublisher+origlocation+origdate}% + \ifbool{bbx:origparens}{\origrightparen}{}% +}} + +\newbibmacro*{origpublisher+origlocation+origdate}{% + \ifbool{bbx:locpubyear}% + {\usebibmacro{origcolonloc}% + \setunit{\bibpagespunct}% + \printfield{userc}} + {\usebibmacro{origcommaloc}% + \setunit{\bibpagespunct}% + \printfield{userc}}} + +% Questa macro gestisce la forma: ``Publisher, Location Year'', relativamente alla traduzione +%*********************************************************************************************************** +\newbibmacro*{origcommaloc}{% +\iflistundef{origpublisher}% + {\printlist{origlocation}% + \setunit*{\addspace}% + \printorigdate}% + {\printlist{origpublisher}% + \setunit*{\addcomma\space}% + \printlist{origlocation}% + \setunit*{\addspace}% + \printorigdate}% + \newunit} + +% Questa macro gestisce la forma: ``Location: Publisher, Year'', relativamente alla traduzione +%*********************************************************************************************************** +\newbibmacro*{origcolonloc}{% +\iflistundef{origlocation}{}% + {\printlist{origlocation}}% + \iflistundef{origpublisher}% + {\setunit*{\addspace}% + \printorigdate}% + {\setunit*{\addcolon\space}% + \printlist{origpublisher}% + \setunit*{\addcomma\space}% + \printorigdate}% + \newunit} + +% La macro che gestisce il titolo della traduzione (origtitle) +%*********************************************************************************************************** +\newbibmacro*{origtitle}{% + \iffieldundef{origtitle}{}{ + \printfield[origtitle]{origtitle}% + \setunit{\addcomma\space}} + \iffieldundef{userb}{}{% + \printfield{userb}% + }} + +% La macro che gestisce il titolo della ristampa (reprinttitle) +%*********************************************************************************************************** +\newbibmacro*{reprinttitle}{% + \iffieldundef{reprinttitle}{}{% + \iffieldsequal{reprinttitle}{title}{}{% + \printfield[title]{reprinttitle}% + \setunit{\addcomma\space}}} + \iffieldundef{userb}{}{% + \printfield{userb}% + }} + +% La macro che gestisce il titolo della traduzione (origtitle) nelle voci incollection +%*********************************************************************************************************** +\newbibmacro*{origtitle:incollection}{% + \iflistundef{origlocation}{}{% +\ifbool{bbx:origparens}{\setunit{\addspace\origleftparen}}{% +\setunit{\addsemicolon\space}}% + \printtext{\bibstring{reprintas}% + \iffieldundef{usera}% + {\setunit{\addspace}}% + {\setunit{\addspace}% + \printfield[usera]{usera}% + \setunit{\addcomma\space}% + \usebibmacro{in:}}% + \setunit{\addspace}% + \newblock + \iffieldundef{origtitle}{}{% + \printfield[origtitle]{origtitle}% + \setunit{\addcomma\space}} + \iffieldundef{userb}{}{% + \printfield{userb}% + \newunit} + \usebibmacro{origpublisher+origlocation+origdate}% + \ifbool{bbx:origparens}{\origrightparen}{}% +}}} + +% La macro che gestisce il titolo della traduzione (origtitle) nelle voci inbook +%*********************************************************************************************************** +\newbibmacro*{origtitle:inbook}{% + \iflistundef{origlocation}{}{% +\ifbool{bbx:origparens}{\setunit{\addspace\origleftparen}}{% +\setunit{\addsemicolon\space}}% + \printtext{\bibstring{reprintas}% + \iffieldundef{usera}% + {\setunit{\addspace}}% + {\setunit{\addspace}% + \printfield{usera}% + \setunit{\addcomma\space}% + \usebibmacro{in:}}% + \setunit{\addspace}% + \newblock + \iffieldundef{origtitle}{}{% + \printfield[origtitle]{origtitle}% + \setunit{\addcomma\space}}% + \iffieldundef{userb}{}{% + \printfield{userb}% + \newunit}% + \usebibmacro{origpublisher+origlocation+origdate}% + \ifbool{bbx:origparens}{\origrightparen}{}% +}}} + +\newbibmacro*{articletranslated}{% + \iflistundef{origlocation}{}{% +\ifbool{bbx:origparens}{\setunit{\addspace\origleftparen}}{% +\setunit{\addsemicolon\space}}% + \printtext{\bibstring{reprintas}% + \iffieldundef{usera}% + {\setunit{\addspace}}% + {\setunit{\addspace} + \printfield{usera}% + \setunit{\addcomma\space}% + \usebibmacro{in:}% + \setunit{\addspace}}% + \iffieldundef{origtitle}{}{% + \printfield[origtitle]{origtitle}% + \newunit\newblock} + \iffieldundef{userb}{}{% + \printfield{userb} + \newunit} + \usebibmacro{origpublisher+origlocation+origdate}% + \ifbool{bbx:origparens}{\origrightparen}{}% +}}} + + +%*********************************************************************************************************** +%*********************************************************************************************************** + + \renewbibmacro*{annotation}{% +\ifbool{bbx:library}{% +\setunit{\addperiod\space}% + \iffieldundef{library} + {\printfile[library]{\bibannotationprefix\thefield{entrykey}.tex}} + {\printfield{library}}} + {} + } + +\renewbibmacro*{finentry}{% + \ifbool{bbx:annotation}% + {\iffieldundef{annotation}% + {\finentry}% + {\setunit{\addperiod\par\nobreak}% + \printtext[annotation]{\printfield{annotation}\finentry\par}}}% + {\finentry}} + + +%*********************************************************************************************************** + + \renewbibmacro*{addendum+pubstate}{% + \printfield{addendum}% + \newunit\newblock + \printfield{pubstate}% + \newunit\newblock + \usebibmacro{origfields}% + \newunit\newblock + \usebibmacro{annotation}% +} + +%*********************************************************************************************************** +%*********************************************************************************************************** + \newbibmacro*{artaddendum+pubstate}{% + \printfield{addendum}% + \newunit\newblock + \printfield{pubstate}% + \newunit\newblock + \usebibmacro{articletranslated}% + \newunit\newblock + \usebibmacro{annotation}% +} + +% Questa è una nuova macro, analoga alla pecedente, ma per le voci \bibtype{inbook} +%*********************************************************************************************************** + \newbibmacro*{inbookaddendum+pubstate}{% + \printfield{addendum}% + \newunit\newblock + \printfield{pubstate}% + \newunit\newblock + \usebibmacro{origtitle:inbook}% + \newunit\newblock + \usebibmacro{annotation}% +} + +% Questa è una nuova macro, analoga alla pecedente, ma per le voci \bibtype{incollection} +%*********************************************************************************************************** + \newbibmacro*{incolladdendum+pubstate}{% + \printfield{addendum}% + \newunit\newblock + \printfield{pubstate}% + \newunit\newblock + \usebibmacro{origtitle:incollection}% + \newunit\newblock + \usebibmacro{annotation}% +} + +%*********************************************************************************************************** +%*********************************************************************************************************** + +\DeclareBibliographyDriver{article}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator+others}% + \setunit{\labelnamepunct}\newblock + \usebibmacro{title}% + \newunit + \printlist{language}% + \newunit\newblock + \usebibmacro{byauthor}% + \newunit\newblock + \usebibmacro{bytranslator+others}% + \newunit\newblock + \printfield{version}% + \newunit\newblock + %\usebibmacro{in:}% + \usebibmacro{journal+issuetitle}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \usebibmacro{note+pages}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{issn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{artaddendum+pubstate}% + \newunit\newblock + \usebibmacro{pageref}% + \usebibmacro{finentry}} + +\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:}% + \iffootnote{% + \iffieldundef{crossref}% + {\usebibmacro{incollection:full}}% + {\printtext{\setunit{\unspace}}% Thanks to Sander Gliboff + \cbx@crossref{\thefield{crossref}}% + \newunit\newblock + \usebibmacro{pageref}% + \usebibmacro{finentry}}}{\usebibmacro{incollection:full}}% + } + + \newbibmacro*{incollection:full}{% + \usebibmacro{maintitle+booktitle}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \printfield{edition}% + \newunit + \iffieldundef{maintitle} + {\printfield{volume}% + \printfield{part}} + {}% + \newunit + \printfield{volumes}% + \newunit\newblock + \usebibmacro{series+number}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{publisher+location+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{incolladdendum+pubstate}% + \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:}% + \iffootnote{% + \iffieldundef{crossref}% + {\usebibmacro{inbook:full}}% + {\printtext{\setunit{\unspace}}% Thanks to Sander Gliboff + \cbx@inbookcrossref{\thefield{crossref}}% + \newunit\newblock + \usebibmacro{pageref}% + \usebibmacro{finentry}}}{\usebibmacro{inbook:full}}% +} + + \newbibmacro*{inbook:full}{% +\usebibmacro{bybookauthor}% + \newunit\newblock + \usebibmacro{maintitle+booktitle}% + \newunit\newblock + \usebibmacro{byeditor+others}% + \newunit\newblock + \printfield{edition}% + \newunit + \iffieldundef{maintitle} + {\printfield{volume}% + \printfield{part}} + {}% + \newunit + \printfield{volumes}% + \newunit\newblock + \usebibmacro{series+number}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{publisher+location+date}% + \newunit\newblock + \usebibmacro{chapter+pages}% + \newunit\newblock + \iftoggle{bbx:isbn} + {\printfield{isbn}} + {}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newunit\newblock + \usebibmacro{inbookaddendum+pubstate}% + \newunit\newblock + \usebibmacro{pageref}% + \usebibmacro{finentry}} + + +\endinput diff --git a/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-verbose.cbx b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-verbose.cbx new file mode 100644 index 00000000000..8b115c393df --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-verbose.cbx @@ -0,0 +1,105 @@ +% $Id: philosophy-verbose.cbx,v 0.5 2010/03/07 17:00:00 15:42:33 valbusa beta $ +% 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-verbose.cbx} +[$Id: philosophy-verbose.cbx,v 0.5 2010/03/07 17:00:00 15:42:33 valbusa beta $] + +\RequireCitationStyle{verbose-trad2} +\DeclareLanguageMapping{italian}{italian-philosophy} + +\newbool{cbx:scauthorscite} +\newbool{cbx:latinemph} + +\DeclareBibliographyOption{scauthorscite}[true]{% + \csuse{bool#1}{cbx:scauthorscite}} +\DeclareBibliographyOption{latinemph}[true]{% + \csuse{bool#1}{cbx:latinemph}} + + +\ExecuteBibliographyOptions{% +idemtracker=false, +loccittracker=strict, +citetracker=true, +scauthorscite=false, +latinemph=false} + +\newbibmacro*{cite:loccit}{% + \printtext{% + \bibhyperlink{cite\csuse{cbx@lastcite@\thefield{entrykey}}}{% + \bibstring[\mkibid]{loccit}}}% + \global\booltrue{cbx:loccit}} + + +\renewbibmacro*{cite:ibid}{% + \ifloccit + {\usebibmacro{cite:loccit}} + {\printtext{% + \bibhyperlink{cite\csuse{cbx@lastcite@\thefield{entrykey}}}{% + \bibstring[\mkibid]{ibidem}}}% + }} + + \renewbibmacro*{cite:title}{% + \printtext[bibhyperlink]{% + \printfield[citetitle]{labeltitle}% + \setunit{\addspace}% + \bibstring{opcit}}} + + +\AtEveryCite{\boolfalse{bbx:annotation}} + + +\DeclareNameFormat{scdefault}{% + \iffirstinits + {\usebibmacro{name:first-last}{\textsc{#1}}{\textsc{#4}}{\textsc{#5}}{\textsc{#7}}} + {\ifblank{#3}{\usebibmacro{name:first-last}{\textsc{#1}}{#3}{#5}{\textsc{#7}}}{\usebibmacro{name:first-last}{\textsc{#1}}{\textsc{#3}}{\textsc{#5}}{\textsc{#7}}}}% + \usebibmacro{name:andothers}} + +\renewbibmacro*{cite:full}{% + \printtext[bibhypertarget]{% + \usedriver + {\ifbool{cbx:scauthorscite}{\DeclareNameAlias{sortname}{scdefault}}{\DeclareNameAlias{sortname}{default}}} + {\thefield{entrytype}}}% + \usebibmacro{shorthandintro}} + + + \AtEveryCite{% + \ifbool{cbx:latinemph}{\renewcommand*{\mkibid}{\emph}}{}% + \ifbool{cbx:scauthorscite}{\DeclareNameFormat{labelname}{% + \ifcase\value{uniquename}% + \usebibmacro{name:last}{\textsc{#1}}{\textsc{#3}}{\textsc{#5}}{\textsc{#7}}% + \or + \ifuseprefix + {\usebibmacro{name:first-last}{\textsc{#1}}{\textsc{#4}}{\textsc{#5}}{\textsc{#8}}} + {\usebibmacro{name:first-last}{\textsc{#1}}{\textsc{#4}}{\textsc{#6}}{\textsc{#8}}}% + \or + \usebibmacro{name:first-last}{\textsc{#1}}{\textsc{#3}}{\textsc{#5}}{\textsc{#7}}% + \fi + \usebibmacro{name:andothers}}}{}} + + + +\DeclareCiteCommand{\cbx@crossref} + {\let\scshape\normalfont}% per evitare il maiuscoletto all'interno della voce + {\ifciteseen{\usebibmacro{editor+others}% + \setunit*{\addcomma\space}\printtext[bibhyperlink]{% + \printfield[citetitle]{labeltitle}% + \setunit{\addspace}% + \bibstring{opcit}}}{\usebibmacro{incollection:full}}}% + {}% + {}% + + +\DeclareCiteCommand{\cbx@inbookcrossref} + {\let\scshape\normalfont}% per evitare il maiuscoletto all'interno della voce + {\ifciteseen{\usebibmacro{bybookauthor}% + \setunit*{\addcomma\space}\printtext[bibhyperlink]{% + \printfield[citetitle]{labeltitle}% + \setunit{\addspace}% + \bibstring{opcit}}}{\usebibmacro{inbook:full}}}% + {}% + {}% + +\endinput |