diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx | 104 |
1 files changed, 89 insertions, 15 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx b/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx index b27b970db44..2473a816a90 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.2e 2014/01/10 Simon Spiegel +% $Id: fiwi.bbx, v1.3 2015/06/30 Simon Spiegel -\ProvidesFile{fiwi.bbx}[v1.2e 2014/01/10 film studies bibliography style] +\ProvidesFile{fiwi.bbx}[v1.3 2015/06/30 film studies bibliography style] \@ifpackagelater{biblatex}{2013/05/01} {} @@ -40,6 +40,12 @@ \pertype{video} \step[fieldsource=editor, fieldtarget=scriptwriter, final] } +\map{ + \pertype{movie} + \pertype{misc} + \pertype{video} + \step[fieldsource=pagetotal, fieldtarget=duration, final] +} \map{ \pertype{movie} \pertype{misc} @@ -62,6 +68,8 @@ \providetoggle{bbx:scriptwriter} \togglefalse{bbx:scriptwriter} +\providetoggle{bbx:actor} +\togglefalse{bbx:actor} \providetoggle{bbx:volumeinparens} \togglefalse{bbx:volumeinparens} \providetoggle{filmruntime} @@ -113,6 +121,8 @@ \togglefalse{ignoreaddendum} \providetoggle{ignoreaddendumcit} \togglefalse{ignoreaddendumcit} +\providetoggle{markmissingpublisher} +\togglefalse{markmissingpublisher} % BibliographyOptions @@ -203,8 +213,25 @@ {} }% + + +\DeclareBibliographyOption{publisher}[true]{% +\ifstrequal{#1}{true} + {\toggletrue{printpublisher}} + {} +\ifstrequal{#1}{missing} + {\toggletrue{printpublisher} + \toggletrue{markmissingpublisher}} +{} +\ifstrequal{#1}{false} + {\togglefalse{printpublisher}} +{} +} + + \DeclareBibliographyOption{parensvolume}[true]{\settoggle{bbx:volumeinparens}{#1}} \DeclareBibliographyOption{script}[true]{\settoggle{bbx:scriptwriter}{#1}} +\DeclareBibliographyOption{actor}[true]{\settoggle{bbx:actor}{#1}} \DeclareBibliographyOption{ignorearticle}[true]{\settoggle{ignorearticle}{#1}} \DeclareBibliographyOption{partofcited}[true]{\settoggle{partofcitedflag}{#1}} \DeclareBibliographyOption{germ}[true]{\settoggle{germfassung}{#1}} @@ -218,7 +245,6 @@ \ifstrequal{#1}{true} {\togglefalse{printpublisher}} {\toggletrue{printpublisher}}} -\DeclareBibliographyOption{publisher}[true]{\settoggle{printpublisher}{#1}}% \DeclareBibliographyOption{filmruntime}[true]{\settoggle{filmruntime}{#1}}% \DeclareBibliographyOption{citeprefix}[true]{\settoggle{citeprefix}{#1}} \newbibmacro*{bbx:savehash}{} @@ -250,8 +276,8 @@ {} }% -\ExecuteBibliographyOptions{indexing=cite,maxnames=3,minnames=1,maxitems=9,useprefix=true,sorting=nyt,date=long,datelabel=long,urldate=long,hyperref=auto,pagetracker=true,ibidtracker=context,citetracker=true,labeldate=true,isbn=false,babel=hyphen,} -\ExecuteBibliographyOptions[misc,movie,video]{uniquename=false,labeldate=false,labeltitle=true} +\ExecuteBibliographyOptions{indexing=cite,maxnames=3,minnames=1,maxitems=9,useprefix=true,sorting=nyt,date=long,datelabel=long,urldate=long,hyperref=auto,pagetracker=true,ibidtracker=context,citetracker=true,labeldate=true,isbn=false,autolang=hyphen} +\ExecuteBibliographyOptions[misc,movie,video]{uniquename=false,labeltitle=true} \InitializeBibliographyStyle{% \let\bbx@lasthash\undefined} @@ -319,11 +345,13 @@ \DeclareFieldAlias[misc]{title}[movie]{title} \DeclareFieldAlias[video]{title}[movie]{title} + \DeclareIndexFieldAlias[movie]{indextitle}[misc]{indextitle} \DeclareIndexFieldAlias[video]{indextitle}[misc]{indextitle} \DeclareBibliographyAlias{misc}{movie} \DeclareBibliographyAlias{video}{movie} +\DeclareBibliographyAlias{inbook}{incollection} %\DeclareFieldFormat{related}{\addspace\mkbibparens{#1}} \DeclareFieldFormat[review]{title}{\mkbibquote{#1}} @@ -346,7 +374,9 @@ \DeclareFieldFormat{episode}{\bibstring{tvepisode} #1} \DeclareFieldFormat{urldate}{\addthinspace --\addnbspace\bibstring{urlseen}\space#1} \DeclareFieldFormat{url}{$\langle$\url{#1}$\rangle$} -\DeclareFieldFormat[misc,movie,video]{pagetotal}{#1\bibstring{minutes}} +\DeclareFieldFormat[misc,movie,video]{duration}{#1% + \iffieldequalstr{durationtype}{meter}% + {\bibstring{meters}}{\bibstring{minutes}}} \DeclareFieldFormat[online]{note}{#1~\adddot} \DeclareFieldFormat{origendyear}{\bibdatedash#1} \DeclareFieldFormat{endyear}{\bibdatedash#1\iffieldequalstr{endyear}{} @@ -427,6 +457,18 @@ {\usebibmacro{name:last-first}{#1}{#3}{\bibsentence#5}{#7}}}% \usebibmacro{name:andothers}} +\DeclareNameFormat{name:commas}{% + \renewcommand*{\multinamedelim}{\addcomma\addspace}% + \renewcommand*{\finalnamedelim}{\addcomma\addspace}% + \iffirstinits + {\usebibmacro{actor:first-last}{#1}{#4}{#5}{#7}} + {\usebibmacro{actor:first-last}{#1}{#3}{#5}{#7}}% + \ifblank{#3#5} + {} + {\usebibmacro{name:revsdelim}} + \renewcommand*{\multinamedelim}{\addslash}% + \renewcommand*{\finalnamedelim}{\addslash}} + \DeclareNameFormat{bytranslator}{% \iffirstinits @@ -436,6 +478,15 @@ {} {\usebibmacro{name:revsdelim}}% \usebibmacro{name:andothers}} + +\DeclareNameFormat{actor}{% + \iffirstinits + {\usebibmacro{name:first-last}{#1}{#4}{#5}{#7}} + {\usebibmacro{name:first-last}{#1}{#3}{#5}{#7}}% + \ifblank{#3#5} + {} + {\usebibmacro{name:revsdelim}}% + \usebibmacro{name:andothers}} \DeclareNameFormat{director}{% \usebibmacro{director:first-last}{#1}{#3}{#5}{#7} @@ -490,6 +541,18 @@ \mkbibnamelast{#1}\isdot \ifblank{#4}{}{\addlowpenspace\mkbibnameaffix{#4}\isdot}} +\newbibmacro*{actor:first-last}[4]{% + \usebibmacro{name:delim}{#2#3#1}% + \usebibmacro{name:hook}{#2#3#1}% + \ifblank{#2}{}{\mkbibnamefirst{#2}\isdot\addlowpenspace}% + \ifblank{#3}{}{% + \mkbibnameprefix{#3}\isdot + \ifpunctmark{'} + {} + {\ifuseprefix{\addhighpenspace}{\addlowpenspace}}}% +\mkbibnamelast{#1}\isdot + \ifblank{#4}{}{\addlowpenspace\mkbibnameaffix{#4}\isdot}} + \newbibmacro*{name:delimfirst}[1]{% \ifthenelse{\value{listcount}>\value{liststart}} {\ifthenelse{\value{listcount}<\value{liststop}\OR @@ -599,25 +662,25 @@ \NewBibliographyString{fromjapanese} \NewBibliographyString{fromhebrew} -\NewBibliographyString{frompolish} \NewBibliographyString{minutes} +\NewBibliographyString{meters} \NewBibliographyString{tvseason} \NewBibliographyString{tvepisode} \NewBibliographyString{translatedto} \NewBibliographyString{prepublished} \NewBibliographyString{reviewof} \NewBibliographyString{airdate} -\NewBibliographyString{undated} \NewBibliographyString{directedby} \NewBibliographyString{writtenby} \NewBibliographyString{writtendirectedby} +\NewBibliographyString{actors} %\NewBibliographyString{citepage} %\NewBibliographyString{citepages} \DefineBibliographyStrings{german}{% -andothers = {et al\adddot}, +andothers = {et al\adddot\addspace}, directedby = {Regie\addcolon\addspace}, writtenby = {Buch\addcolon\addspace}, writtendirectedby = {Buch und Regie\addcolon\addspace}, @@ -629,17 +692,18 @@ bypublisher = {bei}, ibidem = {ebd\adddot}, url = {}, urlseen = {Zugriff am}, +actors = {Darsteller\addcolon\addspace}, in = {In\addcolon}, editor = {Hg\adddot}, editors = {Hgg\adddot}, phdthesis ={Unver\"offentlichte Dissertation}, -minutes = {min}, +minutes = {{\addnbthinspace}min}, +meters = {{\addnbthinspace}m}, tvseason = {Staffel}, tvepisode = {Folge}, airdate = {}, astitle = {als}, part = {Teil}, -undated = {undatiert}, translatedto = {dt\adddot}, reviewof = {Rezension von}, prepublished = {Online-Vorver\"offentlichung}, @@ -895,7 +959,7 @@ or ( test {\iftoggle{ignoreaddendumcit}} and test {\ifcitation} ) or test {\ifentrytype{set}}} {\usebibmacro{labelyear}} {\iffieldundef{year} - {\bibstring[\mkbibbrackets]{undated}\addcolon\addspace} + {\bibstring[\mkbibbrackets]{nodate}\addcolon\addspace} {\printtext{% \iffieldundef{endyear}% {\iftoggle{dontprintextrayear}% @@ -1252,6 +1316,10 @@ and test {\iffieldequalstr{relatedtype}{translatedas}}} \ifnameundef{scriptwriter}{}{\newunit\bibstring{writtenby}\printnames{scriptwriter}}} } +\newbibmacro*{movie:actor}{% + \bibstring{actors}\printnames[name:commas][-\value{listtotal}]{actor} +} + \newbibmacro*{mtitle+vol+btitle+bstitle}{% \iffieldundef{maintitle}% {}% @@ -1322,7 +1390,9 @@ and test {\iffieldequalstr{relatedtype}{translatedas}}} \printlist{location}% \iftoggle{printpublisher}% {\iflistundef{publisher}% - {\setunit*{\space}}% + {\iftoggle{markmissingpublisher} + {\addcolon\addspace\textbf{???}\setunit{\addcomma\space}} + {\setunit*{\space}}}% {\iflistundef{location} {\adddot\addspace} {\setunit{\isdot\addcolon\addspace}} @@ -1712,11 +1782,15 @@ and (test {\iffieldundef{origyear}}% {\iffieldequalstr{entrysubtype}{tv}% {\usebibmacro{movie:tv}}% {\usebibmacro{movie:regular}}}}% - \iffieldundef{pagetotal} + \newunit\newblock% + \iftoggle{bbx:actor} + {\usebibmacro{movie:actor}}% + {} + \iffieldundef{duration} {} {% \iftoggle{filmruntime}% - {\addcomma\addspace\printfield{pagetotal}}% + {\addcomma\addspace\printfield{duration}}% {}} \iffieldundef{note}% {} |