diff options
author | Karl Berry <karl@freefriends.org> | 2011-12-23 00:39:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-12-23 00:39:07 +0000 |
commit | f1f526bab825b8ba866d9751f50373df25072817 (patch) | |
tree | 2215f342b6a8340f064d8a8e04a3739a44b7e91b /Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx | |
parent | 6bd298d90e4f361f0db8a51c1e6bde230a74d7cc (diff) |
biblatex-fiwi 1.1d (22dec11)
git-svn-id: svn://tug.org/texlive/trunk@24913 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx | 167 |
1 files changed, 120 insertions, 47 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx b/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx index 31da9091322..96475501b9b 100644 --- a/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx @@ -1,6 +1,6 @@ -% $Id: fiwi.bbx, v1.1b 2011/11/22 Simon Spiegel +% $Id: fiwi.bbx, v1.1d 2011/12/21 Simon Spiegel -\ProvidesFile{fiwi.bbx}[v1.1b 2011/11/22 film studies bibliography style] +\ProvidesFile{fiwi.bbx}[v1.1d 2011/12/21 film studies bibliography style] \@ifpackagelater{biblatex}{2011/11/12} {} @@ -14,11 +14,18 @@ \RequireBibliographyStyle{standard} \RequireBiber[2] + +\defcounter{highnamepenalty}{0} +\defcounter{lownamepenalty}{0} + +\renewcommand*{\multinamedelim}{\addslash}% +\renewcommand*{\finalnamedelim}{\addslash}% + + % Diverse Variablen \providetoggle{filmruntime} \providetoggle{citeprefix} \toggletrue{citeprefix} -\providetoggle{bibliographydash} \providetoggle{printseriesflag} \providetoggle{printpublisher} \providetoggle{germfassung} @@ -33,7 +40,12 @@ \togglefalse{origyearwithyear} \providetoggle{origyearsuperscript} \togglefalse{origyearsuperscript} +\providetoggle{partofcitedflag} +\togglefalse{partofcitedflag} +\providetoggle{partofcited} +\togglefalse{partofcited} +\DeclareBibliographyOption{partofcited}[true]{\settoggle{partofcitedflag}{#1}} \DeclareBibliographyOption{germ}[true]{\settoggle{germfassung}{#1}} \DeclareBibliographyOption{noseries}[true]{% \ifstrequal{#1}{true} @@ -46,10 +58,10 @@ \DeclareBibliographyOption{publisher}[true]{\settoggle{printpublisher}{#1}}% \DeclareBibliographyOption{filmruntime}[true]{\settoggle{filmruntime}{#1}}% \DeclareBibliographyOption{citeprefix}[true]{\settoggle{citeprefix}{#1}} +\newbibmacro*{bbx:savehash}{} \DeclareBibliographyOption{dashed}[true]{% \ifstrequal{#1}{true} - {\toggletrue{bibliographydash}% - \renewbibmacro*{bbx:savehash}{\savefield{fullhash}{\bbx@lasthash}}} + {\renewbibmacro*{bbx:savehash}{\savefield{fullhash}{\bbx@lasthash}}} {\renewbibmacro*{bbx:savehash}{}}} \DeclareBibliographyOption{yearatbeginning}[true]{% \ifstrequal{#1}{true} @@ -58,7 +70,7 @@ \DeclareBibliographyOption{origyearsuperscript}[true]{\settoggle{origyearsuperscript}{#1}} -\ExecuteBibliographyOptions{indexing=cite,maxnames=3,minnames=3,maxitems=9,useprefix=true,sorting=nyt,date=long,urldate=long,hyperref=auto,pagetracker=true,ibidtracker=context,citetracker=true,labelyear=true,isbn=false,babel=hyphen} +\ExecuteBibliographyOptions{indexing=cite,maxnames=3,minnames=1,maxitems=9,useprefix=true,sorting=nyt,date=long,urldate=long,hyperref=auto,pagetracker=true,ibidtracker=context,citetracker=true,labelyear=true,isbn=false,babel=hyphen} \ExecuteBibliographyOptions[misc,movie,video]{uniquename=false,labelyear=false} \InitializeBibliographyStyle{% @@ -68,7 +80,6 @@ \newcommand*{\filmruntime}{\toggletrue{filmruntime}}% Schaltet Filmlaufzeit in Filmographie ein \newcommand*{\nopublisher}{\togglefalse{printpublisher}}% Verlag ein oder aus, standardmässig ein \newcommand*{\noseries}{\togglefalse{printseriesflag}}% Reihe ein oder aus, standardmässig ein -\newcommand*{\bibliographydash}{\toggletrue{bibliographydash}}% Ersetzen von wiederh. Autoren in Bibliographie, standardmässig aus \newcommand*{\nociteprefix}{\togglefalse{citeprefix}}% Schaltet Namens-Prefix aus \renewcommand*{\mkbibnameprefix}[1]{#1\addspace} @@ -153,14 +164,21 @@ % name format definitions -\DeclareNameFormat{sortname}{% - \iffirstinits - {\usebibmacro{name:last-first}{#1}{#4}{\bibsentence#5}{#7}}% - {\usebibmacro{name:last-first}{#1}{#3}{\bibsentence#5}{#7}}%#5 - \ifblank{#3#5} - {} - {\usebibmacro{name:revsdelim}}% + + + \DeclareNameFormat{sortname}{% + \ifnumequal{\value{listcount}}{1} + {\iffirstinits + {\usebibmacro{name:last-first}{#1}{#4}{\bibsentence#5}{#7}} + {\usebibmacro{name:last-first}{#1}{#3}{\bibsentence#5}{#7}}% + \ifblank{#3#5} + {} + {\usebibmacro{name:revsdelim}}} + {\iffirstinits + {\usebibmacro{name:last-first}{#1}{#4}{\bibsentence#5}{#7}} + {\usebibmacro{name:last-first}{#1}{#3}{\bibsentence#5}{#7}}}% \usebibmacro{name:andothers}} + \DeclareNameFormat{bytranslator}{% \iffirstinits @@ -190,6 +208,7 @@ \mkbibnamelast{#1}\isdot \ifblank{#4}{}{\addlowpenspace\mkbibnameaffix{#4}\isdot}} + \renewbibmacro*{name:last-first}[4]{% \ifuseprefix% {\usebibmacro{name:delim}{#3#1}% @@ -455,35 +474,61 @@ january = {Januar}, \printfield{pubstate}} \renewbibmacro*{author}{% -\iftoggle{usera} -{} -{% - \ifnameundef{author} - {\let\bbx@lasthash\@undefined} - \iftoggle{bibliographydash} - {\usebibmacro{bbx:dashcheck} - {\bibnamedash}% - {\usebibmacro{bbx:savehash}% - \printnames{author}\iffieldundef{nameaddon} - {}{\printfield{nameaddon}}}% - \isdot\addcolon\addspace} - {\printnames{author}\iffieldundef{nameaddon} - {}{\printfield{nameaddon}}% - \global\undef\bbx@lasthash% - \isdot\addcolon\addspace% - }}}% + \ifboolexpr{ + test \ifuseauthor + and + not test {\ifnameundef{author}} + } + {\usebibmacro{bbx:dashcheck} + {\bibnamedash} + {\usebibmacro{bbx:savehash}% + \printnames{author}% + \iffieldundef{authortype} + {\setunit{\addspace}\addcolon\addspace} + {\setunit{\addcomma\space}}}% + \iffieldundef{authortype} + {} + {\usebibmacro{authorstrg}\addcolon\addspace% + \setunit{\addspace}}}% + {\global\undef\bbx@lasthash + \usebibmacro{labeltitle}% + \setunit*{\addspace}}} + + \renewbibmacro*{editor}{% + \usebibmacro{bbx:editor}{editorstrg}} +\renewbibmacro*{editor+others}{% + \usebibmacro{bbx:editor}{editor+othersstrg}} +\newbibmacro*{bbx:editor}[1]{% + \ifboolexpr{ + test \ifuseeditor + and + not test {\ifnameundef{editor}} + } + {\usebibmacro{bbx:dashcheck} + {\bibnamedash} + {\printnames{editor}% + \addspace% + \usebibmacro{bbx:savehash}}% + \usebibmacro{#1}% + \clearname{editor}% + \setunit{\addspace}}% + {\global\undef\bbx@lasthash + \usebibmacro{labeltitle}% + \setunit*{\addspace}}} + +\newbibmacro*{incollectioneditor}{% \ifnameundef{editor} {} {\iftoggle{dontprintorig}% - {\printnames{editor}\addspace} + {\printnames{editor}}% {\ifnamesequal{author}{editor}% {\ifthenelse{\value{author}>1}% - {\bibstring{idempp}}% - {\bibstring{idem\thefield{gender}}}}% - {\printnames{editor}}\addspace}}% - \usebibmacro{editorstrg}} + {\bibstring{idempp}\addnbspace}% + {\bibstring{idem\thefield{gender}}\addnbspace}}% + {\printnames{editor}}}}% + \usebibmacro{editorstrg}} \newbibmacro*{collby}{% \ifnameundef{author}% @@ -597,10 +642,6 @@ or test {\iffieldequalstr{entrytype}{set}}} \newunit \printfield{titleaddon}} -\newbibmacro*{bbx:savehash}{% - \savefield{fullhash}{\bbx@lasthash}} - - \newbool{bbx@inset} \DeclareBibliographyDriver{set}{% @@ -631,7 +672,9 @@ or test {\iffieldequalstr{entrytype}{set}}} } {#1} {#2}} - + + + \newbibmacro*{decidetranslatedversion} {% \iftoggle{dontprintorig} @@ -823,13 +866,38 @@ or test {\iffieldequalstr{entrytype}{set}}} \iftoggle{printseriesflag}% {\iffieldundef{series}% {}% - {\setunit{}\addnbspace\printtext{\mkbibparens{=\addspace% + {\setunit{}\addspace\printtext{\mkbibparens{=\addnbspace% \printfield{series}% - \setunit{\addcolon\addnbspace}% - \printfield{number}}}\adddot\addnbspace}% + \iffieldundef{number}{}{\setunit{\addcolon\addnbspace}% + \printfield{number}}}}\adddot\addnbspace}% }}% {} +\newbibmacro*{test:partofcited}{% + \ifboolexpr{( + test {\iffieldundef{crossref}} ) + and test {\iffieldundef{xref}} } + {} + {% + \ifboolexpr{( + test {\iftoggle{partofcitedflag}} + and test {\ifentryseen{\thefield{xref}}} + ) + or ( + test {\iftoggle{partofcitedflag}} + and test {\ifentryseen{\thefield{crossref}}} + )} + {\toggletrue{partofcited}}{}}% + } + +\newbibmacro*{bbx:authorvolumepartof}{% Derzeit nicht gebraucht +\ifnameundef{bookauthor}% + {\ifnameundef{editor} + {} + {\printnames[labelname][-1]{editor}}} + {\printnames[labelname][-1]{bookauthor}} +\addspace\mkbibparens{\printfield{year}}} + \DeclareBibliographyDriver{review}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% @@ -885,6 +953,7 @@ or test {\iffieldequalstr{entrytype}{set}}} \DeclareBibliographyDriver{incollection}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% + \usebibmacro{test:partofcited}% \iftoggle{dontprintorig}{}{\usebibmacro{author/translator}}% %\newunit\newblock \usebibmacro{title}% @@ -896,11 +965,15 @@ or test {\iffieldequalstr{entrytype}{set}}} \newunit\newblock \usebibmacro{in:}% %\newunit% - \newunit\newblock% + \iftoggle{partofcited}% + {\iffieldundef{xref}% + {\mancite\textcite{\thefield{crossref}}}% + {\mancite\textcite{\thefield{xref}}}}% + {\newunit\newblock% \ifnameundef{bookauthor}% {\ifnameundef{editor} {} - {\usebibmacro{editor}}} + {\usebibmacro{incollectioneditor}}} {\usebibmacro{bybookauthor}} %\newunit \newblock% @@ -938,7 +1011,7 @@ or test {\iffieldequalstr{entrytype}{set}}} \addspace\usebibmacro{decidetranslatedversion}% \newblock \usebibmacro{addendum+pubstate}% - \newblock + \newblock} \usebibmacro{pageref}% \usebibmacro{finentry}} |