summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-11-21 22:15:15 +0000
committerKarl Berry <karl@freefriends.org>2017-11-21 22:15:15 +0000
commit420f99fea3510c7f655a3b3e14020cb4825bd210 (patch)
treeb4dd8a2ce028e48af82df4912f9535a100a7b32c /Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx
parent40a2270630df0c63ac34e92350bbf810d1d8cdf9 (diff)
biblatex-fiwi (21nov17)
git-svn-id: svn://tug.org/texlive/trunk@45876 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.bbx140
1 files changed, 108 insertions, 32 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx b/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx
index f77a4255fae..695603a6882 100644
--- a/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx
+++ b/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx
@@ -1,11 +1,11 @@
-% $Id: fiwi.bbx, v1.6c 2017/01/28 Simon Spiegel
-\ProvidesFile{fiwi.bbx}[v1.6c 2017/01/28 film studies bibliography style]
+% $Id: fiwi.bbx, v1.7 2017/11/21 Simon Spiegel
+\ProvidesFile{fiwi.bbx}[v1.7 2017/11/21 film studies bibliography style]
-\@ifpackagelater{biblatex}{2016/08/01}
+\@ifpackagelater{biblatex}{2017/11/01}
{}
{\PackageError{biblatex}
{Outdated 'biblatex' package}
- {The 'fiwi' style requires biblatex v3.5 or later.\MessageBreak
+ {The 'fiwi' style requires biblatex v3.8 or later.\MessageBreak
You are using: '\csuse{ver@biblatex.sty}'.\MessageBreak
This is a fatal error. I'm aborting now.}%
\endinput}
@@ -65,8 +65,8 @@
% Diverse Schalter
-\providetoggle{bbx:directoreplace}
-\togglefalse{bbx:directoreplace}
+\providetoggle{bbx:directorreplace}
+\togglefalse{bbx:directorreplace}
\providetoggle{bbx:scriptwriter}
\togglefalse{bbx:scriptwriter}
\providetoggle{bbx:actor}
@@ -92,6 +92,8 @@
\togglefalse{origyearwithyear}
\providetoggle{origyearbrackets}
\togglefalse{origyearbrackets}
+\providetoggle{bbx:origyearafter}
+\togglefalse{bbx:origyearafter}
\providetoggle{origyearsuperscript}
\togglefalse{origyearsuperscript}
\providetoggle{partofcitedflag}
@@ -126,6 +128,8 @@
\togglefalse{markmissingpublisher}
\newtoggle{cbx:orgigyearcite}
\newtoggle{cbx:superscriptcite}
+\newtoggle{bbx:parensfilmnote}
+\togglefalse{bbx:parensfilmnote}
% BibliographyOptions
@@ -236,7 +240,7 @@
\DeclareBibliographyOption{partofcited}[true]{\settoggle{partofcitedflag}{#1}}
\DeclareBibliographyOption{germ}[true]{\settoggle{germfassung}{#1}}
\DeclareBibliographyOption{translatedas}[true]{\settoggle{germfassung}{#1}}
-\DeclareBibliographyOption{directoreplace}[true]{\settoggle{bbx:directoreplace}{#1}}
+\DeclareBibliographyOption{directorreplace}[true]{\settoggle{bbx:directorreplace}{#1}}
\DeclareBibliographyOption{noseries}[true]{%
\ifstrequal{#1}{true}
@@ -249,6 +253,7 @@
{\togglefalse{printpublisher}}
{\toggletrue{printpublisher}}}
+\DeclareBibliographyOption{parensfilmnote}[true]{\settoggle{bbx:parensfilmnote}{#1}}%
\DeclareBibliographyOption{filmruntime}[true]{\settoggle{filmruntime}{#1}}%
\DeclareBibliographyOption{citeprefix}[true]{\settoggle{citeprefix}{#1}}
\newbibmacro*{bbx:savehash}{}
@@ -257,14 +262,20 @@
\ifstrequal{#1}{true}
{\renewbibmacro*{bbx:savehash}{\savefield{fullhash}{\bbx@lasthash}}}
{\renewbibmacro*{bbx:savehash}{}}}
+
\DeclareBibliographyOption{yearatbeginning}[true]{%
\ifstrequal{#1}{true}
{\RequireBibliographyStyle{fiwi-yearbeginning}}{}}
- \DeclareBibliographyOption{origyearwithyear}[true]{
+
+\DeclareBibliographyOption{origyearwithyear}[true]{
\ifstrequal{#1}{true}
{\settoggle{origyearwithyear}{#1}}{}
- \ifstrequal{#1}{brackets}{\toggletrue{origyearwithyear}
- \toggletrue{origyearbrackets}{}}}
+ \ifstrequal{#1}{brackets}{\toggletrue{origyearwithyear}
+ \toggletrue{origyearbrackets}}{}
+ \ifstrequal{#1}{after}
+ {\toggletrue{bbx:origyearafter}}{}%
+ }
+
\DeclareBibliographyOption{origyearsuperscript}[true]{\settoggle{origyearsuperscript}{#1}}
\DeclareBibliographyOption{pages}[true]{%
@@ -384,6 +395,7 @@
%\DeclareFieldFormat{labelyear}{\mknumalph{#1}}
\DeclareFieldFormat{film}{\film{#1}}
\DeclareFieldFormat{altfilm}{\film{#1}}
+\DeclareFieldFormat[misc,video,movie]{note}{\iftoggle{bbx:parensfilmnote}{\mkbibparens{#1}}{#1}}
\newbibmacro*{bbx:cite-alternatetitle}{
\iffieldundef{alternatetitlescript}
@@ -396,6 +408,7 @@
\DeclareFieldFormat{title}{\mkbibemph{#1}}
+\DeclareFieldFormat{origtitle}{#1}
\DeclareFieldFormat{noformat}{#1}
\DeclareFieldFormat{citetitle:incollection}{\emph{#1}\isdot}
\DeclareFieldFormat[movie]{citetitle}{\film{#1}}
@@ -446,9 +459,16 @@
}
\DeclareFieldFormat[article,review,periodical]{number}{\bibstring{number}\addnbthinspace{#1}}
-\DeclareFieldFormat{origyear}{\iftoggle{origyearsuperscript}
- {\textsuperscript{1}#1}
+\DeclareFieldFormat{origdate}{%
+\ifboolexpr{%
+ ( test {\iftoggle{bbx:origyearafter}})%
+ and ( test {\iffieldundef{origtitle}})}%
+ {\unspace}{}%
+ {\iffieldundef{shortoriglang}{}{\printfield{shortoriglang}\addspace}#1}}%
+\DeclareFieldFormat{origyear}{\iftoggle{origyearsuperscript}%
+ {\textsuperscript{1}#1}%
{#1}}
+
\DeclareFieldFormat{origyearbook}{%
\iftoggle{origyearbrackets}%
{\addthinspace\bibopenbracket}{\addslash}%
@@ -781,7 +801,7 @@
% Sorting definitions
-\DeclareSortingScheme{title}{
+\DeclareSortingTemplate{title}{
\sort{
\field{presort}
}
@@ -809,6 +829,26 @@
+\DeclareSortingTemplate{archiv}{
+ \sort{
+ \field{presort}
+ }
+ \sort[final]{
+ \field{sortkey}
+ }
+ \sort{
+ \field{author}
+ \field{sorttitle}
+ \field{title}
+ }
+ \sort{
+ \field{sortyear}
+ \field{year}
+ }
+}
+
+
+
% biber sorting
\AtEndPreamble{%
@@ -872,6 +912,7 @@
\NewBibliographyString{writtenby}
\NewBibliographyString{writtendirectedby}
\NewBibliographyString{actors}
+\NewBibliographyString{idea}
%\NewBibliographyString{citepage}
%\NewBibliographyString{citepages}
@@ -879,6 +920,7 @@
\protected\def\bibdateeraprefix{-}}
\DefineBibliographyStrings{german}{%
+idea = {Idee\addcolon\addspace},
notavailable = {\brackettext{K\adddot\addnbthinspace{A}\adddot}},
andothers = {et al\adddot\addspace},
directedby = {Regie\addcolon\addspace},
@@ -893,6 +935,7 @@ url = {},
urlseen = {Zugriff am},
actors = {Darsteller\addcolon\addspace},
in = {In\addcolon},
+redactor = {Red\adddot},
editor = {Hg\adddot},
editors = {Hgg\adddot},
phdthesis ={Unver\"offentlichte Dissertation},
@@ -1104,6 +1147,7 @@ or ( test {\iftoggle{ignoreaddendumcit}} and test {\ifcitation} )
\renewbibmacro*{editor}{%
\usebibmacro{bbx:editor}{editorstrg}}%
+
\renewbibmacro*{editor+others}{%
\usebibmacro{bbx:editor}{editor+othersstrg}}%
\newbibmacro*{bbx:editor}[1]{%
@@ -1192,8 +1236,8 @@ or ( test {\iftoggle{ignoreaddendumcit}} and test {\ifcitation} )
{\textsuperscript{1}\printorigdate}%
{\iffieldundef{origyear}{}%
{\iffieldequalstr{origdateunspecified}{yearincentury}
- {\number\numexpr\thefield{origyear}/100+1\relax
- \adddot\addnbthinspace{Jhdt\adddot}}
+ {\number\numexpr\thefield{origyear}/100+1\relax%
+ \adddot\addnbthinspace{Jhdt\adddot}}%
{\printorigdate}}}%
\iftoggle{origyearbrackets}
{\bibclosebracket}{}}
@@ -1247,7 +1291,9 @@ or ( test {\iftoggle{ignoreaddendumcit}} and test {\ifcitation} )
\iffieldundef{endyear}%
{}{\printfield{endyear}}}}
{\ifboolexpr{ (test{\iffieldundef{origtitle}} and not test {\ifentrytype{bookinbook}})}
- {\setunit{\addspace}\printtext[origyear]{\mkbibparens{\printorigdate}}}
+ {\setunit{\addspace}\printtext[origyear]{\iftoggle{bbx:origyearafter}
+ {\mkbibbrackets{\printorigdate}}
+ {\mkbibparens{\printorigdate}}}}
{}}
}}
@@ -1278,7 +1324,11 @@ or ( test {\iftoggle{ignoreaddendumcit}} and test {\ifcitation} )
\printtext{\bibstring{part}%
\addspace\printfield{part}%
\addcolon\addspace\printfield{parttitle}}}%
- }
+ \setunit{}\iffieldundef{origyear}{}
+ {\ifboolexpr{%
+ ( test {\iftoggle{bbx:origyearafter}}) and
+ ( test {\iffieldundef{origtitle}} )}
+{\addspace\mkbibbrackets{\printorigdate}}{}}}
\newbool{bbx@inset}
@@ -1434,7 +1484,7 @@ and test {\iffieldequalstr{relatedtype}{translatedas}}}
{}{\printfield{endyear}}%
}}}
{}}
-{\setunit{}\newblock\printtext[origtit]{\printfield{origtitle}%
+{\setunit{}\newblock\printtext[origtit]{\printfield[noformat]{origtitle}%
\iftoggle{printaddress}{}{\clearlist{location}}%
\iflistundef{origlocation}{}%
{\adddot\addspace\printlist{origlocation}%
@@ -1518,18 +1568,18 @@ and test {\iffieldequalstr{relatedtype}{translatedas}}}
\newbibmacro*{movie:directors}{%
\ifpunct{\unspace}{}%
\ifnameundef{director}{%
-\iftoggle{bbx:directoreplace}
+\iftoggle{bbx:directorreplace}
{\iflistundef{production}{\bibstring{notavailable}}{\printlist{production}}}
{\iffieldequalstr{entrysubtype}{tv}
{}{\bibstring{notavailable}}}}
-{\printnames[director]{director}%
+{\iffieldundef{creatortype}{}%
+{\bibstring{\thefield{creatortype}}}%
+\printnames[director]{director}%
\iffieldundef{filmmakertype}%
{}%
{\addspace\mkbibbrackets{\printfield{filmmakertype}}}%
}}
-
-
\newbibmacro*{movie:directorsscriptwriters}{%
\ifnamesequal{scriptwriter}{director}
{\bibstring{writtendirectedby}\printnames{director}}
@@ -1989,23 +2039,20 @@ and (test {\iffieldundef{origyear}}%
\newblock%
\usebibmacro{filmtitle}%
\newunit\newblock%
- \usebibmacro{movie:creators}
- \newunit\newblock%
- \iffieldundef{entrysubtype}
+ \usebibmacro{movie:creators}%
+ \iffieldundef{entrysubtype}%
{\usebibmacro{movie:regular}}%
{\iffieldequalstr{entrysubtype}{serial}%
{\usebibmacro{movie:serials}}%
{\iffieldequalstr{entrysubtype}{tv}%
{\usebibmacro{movie:tv}}%
{\usebibmacro{movie:regular}}}}%
- \newunit\newblock%
- \iftoggle{bbx:actor}
- {\usebibmacro{movie:actor}}%
- {}
- \iffieldundef{duration}
+ \iftoggle{bbx:actor}%
+ {\newunit\newblock\usebibmacro{movie:actor}}%
+ {}%
+ \iffieldundef{duration}%
{}
- {%
- \iftoggle{filmruntime}%
+ {\iftoggle{filmruntime}%
{\addcomma\addspace\printfield{duration}}%
{}}
\iffieldundef{note}%
@@ -2114,4 +2161,33 @@ and (test {\iffieldundef{origyear}}%
\usebibmacro{pageref}%
\usebibmacro{finentry}}
+
+ \DeclareBibliographyDriver{archival}{%
+ \usebibmacro{bibindex}%
+ \usebibmacro{begentry}%
+ \usebibmacro{author/translator}%
+ \newunit\newblock
+ \usebibmacro{mtitle+mstitle+vol+part+title+stitle}%
+ \newunit\newblock
+ \ifnameundef{author}{\iffieldundef{year}
+ {\bibstring[\mkbibbrackets]{nodate}}
+ {\iftoggle{dontprintextrayear}%
+ {\printfield{year}}{\printdateextra}}}%
+ {\iffieldundef{day}
+ {}{\usebibmacro{date}}}%
+\newunit\newblock
+\printfield{library}
+\printfield{librarylocation}
+ \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