diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-standard.bbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-standard.bbx | 81 |
1 files changed, 44 insertions, 37 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-standard.bbx b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-standard.bbx index f434181d5e9..206a3af52e2 100644 --- a/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-standard.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-philosophy/philosophy-standard.bbx @@ -1,10 +1,10 @@ -% $Id: philosophy-standard.bbx,v 0.7b 2010/11/20Valbusa$ -% Copyright 2009-2010 Ivan Valbusa. This package is author-maintained. +% $Id: philosophy-standard.bbx,v 0.7c 2011/05/16Valbusa$ +% Copyright 2009-2011 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-standard.bbx}[$Id: philosophy-standard.bbx,v 0.7b 2010/11/20 valbsua beta $] +\ProvidesFile{philosophy-standard.bbx}[$Id: philosophy-standard.bbx,v 0.7c 2011/05/16 valbsua beta $] \RequireBibliographyStyle{standard} @@ -19,50 +19,53 @@ % boolean options %--------------------------------- -\newbool{bbx:annotation} -\newbool{bbx:library} -\newbool{bbx:scauthors} -\newbool{bbx:scauthorsbib} -\newbool{bbx:origparens} -\newbool{bbx:origbrackets} -\newbool{bbx:inbeforejournal} -\newbool{bbx:romanvol} +\newtoggle{bbx:annotation} +\newtoggle{bbx:library} +\newtoggle{bbx:scauthors} +\newtoggle{bbx:scauthorsbib} +\newtoggle{bbx:origparens} +\newtoggle{bbx:origbrackets} +\newtoggle{bbx:inbeforejournal} +\newtoggle{bbx:romanvol} \DeclareBibliographyOption{annotation}[true]{% - \csuse{bool#1}{bbx:annotation}} + \settoggle{bbx:annotation}{#1}} \DeclareBibliographyOption{library}[true]{% - \csuse{bool#1}{bbx:library}} + \settoggle{bbx:library}{#1}} \DeclareBibliographyOption{scauthors}[true]{% - \csuse{bool#1}{bbx:scauthors}} + \settoggle{bbx:scauthors}{#1}} \DeclareBibliographyOption{scauthorsbib}[true]{% - \csuse{bool#1}{bbx:scauthorsbib}} + \settoggle{bbx:scauthorsbib}{#1}} \DeclareBibliographyOption{origparens}[true]{% - \csuse{bool#1}{bbx:origparens}} + \settoggle{bbx:origparens}{#1}} \DeclareBibliographyOption{origbrackets}[true]{% - \csuse{bool#1}{bbx:origbrackets}} + \settoggle{bbx:origbrackets}{#1}} \DeclareBibliographyOption{inbeforejournal}[true]{% - \csuse{bool#1}{bbx:inbeforejournal}} + \settoggle{bbx:inbeforejournal}{#1}} % multi value options %--------------------------------- \newcommand{\bbx@publocformat}{} \newcommand{\bbx@volnumformat}{} \newcommand{\bbx@origfieldsformat}{} +\newcommand{\bbx@origfieldstype}{} \newcommand{\bbx@editionformat}{} \newcommand{\bbx@volumeformat}{} + \DeclareBibliographyOption{publocformat}[publocyear]{% \renewcommand{\bbx@publocformat}{#1}} \DeclareBibliographyOption{volnumformat}[volnumdefault]{% \renewcommand{\bbx@volnumformat}{#1}} \DeclareBibliographyOption{origfieldsformat}[semicolon]{% \renewcommand{\bbx@origfieldsformat}{#1}} +\DeclareBibliographyOption{origfieldstype}[true]{% + \renewcommand{\bbx@origfieldstype}{#1}} \DeclareBibliographyOption{editionformat}[arabic]{% \renewcommand{\bbx@editionformat}{#1}} \DeclareBibliographyOption{volumeformat}[arabic]{% \renewcommand{\bbx@volumeformat}{#1}} - % Execute options %--------------------------------- \ExecuteBibliographyOptions{% @@ -79,16 +82,14 @@ volumeformat=arabic, } - % AT BEGIN SHORTHANDS %**************************************** -\AtBeginShorthands{\boolfalse{bbx:annotation}} - +\AtBeginShorthands{\togglefalse{bbx:annotation}} % AT BEGIN BILIOGRAPHY %**************************************** \AtBeginBibliography{% % SMALL CAPS AUTHORS NAME -\ifbool{bbx:scauthorsbib}{% +\iftoggle{bbx:scauthorsbib}{% \DeclareNameFormat{sortname}{% \ifnumequal{\value{listcount}}{1} {\iffirstinits @@ -103,16 +104,15 @@ \usebibmacro{name:andothers}} }{}% } - % AT BEGIN DOCUMENT %**************************************** \AtBeginDocument{% -\ifbool{bbx:origbrackets}{\booltrue{bbx:origparens} +\iftoggle{bbx:origbrackets}{\toggletrue{bbx:origparens} \renewcommand{\origleftparen}{\bibleftbracket} \renewcommand{\origrightparen}{\bibrightbracket}}% {}% - \ifbool{bbx:scauthors} - {\booltrue{bbx:scauthorsbib}\booltrue{cbx:scauthorscite}}% + \iftoggle{bbx:scauthors} + {\toggletrue{bbx:scauthorsbib}\toggletrue{cbx:scauthorscite}}% {}% } @@ -186,9 +186,10 @@ %---------------------------------------------- % TITLE -\DeclareFieldFormat[inbook]{title}{\mkbibemph{#1}} +\DeclareFieldFormat[bookinbook]{title}{\mkbibemph{#1}} \DeclareFieldFormat[thesis]{title}{\mkbibemph{#1}} \DeclareFieldFormat[review]{title}{#1} +\DeclareFieldFormat[inreference]{title}{\mkbibquote{#1}} % CITETITLE \DeclareFieldFormat[inbook]{citetitle}{\mkbibemph{#1}} @@ -200,6 +201,7 @@ % USERA \DeclareFieldFormat{usera}{\mkbibemph{#1}} \DeclareFieldFormat[article]{usera}{\mkbibquote{#1}} +\DeclareFieldFormat[bookinbook]{usera}{\mkbibemph{#1}} \DeclareFieldFormat[inbook]{usera}{\mkbibemph{#1}} \DeclareFieldFormat[incollection]{usera}{\mkbibquote{#1}} @@ -247,7 +249,7 @@ %*********************************************** \renewbibmacro*{citeindex}{% -\ifciteindex{\indexnames{labelname}}} +\ifciteindex{\indexnames{labelname}}{}} \renewbibmacro*{bibindex}{% \ifbibindex{\indexnames{author}% \indexnames{editor}% @@ -256,6 +258,7 @@ \indexnames{editorc}}% {}}% + \renewbibmacro*{pageref}{% \iflistundef{pageref} {} @@ -296,7 +299,7 @@ {\ifdefstring{\bbx@origfieldsformat}{brackets}{% \setunit{\addspace\origleftbracket}}{\setunit{\addsemicolon\space}}}% \iffieldundef{reprinttitle}% - {\printtext{\bibstring{transtolang}}\nopunct} + {\printtext{\ifdefstring{\bbx@origfieldstype}{edorig}{\bibstring{edorig}}{\bibstring{transtolang}}}\nopunct} {\printtext{\bibstring{reprint}}\nopunct} \setunit{\addspace}% \iffieldundef{reprinttitle}% @@ -462,7 +465,7 @@ \renewbibmacro*{annotation}{% -\ifbool{bbx:library}{% +\iftoggle{bbx:library}{% \setunit{\addperiod\space}% \iffieldundef{library} {\printfile[library]{\bibannotationprefix\thefield{entrykey}.tex}} @@ -471,7 +474,7 @@ } \renewbibmacro*{finentry}{% - \ifbool{bbx:annotation}% + \iftoggle{bbx:annotation}% {\iffieldundef{annotation}% {\finentry}% {\setunit{\addperiod\par\nobreak}% @@ -483,8 +486,9 @@ \printfield{addendum}% \newunit\newblock \printfield{pubstate}% +\ifdefstring{\bbx@origfieldstype}{false}{}{% \newunit\newblock - \usebibmacro{origfields}% + \usebibmacro{origfields}} \newunit\newblock \usebibmacro{annotation}% } @@ -493,8 +497,9 @@ \printfield{addendum}% \newunit\newblock \printfield{pubstate}% +\ifdefstring{\bbx@origfieldstype}{false}{}{% \newunit\newblock - \usebibmacro{articletranslated}% + \usebibmacro{articletranslated}}% \newunit\newblock \usebibmacro{annotation}% } @@ -505,8 +510,9 @@ \printfield{addendum}% \newunit\newblock \printfield{pubstate}% +\ifdefstring{\bbx@origfieldstype}{false}{}{% \newunit\newblock - \usebibmacro{origtitle:inbook}% + \usebibmacro{origtitle:inbook}}% \newunit\newblock \usebibmacro{annotation}% } @@ -517,8 +523,9 @@ \printfield{addendum}% \newunit\newblock \printfield{pubstate}% +\ifdefstring{\bbx@origfieldstype}{false}{}{% \newunit\newblock - \usebibmacro{origtitle:incollection}% + \usebibmacro{origtitle:incollection}}% \newunit\newblock \usebibmacro{annotation}% } @@ -625,7 +632,7 @@ \newunit\newblock \printfield{version}% \newunit\newblock - \ifbool{bbx:inbeforejournal}{\usebibmacro{in:}}{}% + \iftoggle{bbx:inbeforejournal}{\usebibmacro{in:}}{}% \usebibmacro{journal+issuetitle}% \newunit\newblock \usebibmacro{byeditor+others}% |