summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx208
1 files changed, 105 insertions, 103 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx b/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx
index 40b328af249..b63981cd98c 100644
--- a/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx
+++ b/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx
@@ -1,15 +1,18 @@
-% $Id: fiwi.bbx, v1.4 2016/03/09 Simon Spiegel
-
-\ProvidesFile{fiwi.bbx}[v1.4 2016/03/09 film studies bibliography style]
-
-\@ifpackagelater{biblatex}{2016/03/01}
- {}
- {\PackageError{biblatex}
- {Outdated 'biblatex' package}
- {The 'fiwi' style requires biblatex v3.4 or later.\MessageBreak
- You are using: '\csuse{ver@biblatex.sty}'.\MessageBreak
- This is a fatal error. I'm aborting now.}%
- \endinput}
+% $Id: fiwi.bbx, v1.5 2016/05/17 Simon Spiegel
+% Ragged2e
+% Alternatetitle
+% Uniquetitle
+
+\ProvidesFile{fiwi.bbx}[v1.5 2016/05/17 film studies bibliography style]
+
+%\@ifpackagelater{biblatex}{2016/04/01}
+% {}
+% {\PackageError{biblatex}
+% {Outdated 'biblatex' package}
+% {The 'fiwi' style requires biblatex v3.4 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]
@@ -277,7 +280,7 @@
}%
\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=context,labeldate=true,isbn=false,autolang=hyphen}
-\ExecuteBibliographyOptions[misc,movie,video]{uniquename=false,labeltitle=true}
+\ExecuteBibliographyOptions[misc,movie,video]{uniquename=false,labeltitle=true,uniquetitle=true}
\InitializeBibliographyStyle{%
\let\bbx@lasthash\undefined}
@@ -339,6 +342,18 @@
\DeclareFieldFormat{tvmaintitle}{\film{#1}\addcolon\addspace}
%\DeclareFieldFormat{labelyear}{\mknumalph{#1}}
\DeclareFieldFormat{film}{\film{#1}}
+\DeclareFieldFormat{altfilm}{\film{#1}}
+
+\newbibmacro*{bbx:cite-alternatetitle}{
+\iffieldundef{alternatetitlescript}
+ {\addslash\printfield[film]{alternatetitle}}
+ {\addslash%
+ \ifbibmacroundef{altscript:\strfield{alternatetitlescript}-font}
+ {\printfield[film]{alternatetitle}}
+ {\usebibmacro*{altscript:\strfield{alternatetitlescript}-font}%
+ {\thefield{alternatetitle}}}}}
+
+
\DeclareFieldFormat{title}{\mkbibemph{#1}}
\DeclareFieldFormat{noformat}{#1}
\DeclareFieldFormat{citetitle:incollection}{\emph{#1}\isdot}
@@ -446,37 +461,32 @@
% name format definitions
\DeclareNameFormat{sortname}{%
- \nameparts{#1}%
\ifnumequal{\value{listcount}}{1}
{\ifgiveninits
{\usebibmacro{name:family-given}
{\namepartfamily}
{\namepartgiveni}
- {\bibsentence\namepartprefix}
+ {\namepartprefix}
{\namepartsuffix}}
{\usebibmacro{name:family-given}
{\namepartfamily}%
{\namepartgiven}%
- {\bibsentence\namepartprefix}
- {\namepartsuffix}}%
- \ifblank{\namepartgiven\namepartprefix}
- {}
- {\usebibmacro{name:revsdelim}}}
+ {\namepartprefix}
+ {\namepartsuffix}}}%
{\ifgiveninits
{\usebibmacro{name:family-given}
{\namepartfamily}
{\namepartgiveni}
- {\bibsentence\namepartprefix}
+ {\namepartprefix}
{\namepartsuffix}}
{\usebibmacro{name:family-given}
{\namepartfamily}
{\namepartgiven}
- {\bibsentence\namepartprefix}
+ {\namepartprefix}
{\namepartsuffix}}}%
\usebibmacro{name:andothers}}
\DeclareNameFormat{name:commas}{%
- \nameparts{#1}%
\renewcommand*{\multinamedelim}{\addcomma\addspace}%
\renewcommand*{\finalnamedelim}{\addcomma\addspace}%
\ifgiveninits
@@ -498,7 +508,6 @@
\DeclareNameFormat{bytranslator}{%
- \nameparts{#1}%
\ifgiveninits
{\usebibmacro{name:given-family}
{\namepartfamily}
@@ -516,7 +525,6 @@
\usebibmacro{name:andothers}}
\DeclareNameFormat{actor}{%
- \nameparts{#1}%
\ifgiveninits
{\usebibmacro{name:given-family}
{\namepartfamily}
@@ -534,7 +542,6 @@
\usebibmacro{name:andothers}}
\DeclareNameFormat{director}{%
- \nameparts{#1}%
\usebibmacro{director:given-family}
{\namepartfamily}
{\namepartgiven}
@@ -548,60 +555,60 @@
\newbibmacro*{director:given-family}[4]{%
\usebibmacro{name:delim}{#2#3#1}%
\usebibmacro{name:hook}{#2#3#1}%
- \ifempty{#2}{}{\mkbibnamegiven{#2}\isdot\addlowpenspace}%
- \ifempty{#3}{}{%
+ \ifdefvoid{#2}{}{\mkbibnamegiven{#2}\isdot\addlowpenspace}%
+ \ifdefvoid{#3}{}{%
\mkbibnameprefix{#3}\isdot
\ifpunctmark{'}
{}
{\ifuseprefix{\addhighpenspace}{\addlowpenspace}}}%
\mkbibnamefamily{#1}\isdot
- \ifempty{#4}{}{\addlowpenspace\mkbibnameaffix{#4}\isdot}}
+ \ifdefvoid{#4}{}{\addlowpenspace\mkbibnamesuffix{#4}\isdot}}
\renewbibmacro*{name:family-given}[4]{%
\ifuseprefix%
{\usebibmacro{name:delim}{#3#1}%
\usebibmacro{name:hook}{#3#1}%
- \ifempty{#3}{}{%
+ \ifdefvoid{#3}{}{%
\ifcapital
{\mkbibnameprefix{\MakeCapital{#3}}\isdot}%
- {\mkbibnameprefix{#3}\isdot}%
+ {\mkbibnameprefix{#3}\isdot}%
}%\ifpunctmark{'}{}{\addhighpenspace}}%
\mkbibnamefamily{#1}\isdot
- \ifempty{#2}{}{\addcomma\addlowpenspace\mkbibnamegiven{#2}\isdot}
- \ifempty{#4}{}{\addcomma\addlowpenspace\mkbibnameaffix{#4}\isdot}}%
+ \ifdefvoid{#2}{}{\addcomma\addlowpenspace\mkbibnamegiven{#2}\isdot}
+ \ifdefvoid{#4}{}{\addcomma\addlowpenspace\mkbibnamesuffix{#4}\isdot}}%
{\usebibmacro{name:delim}{#1}%
\usebibmacro{name:hook}{#1}%
- \mkbibnamefamily{#1}\isdot
- \ifempty{#4}{}{\addlowpenspace\mkbibnameaffix{#4}\isdot}%
- \ifempty{#2#3}{}{\addcomma}%
- \ifempty{#2}{}{\addlowpenspace\mkbibnamegiven{#2}\isdot}%
- \ifempty{#4}{}{\addlowpenspace\mkbibnameaffix{#4}\isdot}%
- \ifempty{#3}{}{\addlowpenspace\mkbibnameprefix{#3}\isdot}}}
+ \mkbibnamefamily{#1}\addspace\isdot
+ \ifdefvoid{#4}{}{\addlowpenspace\mkbibnamesuffix{#4}\isdot}%
+ \addcomma\ifdefvoid{#3}{}{\addcomma}%
+ \ifdefvoid{#2}{}{\addlowpenspace\mkbibnamegiven{#2}\isdot}%
+ \ifdefvoid{#4}{}{\addlowpenspace\mkbibnamesuffix{#4}\isdot}%
+ \addspace\ifdefvoid{#3}{}{\addlowpenspace\mkbibnameprefix{#3}\isdot}}}
\renewbibmacro*{name:given-family}[4]{%
\usebibmacro{name:delimfirst}{#2#3#1}%
\usebibmacro{name:hook}{#2#3#1}%
- \ifempty{#2}{}{\mkbibnamegiven{#2}\isdot\addlowpenspace}%
- \ifempty{#3}{}{%
+ \ifdefvoid{#2}{}{\mkbibnamegiven{#2}\isdot\addlowpenspace}%
+ \ifdefvoid{#3}{}{%
\mkbibnameprefix{#3}\isdot
\ifpunctmark{'}
{}
{\ifuseprefix{\addhighpenspace}{\addlowpenspace}}}%
\mkbibnamefamily{#1}\isdot
- \ifempty{#4}{}{\addlowpenspace\mkbibnameaffix{#4}\isdot}}
+ \ifdefvoid{#4}{}{\addlowpenspace\mkbibnamesuffix{#4}\isdot}}
\newbibmacro*{actor:given-family}[4]{%
\usebibmacro{name:delim}{#2#3#1}%
\usebibmacro{name:hook}{#2#3#1}%
- \ifempty{#2}{}{\mkbibnamegiven{#2}\isdot\addlowpenspace}%
- \ifempty{#3}{}{%
+ \ifdefvoid{#2}{}{\mkbibnamegiven{#2}\isdot\addlowpenspace}%
+ \ifdefvoid{#3}{}{%
\mkbibnameprefix{#3}\isdot
\ifpunctmark{'}
{}
{\ifuseprefix{\addhighpenspace}{\addlowpenspace}}}%
\mkbibnamefamily{#1}\isdot
- \ifempty{#4}{}{\addlowpenspace\mkbibnameaffix{#4}\isdot}}
+ \ifdefvoid{#4}{}{\addlowpenspace\mkbibnamesuffix{#4}\isdot}}
\newbibmacro*{name:delimfirst}[1]{%
\ifthenelse{\value{listcount}>\value{liststart}}
@@ -625,10 +632,8 @@
\renewbibmacro*{url+urldate}{%
\printfield{url}%
- \iffieldundef{urlyear}
- {}
- {\setunit*{\addspace}%
- \printtext[]{\printurldate}}}
+ \setunit*{\addspace}%
+ \printtext[]{\printurldate}}
% Sorting definitions
@@ -665,25 +670,25 @@
\AtEndPreamble{%
\iftoggle{ignorearticle}
{\DeclareNosort{
-\nosort{type_title}{\regexp{\A.*\/}}
-\nosort{type_title}{\regexp{\AThe\s+}}
-\nosort{type_title}{\regexp{\ADie\s+}}
-\nosort{type_title}{\regexp{\ADer\s+}}
-\nosort{type_title}{\regexp{\ADas\s+}}
-\nosort{type_title}{\regexp{\AEin\s+}}
-\nosort{type_title}{\regexp{\AEine\s+}}
-\nosort{type_title}{\regexp{\AA\s+}}
-\nosort{type_title}{\regexp{\AUne\s+}}
-\nosort{type_title}{\regexp{\AUn\s+}}
-\nosort{type_title}{\regexp{\ALe\s+}}
-\nosort{type_title}{\regexp{\ALa\s+}}
-\nosort{type_title}{\regexp{\AGli\s+}}
-\nosort{type_title}{\regexp{\AIl\s+}}
-\nosort{type_title}{\regexp{\AEl\s+}}
-\nosort{type_title}{\regexp{\ALes\s+}}
-\nosort{type_title}{\regexp{\ALos\s+}}
-\nosort{type_title}{\regexp{\AL'\s+}}
-\nosort{type_title}{\regexp{\AO\s+}}
+\nosort{settitles}{\regexp{\A.*\/}}
+\nosort{settitles}{\regexp{\AThe\s+}}
+\nosort{settitles}{\regexp{\ADie\s+}}
+\nosort{settitles}{\regexp{\ADer\s+}}
+\nosort{settitles}{\regexp{\ADas\s+}}
+\nosort{settitles}{\regexp{\AEin\s+}}
+\nosort{settitles}{\regexp{\AEine\s+}}
+\nosort{settitles}{\regexp{\AA\s+}}
+\nosort{settitles}{\regexp{\AUne\s+}}
+\nosort{settitles}{\regexp{\AUn\s+}}
+\nosort{settitles}{\regexp{\ALe\s+}}
+\nosort{settitles}{\regexp{\ALa\s+}}
+\nosort{settitles}{\regexp{\AGli\s+}}
+\nosort{settitles}{\regexp{\AIl\s+}}
+\nosort{settitles}{\regexp{\AEl\s+}}
+\nosort{settitles}{\regexp{\ALes\s+}}
+\nosort{settitles}{\regexp{\ALos\s+}}
+\nosort{settitles}{\regexp{\AL'\s+}}
+\nosort{settitles}{\regexp{\AO\s+}}
}
}
{}
@@ -779,7 +784,16 @@ january = {Januar},
\renewbibmacro*{finentry}{\iftoggle{intransdecision}%
{\unspace}{\addperiod}} % unklar, warum \finentry nicht geht
-\appto{\bibsetup}{\RaggedRight}
+
+\AtBeginDocument{%
+ \IfFileExists{ragged2e.sty}{%
+ \RequirePackage{ragged2e}%
+ \appto{\bibsetup}{\RaggedRight}
+ }{%
+ \appto{\bibsetup}{\raggedright}
+ }%
+}
+
%\appto{\bibsetup}{\setlength{\emergencystretch}{8em}}
\newcommand*{\mkibid}[1]{#1}
@@ -1089,8 +1103,7 @@ or test {\ifentrytype{set}}}
{}{\printfield{endyear}}}}
{\ifboolexpr{ (test{\iffieldundef{origtitle}} and not test {\ifentrytype{bookinbook}})}
{\setunit{\addspace}\printtext[origyearart]{\printfield{origyear}%
- \iffieldundef{origendyear}%
- {}{\printfield{origendyear}}}}
+ \printfield{origendyear}}}
{}}
}}
@@ -1321,34 +1334,32 @@ and test {\iffieldequalstr{relatedtype}{translatedas}}}
\newbibmacro*{filmtitle}
{\iffieldundef{maintitle}
{\printtext{\printfield[film]{title}}}
-{\printfield[film]{maintitle}\newunit}%
-\iffieldundef{subtitle}%
-{}%
-{\setunit{}%
-\printtext{\addspace\printfield{subtitle}}}%
-\iffieldundef{volume}%
-{}%
-{\printfield[season]{volume}}%
-\iffieldundef{number}%
-{}%
-{\addcomma\addspace\printfield[episode]{number}}%
+{\printtext{\printfield[film]{maintitle}\newunit}}%
+\iffieldundef{alternatetitle}
+{}
+{\usebibmacro{bbx:cite-alternatetitle}}
+\setunit{}%
+\printtext{\addspace\printfield{subtitle}}%
+\iffieldundef{volume}
+{}
+{\printtext{\addperiod\addspace\printfield[season]{volume}}}%
+\iffieldundef{number}
+{}
+{\printtext{\addcomma\addspace\printfield[episode]{number}}}%
\iffieldundef{maintitle}%
{}%
{\addcolon\addspace\printfield[film]{title}}%
\ifpunctmark{!}{\unspace .\newunit}{\adddot}}%
+%\newbibmacro*{bbx:cite-alternatetitle}
+%{\addslash\printfield[altfilm]{alternatetitle}}
+
\newbibmacro*{filmloc}
-{\iflistundef{location}%
-{}
{\printlist{location}}%
-}
+
\newbibmacro*{filmorg}
-{
-\iflistundef{organization}
-{}
{\printlist{organization}}
-}
\newbibmacro*{movie:creators}{%
\iftoggle{bbx:scriptwriter}
@@ -1418,9 +1429,7 @@ and test {\iffieldequalstr{relatedtype}{translatedas}}}
}
{\addcolon}%
{\addcomma}}}%
- \iffieldundef{number}
- {}
- {\printtext{\addspace\printfield{number}}\addspace}%
+ \printtext{\addspace\printfield{number}}\addspace%
\printfield{eid}%
\usebibmacro{title+issuetitle}
}
@@ -1476,18 +1485,13 @@ and (test {\iffieldundef{origyear}}%
\newbibmacro*{org+publ+loc+year}{%
\iftoggle{printaddress}{}{\clearlist{location}}
-\iffieldundef{organization}%
-{}%
-{\printfield{organization}%
-\newunit}%
+\printfield{organization}\newunit%
\iflistundef{publisher}%
{\iflistundef{location}%
{}%
{\printlist{location}%
\setunit{\addspace}}}%
-{\iflistundef{location}%
-{}%
-{\printlist{location}}%
+{\printlist{location}%
\iftoggle{printpublisher}
{\setunit{\isdot\addcolon\space}%
\printlist{publisher}\setunit{\addcomma\space}}%
@@ -1515,9 +1519,7 @@ and (test {\iffieldundef{origyear}}%
{}%
{\addcomma\addspace\printfield{pages}}}%
{\printfield{chapter}%
- \iffieldundef{pages}%
- {}%
- {\newunit\printfield{pages}}}%
+ \newunit\printfield{pages}}%
}
\newbibmacro*{ser+num}{%
@@ -1909,7 +1911,7 @@ and (test {\iffieldundef{origyear}}%
\usebibmacro{bibindex}%
\usebibmacro{begentry}%
%\usebibmacro{editor}%
- %\setunit{\labelnamepunct}\newblock
+ %\setunit{\nametitledelim}\newblock
\usebibmacro{journal+issuetitle}%
\newunit
\printlist{language}%