diff options
author | Norbert Preining <preining@logic.at> | 2011-11-18 03:14:08 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2011-11-18 03:14:08 +0000 |
commit | b48ff5479454dd3c8b380d2f569727604cb9c6d8 (patch) | |
tree | 2f73d00f631ccc84676c003a424ec933505d5069 /Master/texmf-dist/tex/latex/biblatex-fiwi | |
parent | d3d09dea9314df83a3dc49557981362cf900bbf8 (diff) |
put biblatex-fiwi files in proper place
git-svn-id: svn://tug.org/texlive/trunk@24617 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-fiwi')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx | 1087 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.cbx | 410 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi2.bbx | 395 |
3 files changed, 1892 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx b/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx new file mode 100644 index 00000000000..9a49931e264 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx @@ -0,0 +1,1087 @@ +% $Id: fiwi.bbx, v1.1 2011/11/15 07:11:00 Simon Spiegel + +\ProvidesFile{fimi.bbx}[v1.1 2011/11/15 film studies bibliography style] + +\@ifpackagelater{biblatex}{2011/11/12} + {} + {\PackageError{biblatex} + {Outdated 'biblatex' package} + {The 'fiwi' style requires biblatex v1.7 or later.\MessageBreak + You are using: '\csuse{ver@biblatex.sty}'.\MessageBreak + This is a fatal error. I'm aborting now.}% + \endinput} + +\RequireBibliographyStyle{standard} +\RequireBiber[2] + +% Diverse Variablen +\providetoggle{filmruntime} +\providetoggle{citeprefix} +\toggletrue{citeprefix} +\providetoggle{bibliographydash} +\providetoggle{printseriesflag} +\providetoggle{printpublisher} +\providetoggle{germfassung} +\providetoggle{intransdecision} +\providetoggle{usera} +\providetoggle{dontprintorig} +\providetoggle{dontprintextrayear} +\togglefalse{dontprintextrayear} + +\DeclareBibliographyOption{germ}[true]{\settoggle{germfassung}{#1}} +\DeclareBibliographyOption{noseries}[true]{\togglefalse{printseriesflag}}% +\DeclareBibliographyOption{series}[true]{\settoggle{printseriesflag}{#1}}% +\DeclareBibliographyOption{nopublisher}[false]{\settoggle{printpublisher}{#1}}% +\DeclareBibliographyOption{publisher}[true]{\settoggle{printpublisher}{#1}}% +\DeclareBibliographyOption{filmruntime}[true]{\settoggle{filmruntime}{#1}}% +\DeclareBibliographyOption{citeprefix}[true]{\settoggle{citeprefix}{#1}} +\DeclareBibliographyOption{dashed}[true]{% + \ifstrequal{#1}{true} +{\toggletrue{bibliographydash}\renewbibmacro*{bbx:savehash}{\savefield{fullhash}{\bbx@lasthash}}} + {\renewbibmacro*{bbx:savehash}{}}} + +\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[misc,movie,video]{uniquename=false,labelyear=false} + +\InitializeBibliographyStyle{% + \let\bbx@lasthash\undefined} + +% Schalter als Befehle +\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} +\renewrobustcmd*{\bibnamedelimi}{\addnbthinspace} +\renewrobustcmd*{\bibinitdelim}{\addnbthinspace} + +\DeclareBibliographyCategory{ubers} + +% format definitions + +\DeclareFieldFormat[review]{title}{#1} +\DeclareFieldFormat[unpublished]{title}{\mkbibemph{#1}} +\DeclareFieldFormat[thesis]{title}{\mkbibemph{#1}} +\DeclareFieldFormat[phdthesis]{title}{\mkbibemph{#1}} +\DeclareFieldFormat{subtitle}{\mkbibemph{#1}} +\DeclareFieldFormat{booksubtitle}{\mkbibemph{#1}} +\DeclareFieldFormat{shorthandwidth}{#1} +\DeclareFieldFormat{film}{\film{#1}} +\DeclareFieldFormat{plain}{\mkbibparens{#1}.} +\DeclareFieldFormat[misc]{note}{\mkbibparens{#1}} +\DeclareFieldFormat{addendum}{\mkbibparens{#1}} +\DeclareFieldFormat{nameaddon}{\addspace\mkbibparens{=#1}} +\DeclareFieldFormat{season}{\bibstring{tvseason} #1} +\DeclareFieldFormat{episode}{\bibstring{tvepisode} #1} +\DeclareFieldFormat{urldate}{\addthinspace --\addnbspace\bibstring{urlseen}\space#1} +\DeclareFieldFormat{url}{$\langle$\url{#1}$\rangle$} +\DeclareFieldFormat[misc]{pagetotal}{#1\bibstring{minutes}} +\DeclareFieldFormat[online]{note}{#1~\adddot} +\DeclareFieldFormat{origendyear}{\bibdatedash#1} +\DeclareFieldFormat{endyear}{\bibdatedash#1\iffieldequalstr{endyear}{} + {\mbox{\addspace}} + {}} +\DeclareFieldFormat{ser+num}{\mkbibparens{#1}} +\DeclareFieldFormat[article,review]{volume}{\bibstring{jourvol}\addnbthinspace{#1}} +\DeclareFieldFormat[article,review]{number}{\bibstring{number}\addnbthinspace{#1}} +\DeclareFieldFormat{origyearbook}{\addspace\mkbibparens{\textsuperscript{1}#1}} +\DeclareFieldFormat{origyearart}{\mkbibparens{#1}} +\DeclareFieldFormat{origtit}{\mkbibparens{Original\addcolon\addspace #1}} +\DeclareFieldFormat{germfassung}{\mkbibbrackets{\bibstring{translatedto}\adddot\addcolon\addspace#1}} + +\DeclareListFormat{default}{% +\usebibmacro{list:delim}{#1}% +#1\isdot + \usebibmacro{list:andothers}} + +\DeclareListFormat{publisher}{% + \usebibmacro{list:delim}{#1}% +#1\isdot% + \usebibmacro{list:andothers}} + +\DeclareListAlias{origpublisher}{publisher} + +\DeclareListFormat{origlanguage}{% + \bibstring{from#1}% + \ifthenelse{\value{listcount}<\value{liststop}} + {\addcomma\space} + {}} + +\DeclareListFormat{location}{% +\ifthenelse{\value{listcount}>3}% +{}% +{#1% +\ifthenelse{\value{listcount}<\value{liststop}}% +{\ifthenelse{\value{listcount}=3}{}{\addslash}}% +{}}} + +\DeclareNameAlias{byeditor}{bytranslator} +\DeclareNameAlias{withafterword}{bytranslator} +\DeclareNameAlias{byredactor}{bytranslator} +\DeclareNameAlias{withcommentator}{bytranslator} +\DeclareNameAlias{withannotator}{bytranslator} +\DeclareNameAlias{withintroduction}{bytranslator} +\DeclareNameAlias{withforeword}{bytranslator} +\DeclareNameAlias{author}{sortname} +\DeclareNameAlias{editor}{author} +\DeclareNameAlias{bookauthor}{author} + +% 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}}% + \usebibmacro{name:andothers}} + +\DeclareNameFormat{bytranslator}{% + \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} + \ifblank{#3#5} + {} + {\usebibmacro{name:revsdelim}}% + \usebibmacro{name:andothers}} + +\newbibmacro*{director: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}} + +\renewbibmacro*{name:last-first}[4]{% + \ifuseprefix% + {\usebibmacro{name:delim}{#3#1}% + \usebibmacro{name:hook}{#3#1}% + \ifblank{#3}{}{% + \ifcapital + {\mkbibnameprefix{\MakeCapital{#3}}\isdot}% + {\mkbibnameprefix{#3}\isdot}% + }%\ifpunctmark{'}{}{\addhighpenspace}}% +\mkbibnamelast{#1}\isdot + \ifblank{#2}{}{\addcomma\addlowpenspace\mkbibnamefirst{#2}\isdot} + \ifblank{#4}{}{\addcomma\addlowpenspace\mkbibnameaffix{#4}\isdot}}% + {\usebibmacro{name:delim}{#1}% + \usebibmacro{name:hook}{#1}% + \mkbibnamelast{#1}\isdot + \ifblank{#4}{}{\addlowpenspace\mkbibnameaffix{#4}\isdot}% + \ifblank{#2#3}{}{\addcomma}% + \ifblank{#2}{}{\addlowpenspace\mkbibnamefirst{#2}\isdot}% + \ifblank{#4}{}{\addlowpenspace\mkbibnameaffix{#4}\isdot}% + \ifblank{#3}{}{\addlowpenspace\mkbibnameprefix{#3}\isdot}}} + +\renewbibmacro*{name:first-last}[4]{% + \usebibmacro{name:delimfirst}{#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 + \ifmorenames} + {\addcomma\addspace} + {\mkfinalnamedelimfirst{#1}}} + {}} + +\newcommand*{\mkfinalnamedelimfirst}[1]{\addspace\bibstring{and}\addspace} + +\newbibmacro*{translatedversion}[1]{% + \toggletrue{intransdecision}% + \edef\@tempa{\noexpand\docsvlist{#1}}% + \def\do##1{\toggletrue{dontprintextrayear}\printtext[germfassung]{% + \fullcite{##1}}}% + \@tempa\toggletrue{dontprintorig}% + \togglefalse{dontprintextrayear}\togglefalse{intransdecision}} + +\newbibmacro*{review}[1]{% + \edef\@tempa{\noexpand\docsvlist{#1}}% + \def\do##1{\toggletrue{dontprintextrayear}\printtext{% + \mkbibquote{% + \iffieldundef{title}{}% + {\usebibmacro{title}}\bibstring{reviewof}\addspace\fullcite{##1}}}}% + \@tempa\togglefalse{dontprintextrayear}} + +\newbibmacro*{url+urldate}{% + \printfield{url}% + \iffieldundef{urlyear} + {} + {\setunit*{\addspace}% + \printtext[]{\printurldate}}} + +% Sorting definitions + +\DeclareSortingScheme{title}{ + \sort{ + \field{presort} + } + \sort[final]{ + \field{sortkey} + } + \sort{ + \name{sortname} + \name{author} + \name{editor} + \name{translator} + \field{maintitle} + \field{sorttitle} + \field{title} + } + \sort{ + \field{sortyear} + \field{year} + } + \sort{ + \field{sorttitle} + \field{title} + } + \sort{ + \field[padside=left,padwidth=4,padchar=0]{volume} + \literal{0000} + } +} + +\DeclareSortingScheme{filmtitle}{ + \sort{ + \field{presort} + } + \sort[final]{ + \field{sortkey} + } + \sort{ + \field{sorttitle} + \field{maintitle} + } + \sort{ + \field{sorttitle} + \field{title} + } + \sort{ + \field{sortyear} + \field{year} + } + \sort{ + \field[padside=left,padwidth=4,padchar=0]{volume} + \literal{0000} + } +} + +\DeclareSortExclusion{misc,movie,video,reference,collection}{sortname,author,editor,translator} +\DeclareSortExclusion{book,incollection,collection}{maintitle} + +% Data inheritance + +\DeclareDataInheritance{book}{incollection}{% + \inherit{author}{bookauthor} + \inherit{editor}{editor} + \inherit{title}{booktitle} + \inherit{subtitle}{booksubtitle} + \inherit{titleaddon}{booktitleaddon} + \noinherit{shorttitle} + \noinherit{sorttitle} + \noinherit{indextitle} + \noinherit{indexsorttitle} +} + +% Bibliography strings + +\NewBibliographyString{fromjapanese} +\NewBibliographyString{fromhebrew} +\NewBibliographyString{frompolish} +\NewBibliographyString{minutes} +\NewBibliographyString{tvseason} +\NewBibliographyString{tvepisode} +\NewBibliographyString{translatedto} +\NewBibliographyString{prepublished} +\NewBibliographyString{reviewof} + +\DefineBibliographyStrings{german}{% +andothers = {et al\adddot}, +fromhebrew = {aus dem Hebr\"aischen}, +fromjapanese = {aus dem Japanischen}, +frompolish = {aus dem Polnischen}, +bycompiler = {zusammengestellt von}, +ibidem = {ebd\adddot\addspace}, +url = {}, +urlseen = {Zugriff am}, +in = {In\addcolon}, +editor = {Hg\adddot}, +editors = {Hgg\adddot}, +phdthesis ={Unver\"offentlichte Dissertation}, +minutes = {min}, +tvseason = {Staffel}, +tvepisode = {Folge}, +translatedto = {dt\adddot}, +reviewof = {Rezension von}, +prepublished = {Online-Vorver\"offentlichung}, +page = {{}{}}, +pages = {{}{}}, +january = {Januar}, + february = {Februar}, + march = {M\"arz}, + april = {April}, + may = {Mai}, + june = {Juni}, + july = {Juli}, + august = {August}, + september = {September}, + october = {Oktober}, + november = {November}, + december = {Dezember}, +} + +% commands + +\renewbibmacro*{finentry}{\iftoggle{intransdecision}% +{\unspace}{\addperiod}} % unklar, \finentry nicht geht + +\renewcommand{\bibsetup}{\raggedright} +\newcommand*{\mkibid}[1]{#1} + +\DeclareRobustCommand{\film}{\textsc} + +\renewbibmacro*{bytranslator+others}{% Bei incollection wird translator nach dem Titel ausgegeben +\ifthenelse{\ifnameundef{translator} \or \iffieldequalstr{entrytype}{incollection}} + {} + {\def\abx@tempa{bytranslator}% + \ifnamesequal{translator}{commentator} + {\appto\abx@tempa{co}% + \clearname{commentator}} + {\ifnamesequal{translator}{annotator} + {\appto\abx@tempa{an}% + \clearname{annotator}} + {}}% + \ifnamesequal{translator}{introduction} + {\appto\abx@tempa{in}% + \clearname{introduction}} + {\ifnamesequal{translator}{foreword} + {\appto\abx@tempa{fo}% + \clearname{foreword}} + {\ifnamesequal{translator}{afterword} + {\appto\abx@tempa{af}% + \clearname{afterword}} + {}}}% + \bibstring{\abx@tempa}% + \setunit{\addspace}% + \printnames[bytranslator]{translator}% + \clearname{translator}% + \newunit}% + \usebibmacro{withothers}} + +\renewbibmacro*{bybookauthor}{% + \iftoggle{dontprintorig}{} + {\ifnamesequal{author}{bookauthor}% + {\ifthenelse{\value{author}>1} + {\bibstring{idempp}} + {\bibstring{idem\thefield{gender}}}}} + {\printnames{bookauthor}}\isdot\addcolon} + +\setlength{\bibitemsep}{0pt} + +\defbibenvironment{bibliography} + {\list + {} + {\setlength{\leftmargin}{\bibhang}% + \setlength{\itemindent}{-\leftmargin}% + \setlength{\itemsep}{\bibitemsep}% + \setlength{\parsep}{\bibparsep}}} + {\endlist} + {\item} + +\defbibenvironment{shorthands} + {\list + {\printfield[shorthandwidth]{shorthand}} + {\setlength{\labelwidth}{\shorthandwidth}% + \setlength{\leftmargin}{\labelwidth}% + \setlength{\labelsep}{\biblabelsep}% + \addtolength{\leftmargin}{\labelsep}% + \setlength{\itemsep}{\bibitemsep}% + \setlength{\parsep}{\bibparsep}% + \renewcommand*{\makelabel}[1]{##1\hss}}} + {\endlist} + {\item} + +\renewbibmacro*{addendum+pubstate}{% +\addspace% + \printfield{addendum}% + \newunit\newblock + \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% + }}}% + +\renewbibmacro*{editor}{% + \ifnameundef{editor} + {} + {\iftoggle{dontprintorig}% + {\printnames{editor}\addspace} + {\ifnamesequal{author}{editor}% + {\ifthenelse{\value{author}>1}% + {\bibstring{idempp}}% + {\bibstring{idem\thefield{gender}}}}% + {\printnames{editor}}\addspace}}% + \usebibmacro{editorstrg}} + +\newbibmacro*{collby}{% +\ifnameundef{author}% +{}% +{\bibstring{byauthor}\space% +\printnames[bytranslator]{author}}% +\ifnameundef{editor}% +{}% +{\bibstring{byeditor}\addspace% +\printnames[bytranslator]{editor}}}% + +\renewbibmacro*{date}{% + \iffieldundef{year}% + {\iffieldundef{urlyear}% + {}% + {\printfield{urlyear}}}% + {\iffieldundef{month} + {\printfield{labelyear}} + {\iffieldundef{day} + {\printfield{month}% + \setunit{\addspace}% + \printfield{labelyear}} + {\printdate}}}} + +\newbibmacro*{labelyear+extrayear}{% +\ifboolexpr{test {\iftoggle{usera}} +or test {\iffieldequalstr{entrytype}{set}}} +{\usebibmacro{labelyear}} +{\iffieldundef{year} + {} + {\printtext{% + \iffieldundef{endyear}% + {\printfield{year}}% + {\printfield{year}\iffieldsequal{year}{endyear}% + {}{\printfield{endyear}}}% + \iftoggle{dontprintextrayear}% + {}{\printfield{extrayear}}% + }}}} + +\newbibmacro*{labelyear}{% + \iffieldundef{year} + {} + {\printtext{% + \iffieldundef{endyear} + {\printfield{labelyear}} + {\printfield{year} + \iffieldsequal{year}{endyear} + {}{\printfield{endyear}}}% + }}} + + \renewbibmacro*{editorstrg}{% + \printtext[editortype]{% + \mkbibparens{\iffieldundef{editortype} + {\ifboolexpr{ + test {\ifnumgreater{\value{editor}}{1}} + or + test {\ifandothers{editor}} + } + {\bibstring{editors}} + {\bibstring{editor}}} + {\ifbibxstring{\thefield{editortype}} + {\ifboolexpr{ + test {\ifnumgreater{\value{editor}}{1}} + or + test {\ifandothers{editor}} + } + {\bibstring{\thefield{editortype}s}} + {\bibstring{\thefield{editortype}}}} + {\thefield{editortype}}}}}\addcolon} + +\renewbibmacro*{title}{% + \iffieldundef{title} + {} + {\printtext[title]{% + \printfield[noformat]{title}% + \newunit\printfield[noformat]{subtitle}}}% + \printfield{titleaddon} + \iffieldundef{origyear} + {} + {\iffieldundef{origtitle} + {\setunit{\addspace}\printtext[origyearart]{\printfield{origyear}% + \iffieldundef{origendyear}% + {}{\printfield{origendyear}}}} + {} + }} + +\newbibmacro*{mtitle+mstitle+vol+part+title+stitle}{% + \iffieldundef{maintitle}% + {}% + {\iffieldundef{volume}% + {}% + {\usebibmacro{maintitle}% + \newunit\newblock + \printfield{volume}% + \printfield{part}% + \setunit{\addcolon\space}}}% + \printfield{title}% + \iffieldundef{maintitle} + {\iffieldundef{booktitle} + {\iffieldundef{volume}{}{\adddot\addspace\printfield{volume}}}{}} + {} + \newunit + \printfield{subtitle}% + \newunit + \printfield{titleaddon}} + +\newbibmacro*{bbx:savehash}{% + \savefield{fullhash}{\bbx@lasthash}} + +\DeclareBibliographyDriver{set}{% + \entryset + {\toggletrue{intransdecision}\ifnumequal{\thefield{entrysetcount}}{1} + {} + {\addspace\setunit{}% + \toggletrue{dontprintorig}\bibopenbracket% + \bibsentence\bibstring{translatedto}\addcolon\space}} + {\ifnumequal{\thefield{entrysetcount}}{1} + {} + {\setunit{}% + \unspace\bibclosebracket}}% + \finentry} + +\newbibmacro*{bbx:dashcheck}[2]{% + \ifboolexpr{ + test {\iffieldequals{fullhash}{\bbx@lasthash}} + and + not test \iffirstonpage + and + ( + not bool {bbx@inset} + or + test {\iffieldequalstr{entrysetcount}{1}} + ) + } + {#1} + {#2}} + +\newbibmacro*{decidetranslatedversion} +{% +\iftoggle{dontprintorig} +{} +{\ifboolexpr{% + test {\iftoggle{germfassung}} + and + not test {\iffieldundef{usera}}} + {\toggletrue{dontprintorig}% + \usebibmacro{translatedversion}{\thefield{usera}}}% + {\usebibmacro{origyear+location+title}}% +}} + +\newbibmacro*{origyear+location+title}{% +\iffieldundef{origtitle}% +{}{\setunit{}\newblock\printtext[origtit]{\printfield{origtitle}% +\iflistundef{origlocation}{}% +{\adddot\addspace\printlist{origlocation}% +\iftoggle{printpublisher}% + {\iflistundef{origpublisher}% + {}% + {\setunit{\isdot\addcolon\addspace} + \printlist{origpublisher}\setunit{\addcomma\space}}}% + {}% +}% +\iffieldundef{origyear}{}% +{\iflistundef{origlocation} +{\adddot}{}\addspace\printorigdate +\iffieldundef{origendyear} +{}{\printfield{origendyear}}}% +}}} + +\newbibmacro*{filmtitle} +{\iffieldundef{maintitle} +{\printfield[film]{title}} +{\printfield[film]{maintitle}}% +\iffieldundef{subtitle}% +{}% +{\setunit{}\addspace\printfield[plain]{subtitle}}% +\iffieldundef{volume}% +{}% +{\printfield[season]{volume}}% +\iffieldundef{number}% +{}% +{\addcomma\addspace\printfield[episode]{number}}% +\iffieldundef{maintitle}% +{}% +{\addcolon\addspace\printfield[film]{title}}% +\ifpunctmark{!}{\unspace .}{\adddot}}% + +\newbibmacro*{filmloc} +{\iflistundef{location}% +{} +{\printlist{location}}% +} + +\newbibmacro*{filmorg} +{ +\iflistundef{organization} +{} +{\printlist{organization}} +} + +\newbibmacro*{director}{ +\ifpunct{\unspace}{}\printnames[director]{author} +} + +\newbibmacro*{mtitle+vol+btitle+bstitle}{% + \iffieldundef{maintitle}% + {}% + {\iffieldundef{volume}% + {}% + {\addspace\usebibmacro{maintitle}% + \newunit% + \printfield{volume}% + \printfield{part}% + \setunit{\addcolon\space}}}% + \usebibmacro{booktitle}\newunit% + \ifnameundef{bookauthor} + {\usebibmacro{withothers}} + {\usebibmacro{byeditor+others}} + } + +\renewbibmacro*{journal+issuetitle}{% + \usebibmacro{journal}\addperiod% + \setunit*{\addspace}% + \iffieldundef{series} + {} + {\newunit + \printfield{series}% + \setunit{\addspace}}% +\iffieldundef{volume}{}{\printfield{volume}\iffieldundef{number}{\addcomma}{\addcomma}}% + \setunit*{\adddot}% +\iffieldundef{number}{}{\printtext{\addspace\printfield{number}}\addspace}% + \printfield{eid}% + \setunit{\addspace}% + \setunit*{\addcomma\addspace}\usebibmacro{issue+date} + \iffieldundef{issuetitle} + {} + {\addcolon\addspace\printtext{\usebibmacro{issue}}}% + \usebibmacro{byeditor}\setunit{\addcomma\space}% +\iffieldundef{pages}{}{\setunit*{\addcomma}}% +} + +\renewbibmacro*{issue+date}{% + \ifterm{}{\setunit{\addcomma\addspace}}% + \iffieldundef{issuetitle}{\setunit*{\addcomma}}{\addthinspace}\printtext{% + \iffieldundef{issue} + {\iffieldundef{month} + {\usebibmacro{labelyear+extrayear}} + {\iffieldundef{day} + {\printfield{month}\iffieldundef{endmonth} + {}{\printtext[endyear]{\mkbibmonth{\thefield{endmonth}}}}% + \setunit{\addspace}% + \usebibmacro{labelyear+extrayear}} + {\printdate}}} + {\printfield{issue}% + \setunit{\addcomma\addspace}% + \usebibmacro{labelyear+extrayear}}}} + +\newbibmacro*{publ+loc+year}{% +\printlist{location}% +\iftoggle{printpublisher}% + {\iflistundef{publisher}% + {\setunit*{\space}}% + {\setunit{\isdot\addcolon\addspace} + \printlist{publisher}\setunit{\addcomma\space}}}% + {\setunit*{\space}}% +\usebibmacro{labelyear+extrayear}% +\usebibmacro{origyear}% +}% + +\newbibmacro*{origyear}{% +\iffieldundef{origyear}% + {}% + {\iffieldundef{origtitle}% + {\printtext[origyearbook]{\printfield{origyear}% + \iffieldundef{origendyear}{}{\printfield{origendyear}}}}% + {}}% +} + +\newbibmacro*{org+publ+loc+year}{% +\iffieldundef{organization}% +{}% +{\printfield{organization}% +\newunit}% +\iflistundef{publisher}% +{\iflistundef{location}% +{}% +{\printlist{location}% +\setunit{\addspace}}}% +{\iflistundef{location}% +{}% +{\printlist{location}}% +\iftoggle{printpublisher} + {\setunit{\isdot\addcolon\space}% + \printlist{publisher}\setunit{\addcomma\space}}% + {\addspace}}% + \usebibmacro{labelyear+extrayear}} + +\newbibmacro*{inst+loc+year}{% + \iflistundef{institution} + {\iflistundef{location} + {} + {\printlist{location}% + \setunit{\addspace}}} + {\iflistundef{location} + {} + {\printlist{location}% + \setunit{\isdot\addcolon\space}}% + \printlist{institution}% + \setunit{\addspace}}% + \usebibmacro{labelyear+extrayear}} + +\newbibmacro*{chap+pag}{% + \iffieldundef{chapter} + {\iffieldundef{pages}% + {}% + {\addcomma\printfield{pages}}}% + {\printfield{chapter}% + \iffieldundef{pages}% + {}% + {\newunit\printfield{pages}}}% + } + +\newbibmacro*{ser+num}{% +\iftoggle{printseriesflag}% +{\iffieldundef{series}% +{}% + {\setunit{}\addnbspace\printtext{\mkbibparens{=\addspace% + \printfield{series}% + \setunit{\addcolon\addnbspace}% + \printfield{number}}}}% +}}% +{} + +\DeclareBibliographyDriver{review}{% +\usebibmacro{bibindex}% +\usebibmacro{begentry}% +\usebibmacro{author/translator}% +\newblock +\usebibmacro{review}{\thefield{usera}}% +\newunit\newblock +\usebibmacro{bytranslator}% +\newunit\newblock +\usebibmacro{in:}% +%\newblock% +\usebibmacro{journal+issuetitle}% +\printfield{pages} +\newblock +\bibsentence\printfield{note}% +%\setunit{.}\newblock + \usebibmacro{addendum+pubstate}% + \newunit\newblock% +\ifthenelse{\iffieldundef{doi} \and \iffieldundef{url} \and \iffieldundef{eprint}}% +{} +{\usebibmacro{doi+eprint+url}}% + \newunit\newblock + \usebibmacro{pageref}% + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{article}{% +\usebibmacro{bibindex}% +\usebibmacro{begentry}% +\usebibmacro{author/translator}% +\newblock +\usebibmacro{title}% +\newunit\newblock +\usebibmacro{bytranslator}% +\newunit\newblock +\usebibmacro{in:}% +%\newblock% +\usebibmacro{journal+issuetitle}% +\printfield{pages} +\newblock +\bibsentence\printfield{note}% +%\setunit{.}\newblock +\usebibmacro{decidetranslatedversion}% + \newblock + \usebibmacro{addendum+pubstate}% + \newunit\newblock% +\ifthenelse{\iffieldundef{doi} \and \iffieldundef{url} \and \iffieldundef{eprint}}% +{} +{\usebibmacro{doi+eprint+url}}% + \newunit\newblock + \usebibmacro{pageref}% + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{incollection}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \iftoggle{dontprintorig}{}{\usebibmacro{author/translator}}% +%\newunit\newblock + \usebibmacro{title}% + \newunit\newblock + \ifnamesequal{author}{bookauthor}{% Verhindern, dass Übersetzer zweimal ausgegeben wird + \ifnamesequal{editor}{translator}{}{% + \usebibmacro{bytranslator}}}% + {\usebibmacro{bytranslator}}% + \newunit\newblock + \usebibmacro{in:}% + %\newunit% + \newunit\newblock% + \ifnameundef{bookauthor}% + {\ifnameundef{editor} + {} + {\usebibmacro{editor}}} + {\usebibmacro{bybookauthor}} + %\newunit + \newblock% + \usebibmacro{mtitle+vol+btitle+bstitle}% + \ifnamesequal{author}{editor} + {\ifnameundef{bookauthor} + {} + {\usebibmacro{byeditor}}} + {} + \ifnamesequal{author}{bookauthor} + {\ifnameundef{editor} + {} + {\usebibmacro{byeditor}\newunit}% + {} + }% + \newunit\newblock + \iffieldundef{maintitle} + {\printfield{volume}} + {}% + \newunit + \printfield{volumes}% + \newunit\newblock + \usebibmacro{ser+num}% + \newunit\newblock% + \printfield{edition}% + \printfield{note}% + \newunit% + \usebibmacro{org+publ+loc+year}% + %\printtext{\printfield{labelyear}}% + \newblock% + \usebibmacro{chap+pag}% + %\setunit{\par}\newblock + %\usebibmacro{doi+eprint+url}% + %\newunit\newblock + \addspace\usebibmacro{decidetranslatedversion}% + \newblock + \usebibmacro{addendum+pubstate}% + \newblock + \usebibmacro{pageref}% + \usebibmacro{finentry}} + + \DeclareBibliographyDriver{book}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \iftoggle{dontprintorig}{}{% + \ifnameundef{author}% + {\ifnameundef{editor} + {} + {\usebibmacro{editor}\addspace}}% +{\usebibmacro{author/translator+others}}}% +\newblock +\usebibmacro{mtitle+mstitle+vol+part+title+stitle}% + \newunit\newblock + \ifnameundef{author} + {} + {\usebibmacro{byeditor+others}}% + \newunit\newblock + \printfield{note}% + \newunit + \printfield{volumes}% + \newunit\newblock + \usebibmacro{ser+num}% + \newunit\newblock% + \printfield{edition}% + \newunit\newblock% +\usebibmacro{publ+loc+year}% +\usebibmacro{chap+pag}% +\newblock +\ifthenelse{\iffieldundef{doi} \and \iffieldundef{url} \and \iffieldundef{eprint}} +{} +{\usebibmacro{doi+eprint+url}}% +\addspace\usebibmacro{decidetranslatedversion}% +\newblock +\usebibmacro{addendum+pubstate}% +\newunit\newblock +\usebibmacro{pageref}% +\usebibmacro{finentry}} + + +\DeclareBibliographyDriver{collection}{% +\usebibmacro{bibindex}% +\usebibmacro{begentry}% +%\usebibmacro{mtitle+vol+title+stitle}% +\usebibmacro{mtitle+mstitle+vol+part+title+stitle}% +\newunit\newblock% +\usebibmacro{collby}% + \newunit\newblock + \usebibmacro{bytranslator}% + \newunit\newblock% + \iffieldundef{edition}% + {}% + {\printfield{edition}}% + \iffieldundef{note}% + {}% + {\printfield{note}}% + %\newunit + %\iffieldundef{maintitle} + %{\printfield{volume}} + %{}% + %\newunit + %\printfield{volumes}% + \newunit\newblock + \usebibmacro{ser+num}% + \newunit\newblock + \usebibmacro{publ+loc+year}% +\addspace\usebibmacro{decidetranslatedversion} + \newunit\newblock + \usebibmacro{chap+pag}% + %\setunit{\par}\newblock + \usebibmacro{doi+eprint+url}% + \newblock + \usebibmacro{addendum+pubstate}% + \newunit\newblock + \usebibmacro{pageref}% + \usebibmacro{finentry}} + + +\DeclareBibliographyDriver{misc}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \newblock% + \iffieldequalstr{entrysubtype}{serial} +% Film- und Fersehserien + {\usebibmacro{filmtitle}% + \newblock% + \usebibmacro{director}\addcomma\newunit% + \usebibmacro{filmloc}\addcomma\newunit% + \usebibmacro{filmorg} + \addspace\printdate% + \iffieldequalstr{endyear}{} + {\addspace .} + {}% + \newunit\newblock% + \iffieldundef{pagetotal} + {}{ + \iftoggle{filmruntime}{\addcomma\addspace\printfield{pagetotal}}{}} + \iffieldundef{note}{}{\printfield{note}} + \usebibmacro{pageref}} +% Normale Filme +{\usebibmacro{filmtitle}% + \newblock% + \usebibmacro{director}\addcomma\addspace + \usebibmacro{filmloc} + \addspace\printdate% + \iffieldundef{pagetotal} + {}{ + \iftoggle{filmruntime}{\addcomma\addspace\printfield{pagetotal}}{}} + \iffieldundef{note}{}{\printfield{note}} + \usebibmacro{pageref}}% + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{online}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor/translator} + \newunit\newblock + \usebibmacro{title}% + \newunit\newblock + \usebibmacro{bytranslator}% + \newunit\newblock + \printlist{organization}% + \newunit\newblock + \usebibmacro{date}% + \newunit\newblock + \addspace\usebibmacro{decidetranslatedversion} + \newunit\newblock + \printfield{note}% + %\newunit\newblock + \addspace\usebibmacro{doi+eprint+url}% + \newblock + \usebibmacro{addendum+pubstate}% + \newunit\newblock + \usebibmacro{pageref}% + \usebibmacro{finentry}} + +\DeclareBibliographyDriver{thesis}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator}% + \newunit\newblock + \usebibmacro{mtitle+mstitle+vol+part+title+stitle}% + \newunit\newblock + \printfield{type}% + \newunit + \usebibmacro{inst+loc+year}% + \newunit\newblock + \usebibmacro{chap+pag}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newblock + \usebibmacro{addendum+pubstate}% + \newunit\newblock + \usebibmacro{pageref}% + \usebibmacro{finentry}} + + \DeclareBibliographyDriver{unpublished}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator}% + \newunit\newblock + \usebibmacro{mtitle+mstitle+vol+part+title+stitle}% + \newunit\newblock + \printfield{type}% + \iffieldundef{issue} + {}{\newunit\printfield{issue}} + \newunit\newblock + \usebibmacro{inst+loc+year}% + \newunit\newblock + \usebibmacro{doi+eprint+url} + \newunit\newblock + \printfield{note}% + \newblock + \usebibmacro{addendum+pubstate}% + \newunit\newblock + \usebibmacro{pageref}% + \usebibmacro{finentry}} + +\endinput diff --git a/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.cbx b/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.cbx new file mode 100644 index 00000000000..422b6f12587 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.cbx @@ -0,0 +1,410 @@ +% $Id: fiwi.cbx,v 1.1 2011/11/15 13:23:00 Simon Spiegel + +\ProvidesFile{fiwi.cbx} +[\abx@cbxid $Id: fiwi.cbx,v 1.1 2011/11/15 13:23:00 spiegel beta $] + + +\ExecuteBibliographyOptions{labelyear,autocite=inline,firstinits=false,uniquename=full,uniquelist=true} + +\newbool{cbx@bool} +\providetoggle{citefullfilm} +\newcommand*{\fullcitefilm}{\settoggle{citefullfilm}{true}} +\DeclareBibliographyOption{fullcitefilm}[false]{\settoggle{citefullfilm}{#1}} + + +\providetoggle{citecompletefilm} +\newcommand*{\completecitefilm}{\settoggle{citecompletefilm}{true}} + + +\renewcommand*{\nameyeardelim}{\addspace} +\renewcommand*{\bibindexnamedelimi}{\,} +\renewcommand*{\bibindexinitdelim}{\,} + +\providetoggle{xindy} +\DeclareBibliographyOption{xindy}[true]{\settoggle{xindy}{#1}} + + +\DeclareFieldFormat{citeyear}{\mkbibparens{#1}} +%\DeclareFieldFormat{labelyear}{\mknumalph{#1}} +\DeclareFieldFormat{film}{\film{#1}} +\DeclareFieldFormat[misc]{subtitle}{#1} +\DeclareFieldFormat[movie]{subtitle}{#1} +\DeclareFieldFormat{title}{\mkbibemph{#1}} +\DeclareFieldFormat{citetitle:incollection}{\emph{#1}\isdot} +\DeclareFieldFormat[misc]{citetitle}{\film{#1}} +\DeclareIndexFieldFormat[misc]{indextitle}{% + \usebibmacro{index:filmtitle}{\index}{#1}} +\DeclareIndexNameFormat{default}{% + \iftoggle{xindy}{\usebibmacro{xindy:name}{\index}{#1}{#3}{#5}{#7}} + {\usebibmacro{index:name}{\index}{#1}{#3}{#5}{#7}}} +\DeclareFieldAlias[movie]{title}[misc]{title} +\DeclareFieldAlias[video]{title}[misc]{title} + +\DeclareIndexFieldAlias[movie]{indextitle}[misc]{indextitle} +\DeclareIndexFieldAlias[video]{indextitle}[misc]{indextitle} + +\DeclareBibliographyAlias{movie}{misc} +\DeclareBibliographyAlias{video}{misc} + + +\DeclareNameFormat{labelname}{% + \ifcase\value{uniquename}% + \usebibmacro{name:last}{#1}{#3}{#5}{#7}% + \or + \iftoggle{citeprefix} + {\usebibmacro{name:first-last}{#1}{#4}{#5}{#8}} + {\usebibmacro{name:first-last}{#1}{#4}{#6}{#8}}% + \or + \usebibmacro{name:first-last}{#1}{#3}{#5}{#7}% + \fi + \usebibmacro{name:andothers}} + +\renewbibmacro*{name:last}[4]{% + \iftoggle{citeprefix} + {\usebibmacro{name:delim}{#3#1}% + \usebibmacro{name:hook}{#3#1}% + \ifblank{#3} + {} + {\ifcapital + {\mkbibnameprefix{\MakeCapital{#3\isdot}}} + {\mkbibnameprefix{#3\isdot}}% + \ifpunctmark{'}{}{\bibnamedelimc}}} + {\ifuseprefix + {\usebibmacro{name:delim}{#3#1}% + \usebibmacro{name:hook}{#3#1}% + \ifblank{#3} + {} + {\ifcapital + {\mkbibnameprefix{\MakeCapital{#3\isdot}}} + {\mkbibnameprefix{#3\isdot}}% + \ifpunctmark{'}{}{\bibnamedelimc}}} + {\usebibmacro{name:delim}{#1}% + \usebibmacro{name:hook}{#1}}}% + \mkbibnamelast{#1}}% + + + + +\newcommand*{\xindy}{\toggletrue{xindy}}% Indizierung für xindy ohne actual-Teil + +\newbibmacro*{index:filmtitle}[2]{% + \iftoggle{xindy}{\usebibmacro{xindy:field}}{\usebibmacro{index:field}}{#1}{\thefield{indexsorttitle}}{\film{#2}}} + +\renewbibmacro*{index:title}[2]{% + \iftoggle{xindy}{\usebibmacro{xindy:field}}{\usebibmacro{index:field}}{#1}{\thefield{indexsorttitle}}{\emph{#2}}} + +\renewcommand*{\multinamedelim}{\addslash}% +\renewcommand*{\finalnamedelim}{\addslash}% +\renewcommand{\postnotedelim}{\addcolon\addspace} +\renewcommand{\sqspace}{\addnbthinspace} + +%\newrobustcmd*{\Textcites}{\bibsentence\textcites} +\newcommand{\citets}{\textcites} +\newrobustcmd*{\Citets}{\Textcites} +\newcommand{\citealts}{\cites} +\newcommand{\Citealts}{\Cites} + +\renewbibmacro*{citeindex}{% + \indexnames[indexname]{labelname}}% + +% Zitierbefehle für Filme und Serien + +\newbibmacro*{citeserial}{% +\ifciteseen +{\iffieldundef{shorttitle} + {\printtext[bibhyperref]{\printfield[film]{title}}} + {\printtext[bibhyperref]{\printfield[film]{shorttitle}}}} +{\printtext[bibhyperref]{\printfield[film]{title} +\addspace\mkbibparens{% +\iflistundef{organization} +{\printlist{location}} +{\printlist{organization}} +\printfield{year}}}}% +} + + +\newbibmacro*{citeserialfull}{% +\printtext[bibhyperref]{\printfield[film]{title} +\addspace\mkbibparens{% +\printlist{location}\iflistundef{organization}{}{\addcomma\addspace\printlist{organization}}\addspace\printfield[]{year}\addcomma\addspace% +\printnames[director]{author}\unspace}}}% + +\newbibmacro*{citef}{% + \ifciteseen + {\iffieldundef{shorttitle} + {\printtext[bibhyperref]{\printfield[film]{title}}} + {\printtext[bibhyperref]{\printfield[film]{shorttitle}}}} + {\printtext[bibhyperref]{\printfield[film]{title}}% + \addspace\printfield[citeyear]{year}}} + +\newbibmacro*{citecf}{% + \printtext[bibhyperref]{\printfield[film]{title} + \addspace\mkbibparens{\printlist{location}\addspace\printfield{year}}}} + +\newbibmacro*{citefilmcomplete}{% Film bei erster Nennung mit Regisseur, Land und dt. Titel + \ifciteseen + {\iffieldundef{shorttitle} + {\printtext[bibhyperref]{\printfield[film]{title}}} + {\printtext[bibhyperref]{\printfield[film]{shorttitle}}}} + {\printtext[bibhyperref]{\printfield[film]{title}}% + \addspace\printtext[citeyear]{\printfield{subtitle}\setunit*{\addcomma\addspace}\printnames[director]{author}\addcomma\addthinspace\printlist{location}\addspace\printfield{year}}}} + +\newbibmacro*{citeff}{% Film bei erster nennung mit Regisseur + \ifciteseen + {\iffieldundef{shorttitle} + {\printtext[bibhyperref]{\printfield[film]{title}}} + {\printtext[bibhyperref]{\printfield[film]{shorttitle}}}} + {\printtext[bibhyperref]{\printfield[film]{title}}% + \addspace\mkbibparens{\printnames[director]{author}\addcomma\addthinspace\printlist{location}\addspace\printfield{year}}}} + + \newbibmacro*{citeffs}{% volle zweitnennung ohne land und jahr + \printtext[bibhyperref]{\printfield[film]{title}}% + \addspace\mkbibparens{\printfield[]{year}}} + +\newbibmacro*{citefff}{% volle zweitnennung mit land und jahr + \printtext[bibhyperref]{\printfield[film]{title}}% + \addspace\mkbibparens{\printnames[director]{author}\addcomma\addthinspace\printlist{location}\addspace\printfield{year}}} + +\newbibmacro*{citefilm2complete}{% volle zweitnennung mit Regisseur, Land und dt. Titel + \printtext[bibhyperref]{\printfield[film]{title}}% + \addspace\printtext[citeyear]{\printfield{subtitle}\setunit*{\addcomma\addspace}\printnames[director]{author}\addcomma\addthinspace\printlist{location}\addspace\printfield{year}}} + + +\newbibmacro*{cite}{% +\iffieldundef{shorthand} +{\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{year}\AND\iffieldundef{urlyear}}% +{\usebibmacro{cite:label}}% +{\printtext[bibhyperref]{\printnames{labelname}}\nameyeardelim% +\usebibmacro{cite:year+labelyear}}}% +{\usebibmacro{cite:shorthand}}}% + +\newbibmacro*{textcite}{% + \ifnameundef{labelname} + {\iffieldundef{shorthand} + {\usebibmacro{cite:label}} + {\usebibmacro{cite:shorthand}}} + {\printnames{labelname}% + \global\booltrue{cbx@bool}% + \addspace\bibopenparen + \iffieldundef{shorthand} + {\ifthenelse{\iffieldundef{year}\AND\iffieldundef{urlyear}} + {\usebibmacro{cite:label}} + {\usebibmacro{cite:year+labelyear}}} + {\usebibmacro{cite:shorthand}}}} + +\newbibmacro*{citeyear}{% + \iffieldundef{shorthand} + {\iffieldundef{year} + {\usebibmacro{cite:label}} + {\usebibmacro{cite:year+labelyear}}} + {\usebibmacro{cite:shorthand}}} + +\newbibmacro*{cite:shorthand}{% + \printtext[bibhyperref]{\printfield{shorthand}}} + +\newbibmacro*{cite:label}{% + \ifnameundef{labelname} + {\BibliographyWarning{Missing author/editor+year or label}} + {\printtext[bibhyperref]{\printnames{labelname}}}} + +\newbibmacro*{cite:year+labelyear}{% + \printtext[bibhyperref]{% + \iffieldundef{year}% + {\iffieldequalstr{entrytype}{online}% + {\printfield{urlyear}}% + {}}% + {\printfield{labelyear}}% + \printfield{extrayear}}} + +\newbibmacro*{xindy:name}[5]{% + \begingroup + \ifuseprefix + {\edef\theindexentry{% + \unexpanded{#1}{% + \ifblank{#4}{}{\unexpanded{#4} }% + \unexpanded{#2}% + \ifblank{#5}{}{ \unexpanded{#5}}% + \ifblank{#3}{}{, \unexpanded{#3}}}}} + {\edef\theindexentry{% + \unexpanded{#1}{% + \unexpanded{#2}% + \ifblank{#5}{}{ \unexpanded{#5}}% + \ifblank{#3#4}{}{,}% + \ifblank{#3}{}{ \unexpanded{#3}}% + \ifblank{#4}{}{ \unexpanded{#4}}}}}% + \theindexentry + \endgroup} + + +\newbibmacro*{xindy:field}[3]{% + \begingroup + \protected@edef\theindexentry{% + \unexpanded{#1}{#3}}% + \theindexentry + \endgroup} + + +\DeclareCiteCommand{\fullcite} + {\usebibmacro{prenote}}% + {\usedriver% + {} + {\thefield{entrytype}}} + {\multicitedelim\unspace}% aus unklaren Gruenden hat es hier ein Space zu viel + {\usebibmacro{postnote}} + + +\DeclareCiteCommand{\cite} + {\usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \ifthenelse{\ifciteibid\AND + \NOT\iffirstonpage} + {\bibstring[\mkibid]{ibidem}}{\usebibmacro{cite}}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\DeclareCiteCommand*{\cite} + {\usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \ifthenelse{\ifciteibid\AND + \NOT\iffirstonpage} + {\bibstring[\mkibid]{ibidem}}{\usebibmacro{citeyear}}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\parencite}[\mkbibparens] + {\usebibmacro{prenote}} + {\ifthenelse{\ifciteibid\AND + \NOT\iffirstonpage} + {\bibstring[\mkibid]{ibidem}} + {\usebibmacro{citeindex}% + \usebibmacro{cite}}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\DeclareCiteCommand*{\parencite}[\mkbibparens] + {\usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \iffirstonpage{\usebibmacro{citeyear}} + {\bibstring[\mkibid]{ibidem}}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\citetitle} + {\citetrackerfalse + \pagetrackerfalse + \usebibmacro{prenote}} + {\indexfield{indextitle}% + \printtext[bibhyperref]{\printfield[citetitle]{labeltitle}}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\citeyear} + {\usebibmacro{prenote}} + {\usebibmacro{citeyear}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\citeurl} + {\usebibmacro{prenote}} + {\printfield[citeurl]{url}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\citealtnoibidem} + {\usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{cite}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\citetnoibidem} + {\usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{textcite}} + {\multicitedelim} + {\iffieldundef{postnote} + {\ifbool{cbx@bool} + {\bibcloseparen} + {}} + {\ifbool{cbx@bool} + {\postnotedelim} + {\addspace\bibopenparen}% + \printfield{postnote}\bibcloseparen}} + +\DeclareCiteCommand{\footcite}[\mkbibfootnote] + {\bibsentence + \usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{textcite}} + {\multicitedelim} + {\iffieldundef{postnote} + {\ifbool{cbx@bool} + {\bibcloseparen} + {}} + {\ifbool{cbx@bool} + {\postnotedelim} + {\addspace\bibopenparen}% + \printfield{postnote}\bibcloseparen}} + +\DeclareCiteCommand{\textcite} + {\boolfalse{cbx@bool}% + \usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}% + {\bibstring[\mkibid]{ibidem}}% + {\usebibmacro{textcite}}} + {\ifbool{cbx@bool} + {\bibcloseparen\global\boolfalse{cbx@bool}} + {}% + \multicitedelim} + {\iffieldundef{postnote} + {\ifbool{cbx@bool} + {\bibcloseparen} + {}} + {\ifbool{cbx@bool} + {\postnotedelim} + {\addspace\bibopenparen}% + \printfield{postnote}\bibcloseparen}} + +\DeclareCiteCommand{\citefilm} + {\usebibmacro{prenote}} + {\indexfield{indextitle}% + \iffieldequalstr{entrysubtype}{serial} + {\usebibmacro{citeserial}} + {\iftoggle{citefullfilm}% + {\usebibmacro{citeff}} + {\iftoggle{citecompletefilm}% + {\usebibmacro{citefilmcomplete}} + {\usebibmacro{citef}}}}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\citecfilm} + {\usebibmacro{prenote}} + {\indexfield{indextitle}% + \usebibmacro{citecf}} + {\multicitedelim} + {\usebibmacro{postnote}} + + + \DeclareCiteCommand{\citefullfilm} + {\usebibmacro{prenote}} + {\indexfield{indextitle}% + \iffieldequalstr{entrysubtype}{serial} + {\usebibmacro{citeserialfull}} + {\iftoggle{citefullfilm}% + {\usebibmacro{citefff}}% + {\iftoggle{citecompletefilm} + {\usebibmacro{citefilm2complete}}{\usebibmacro{citeffs}} + }% + }} + {\multicitedelim} + {\usebibmacro{postnote}} + +\DeclareCiteCommand{\citefilmnoindex} + {\usebibmacro{prenote}} + {\usebibmacro{citef}} + {\multicitedelim} + {\usebibmacro{postnote}} + +\endinput diff --git a/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi2.bbx b/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi2.bbx new file mode 100644 index 00000000000..fc3d1a31f96 --- /dev/null +++ b/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi2.bbx @@ -0,0 +1,395 @@ +% $Id: fiwi2.bbx, v 1.1 2011/11/15 07:11:00 Simon Spiegel +% Stil mit Jahrestahl nach Autor + +\ProvidesFile{fiwi2.bbx}[v 1.1 2011/11/15 film studies bibliography style Author (Year)] + +\RequireBibliographyStyle{fiwi} + +\ExecuteBibliographyOptions{indexing=cite,maxnames=4,minnames=4,maxitems=9,useprefix=true,sorting=nyt,date=long,urldate=long,hyperref=auto,pagetracker=true,ibidtracker=context,citetracker=true,labelyear=true} + +\DeclareFieldFormat{yearparens}{\mkbibparens{#1}\iffieldequalstr{entrytype}{collection}{}{\addcolon\addspace}} +\DeclareFieldFormat{pages}{#1} + +\renewcommand{\ppspace}{} + +\renewbibmacro*{labelyear+extrayear}{% + \iffieldundef{year} + {} + {\printtext[yearparens]{% + \iffieldundef{endyear}{\printfield{labelyear}}{\printfield{year}\iffieldsequal{year}{endyear}{}{\printfield{endyear}}}% + \printfield{extrayear}}}} + +\renewbibmacro*{author}{% + \ifnameundef{author} + {\let\bbx@lasthash\@undefined} + \iftoggle{bibliographydash} + {\iffieldequals{namehash}{\bbx@lasthash} + {\bibnamedash}% + {\printnames{author}\iffieldundef{nameaddon} + {}{\printfield{nameaddon}}}% + \addspace% + \savefield{namehash}{\bbx@lasthash}} + {\printnames{author}\iffieldundef{nameaddon} + {}{\printfield{nameaddon}}% + \isdot\addspace% + \savefield{namehash}{\bbx@lasthash}}}%} + +\renewbibmacro*{editor}{% + \ifnameundef{editor} + {\let\bbx@lasthash\@undefined} + {{\ifnamesequal{author}{editor}{% + \ifthenelse{\value{author}>1}% + {\bibstring{idempp}}% + {\bibstring{idem\thefield{gender}}}}{% + \printnames{editor}}\addspace + \savefield{namehash}{\bbx@lasthash}}% + \iffieldequalstr{entrytype}{book}{}{\usebibmacro{editorstrg}}}} + +\renewbibmacro*{editorstrg}{% + \printtext{\mkbibparens{\unspace + \ifnum\theeditor>1 + \bibstring{editors}% + \else + \bibstring{editor}% + \fi}}% + \ifthenelse{\( + \iffieldequalstr{entrytype}{book}% + \and \ifnameundef{author}% + \and \not \ifnameundef{editor}% + \)% + }% + {\addspace}% + {\addcolon}} + + +\renewbibmacro*{issue+date}{% + \iffieldundef{pages}{}{\ifterm{}{\setunit{\addcomma\addspace}}}\iffieldundef{issuetitle}{\setunit*{\addcomma}}{\addthinspace}\printtext{% + \iffieldundef{issue}% + {\iffieldundef{month}% + {}% + {\iffieldundef{day}% + {\ifpunctmark{*}{\addspace}{}\printfield{month}\iffieldundef{endmonth}{}{\printtext[endyear]{\mkbibmonth{\thefield{endmonth}}}}% + \setunit{\addspace}}% + {\ifpunctmark{*}{\addspace}{}\printdate}}}% + {\printfield{issue}}}}% + + \renewbibmacro*{journal+issuetitle}{% + \usebibmacro{journal}\addperiod% + \setunit*{\addspace}% + \iffieldundef{series} + {} + {\newunit + \printfield{series}% + \setunit{\addspace}}% +\iffieldundef{volume}{}{\printfield{volume}\iffieldundef{number}{\iffieldundef{pages}{\addperiod}{\addcomma}}{\addcomma}}% + \setunit*{\adddot}% +\iffieldundef{number}{}{\printtext{\addspace\printfield{number}}\addspace}% +\ifnameundef{editor}{}{\addperiod\addspace\usebibmacro{byeditor}\setunit{\addcomma\space}}% +\printfield{eid}%% +\usebibmacro{issue+date}% +\iffieldundef{issuetitle}{}{\addcolon\addspace\printtext{\usebibmacro{issue}}}% +} + +\renewbibmacro*{org+publ+loc+year}{% + \iffieldundef{organization} + {} + {\printfield{organization}% + \newunit}% + \iflistundef{publisher} + {\iflistundef{location} + {} + {\printlist{location}% + \setunit{\addspace}}} + {\iflistundef{location} + {} + {\printlist{location}}% + \iftoggle{printpublisher} + {\setunit{\isdot\addcolon\addspace}\printlist{publisher}\setunit{\addcomma\space}}% + {} + }} + +\newbibmacro*{publ+loc+origyear}{% +\printlist{location}% + \iftoggle{printpublisher}% + {\iflistundef{publisher}% + {\setunit*{\space}}% + {\setunit{\isdot\addcolon\space}\printlist{publisher}}}% + {\setunit*{\space}}% +\usebibmacro{origyear}% +}% + +\newbibmacro*{inst+loc}{% + \iflistundef{institution} + {\iflistundef{location} + {} + {\printlist{location}% + \setunit{\addspace}}} + {\iflistundef{location} + {} + {\printlist{location}% + \setunit{\isdot\addcolon\space}}% + \printlist{institution}}} + + +\DeclareBibliographyDriver{review}{% +\usebibmacro{bibindex}% +\usebibmacro{begentry}% +\usebibmacro{author/translator}% +\usebibmacro{labelyear+extrayear}% +\newblock +\usebibmacro{review}% +\newunit\newblock +\usebibmacro{bytranslator}% +\newunit\newblock +\usebibmacro{in:}% +%\newblock% +\usebibmacro{journal+issuetitle}% +\iffieldundef{pages}{\setunit{\addperiod}}{\addcomma\addspace\printfield{pages}}% +\newunit\newblock% +\bibsentence\printfield{note}% +\newunit\newblock% +\usebibmacro{doi+eprint+url}% +%\setunit{.}\newblock +\addspace\usebibmacro{origyear+location+title}% +\newblock +\usebibmacro{addendum+pubstate}% +\newunit\newblock +\usebibmacro{pageref}% +\finentry} + +\DeclareBibliographyDriver{article}{% +\usebibmacro{bibindex}% +\usebibmacro{begentry}% +\usebibmacro{author/translator}% +\usebibmacro{labelyear+extrayear}% +\newblock +\usebibmacro{title}% +\newunit\newblock +\usebibmacro{bytranslator}% +\newunit\newblock +\usebibmacro{in:}% +%\newblock% +\usebibmacro{journal+issuetitle}% +\iffieldundef{pages}{\setunit{\addperiod}}{\addcomma\addspace\printfield{pages}}% +\newunit\newblock% +\bibsentence\printfield{note}% +\newunit\newblock% +\usebibmacro{doi+eprint+url}% +%\setunit{.}\newblock +\addspace\usebibmacro{origyear+location+title}% +\newblock +\usebibmacro{decidetranslatedversion}% + \newblock +\usebibmacro{addendum+pubstate}% +\newunit\newblock +\usebibmacro{pageref}% +\finentry} + +\DeclareBibliographyDriver{incollection}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator}% + \usebibmacro{labelyear+extrayear}% +%\newunit\newblock + \usebibmacro{title}% + \newunit\newblock + \usebibmacro{bytranslator}% + \newunit\newblock + \usebibmacro{in:}% + %\newunit% + \newblock% + \ifnameundef{bookauthor}% + {\ifnameundef{editor} + {} + {\usebibmacro{editor}}} + {\usebibmacro{bybookauthor}} + %\newunit + \newblock% + \usebibmacro{mtitle+vol+btitle+bstitle}% + \ifnamesequal{author}{editor} + {\ifnameundef{bookauthor} + {} + {\usebibmacro{byeditor}}} + {} + \ifnamesequal{author}{bookauthor} + {\ifnameundef{editor} + {} + {\usebibmacro{byeditor}\newunit}% + {} + }% + \newunit\newblock + \iffieldundef{maintitle} + {\printfield{volume}} + {}% + \newunit + \printfield{volumes}% + \newunit\newblock + \usebibmacro{ser+num}% + \newunit\newblock + \printfield{edition}% + \printfield{note}% + \newunit + \usebibmacro{org+publ+loc+year} + \newunit\newblock% + \usebibmacro{chap+pag}% + %\setunit{\par}\newblock + %\usebibmacro{doi+eprint+url}% + \newunit\newblock + \addspace\usebibmacro{decidetranslatedversion}% + \newblock + \usebibmacro{addendum+pubstate}% + \newblock + \usebibmacro{pageref}% + \finentry} + + \DeclareBibliographyDriver{book}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \ifnameundef{author}% + {\ifnameundef{editor}% + {} + {\usebibmacro{editor}\addspace}% + \usebibmacro{editorstrg}\addspace}% +{\usebibmacro{author/translator+others}}% +\usebibmacro{labelyear+extrayear}% +\newblock +\usebibmacro{mtitle+mstitle+vol+part+title+stitle}% + \newunit\newblock + \ifnameundef{author} + {} + {\usebibmacro{byeditor+others}}% + \newunit\newblock + \printfield{note}% + \newunit + \printfield{volumes}% + \newunit\newblock + \usebibmacro{ser+num}% + \newunit\newblock + \printfield{edition}% + \newunit\newblock% +\usebibmacro{publ+loc+origyear}% +\usebibmacro{chap+pag}% +\newblock +\usebibmacro{doi+eprint+url}% +\addspace\usebibmacro{decidetranslatedversion}% +\newblock +\usebibmacro{addendum+pubstate}% + \newunit\newblock +\usebibmacro{pageref}% +\finentry} + + +\DeclareBibliographyDriver{collection}{% +\usebibmacro{bibindex}% +\usebibmacro{begentry}% +%\usebibmacro{mtitle+vol+title+stitle}% +\usebibmacro{mtitle+mstitle+vol+part+title+stitle}% +\newunit\newblock% +\usebibmacro{collby}% + \newunit\newblock + \usebibmacro{bytranslator}% + \newunit\newblock% + \iffieldundef{edition}% + {}% + {\printfield{edition}}% + \iffieldundef{note}% + {}% + {\printfield{note}}% + %\newunit + %\iffieldundef{maintitle} + %{\printfield{volume}} + %{}% + %\newunit + %\printfield{volumes}% + \newunit\newblock + \usebibmacro{ser+num}% + \newunit\newblock + \usebibmacro{publ+loc+year}% + \newblock +\addspace\usebibmacro{decidetranslatedversion}% + \newunit\newblock + \usebibmacro{chap+pag}% + %\setunit{\par}\newblock + \usebibmacro{doi+eprint+url}% + \newblock + \usebibmacro{addendum+pubstate}% + \newunit\newblock + \usebibmacro{pageref}% + \finentry} + +\DeclareBibliographyDriver{online}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/editor/translator}% + \usebibmacro{labelyear+extrayear}% + \newunit\newblock + \usebibmacro{title}% + \newunit\newblock + \usebibmacro{bytranslator}% + \newunit\newblock + \printlist{organization}% + \newunit\newblock + \iffieldundef{month}{}{\usebibmacro{date}}% + \newunit\newblock + \addspace\usebibmacro{decidetranslatedversion}% + \newblock +\printfield{note}% + %\newunit\newblock + \addspace\usebibmacro{doi+eprint+url}% + \newblock + \usebibmacro{addendum+pubstate}% + \newunit\newblock + \usebibmacro{pageref}% + \finentry} + +\DeclareBibliographyDriver{thesis}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator}% + \usebibmacro{labelyear+extrayear}% + \newunit\newblock + \usebibmacro{mtitle+mstitle+vol+part+title+stitle}% + \newunit\newblock + \printfield{type}% + \newunit + \usebibmacro{inst+loc}% + \newunit\newblock + \usebibmacro{chap+pag}% + \newunit\newblock + \printfield{note}% + \newunit\newblock + \usebibmacro{doi+eprint+url}% + \newblock + \usebibmacro{addendum+pubstate}% + \newunit\newblock + \usebibmacro{pageref}% + \usebibmacro{finentry}} + + \DeclareBibliographyDriver{unpublished}{% + \usebibmacro{bibindex}% + \usebibmacro{begentry}% + \usebibmacro{author/translator}% + \usebibmacro{labelyear+extrayear}% + \newunit\newblock + \usebibmacro{mtitle+mstitle+vol+part+title+stitle}% + \newunit\newblock + \printfield{type}% + \iffieldundef{issue} + {}{\newunit\printfield{issue}} + \newunit\newblock + \printfield{howpublished}% + \newunit\newblock + \usebibmacro{inst+loc}% + \newunit\newblock + \usebibmacro{doi+eprint+url} + \newunit\newblock + \printfield{note}% + \newblock + \usebibmacro{addendum+pubstate}% + \newunit\newblock + \usebibmacro{pageref}% + \usebibmacro{finentry}} + + + +\endinput |