diff options
author | Karl Berry <karl@freefriends.org> | 2017-01-21 22:41:15 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-01-21 22:41:15 +0000 |
commit | f6199c2be52c4dac01bab81bd9c98caa90eaf358 (patch) | |
tree | 23c4d709ea42b474a71129c5eddf59ff2364e0c0 /Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx | |
parent | f0b11e7ba3579631e5bfee3d2182afb01be4e0a0 (diff) |
biblatex-fiwi (21jan17)
git-svn-id: svn://tug.org/texlive/trunk@43008 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 | 110 |
1 files changed, 72 insertions, 38 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx b/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx index 4f6a3f3fa93..963d841e9e5 100644 --- a/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx @@ -1,18 +1,14 @@ -% $Id: fiwi.bbx, v1.6 2016/09/09 Simon Spiegel -% Ragged2e -% Alternatetitle -% Uniquetitle - -\ProvidesFile{fiwi.bbx}[v1.6 2016/09/09 film studies bibliography style] - -%\@ifpackagelater{biblatex}{2016/08/01} -% {} -% {\PackageError{biblatex} -% {Outdated 'biblatex' package} -% {The 'fiwi' style requires biblatex v3.5 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.6a 2017/01/20 Simon Spiegel +\ProvidesFile{fiwi.bbx}[v1.6a 2017/01/20 film studies bibliography style] + +\@ifpackagelater{biblatex}{2016/08/01} + {} + {\PackageError{biblatex} + {Outdated 'biblatex' package} + {The 'fiwi' style requires biblatex v3.5 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] @@ -69,6 +65,8 @@ % Diverse Schalter +\providetoggle{bbx:directoreplace} +\togglefalse{bbx:directoreplace} \providetoggle{bbx:scriptwriter} \togglefalse{bbx:scriptwriter} \providetoggle{bbx:actor} @@ -129,7 +127,6 @@ \newtoggle{cbx:orgigyearcite} \newtoggle{cbx:superscriptcite} - % BibliographyOptions \DeclareBibliographyOption{ignoreaddendum}[true]{% @@ -233,13 +230,13 @@ } \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}} \DeclareBibliographyOption{translatedas}[true]{\settoggle{germfassung}{#1}} +\DeclareBibliographyOption{directoreplace}[true]{\settoggle{bbx:directoreplace}{#1}} \DeclareBibliographyOption{noseries}[true]{% \ifstrequal{#1}{true} @@ -523,25 +520,29 @@ {\namepartgiveni} {\namepartprefix} {\namepartsuffix} - \ifpseudo% + \iftoggle{index:inindex} + {} + {\ifpseudo% {\usebibmacro{name:true:family-given} {\nameparttruefamily} {\nameparttruegiveni} {\nameparttrueprefix} {\nameparttruesuffix}} {} - } + }} {\usebibmacro{name:family-given} {\namepartfamily} {\namepartgiven}% {\namepartprefix}% {\namepartsuffix}% - \ifpseudo% + \iftoggle{index:inindex} + {} + {\ifpseudo% {\usebibmacro{name:true:family-given}% {\nameparttruefamily}% {\nameparttruegiven}% {\nameparttrueprefix}% - {\nameparttruesuffix}}% + {\nameparttruesuffix}}}% {}}% \usebibmacro{name:andothers}} @@ -554,14 +555,16 @@ {\namepartgiveni} {\namepartprefix} {\namepartsuffix} - \ifpseudo% + \iftoggle{index:inindex} + {} + {\ifpseudo% {\addthinspace\bibopenbracket{=}\usebibmacro{actor:given-family} {\nameparttruefamily} {\nameparttruegiveni} {\nameparttrueprefix} {\nameparttruesuffix} \bibclosebracket} - {}} + {}}} {\usebibmacro{actor:given-family} {\namepartfamily} {\namepartgiven} @@ -570,13 +573,15 @@ \ifblank{\namepartgiven\namepartprefix} {} {\usebibmacro{name:revsdelim} - \ifpseudo% + \iftoggle{index:inindex} + {} + {\ifpseudo% {\addthinspace\bibopenbracket{=}\usebibmacro{actor:given-family} {\nameparttruefamily} {\nameparttruegiven} {\nameparttrueprefix} {\nameparttruesuffix}\bibclosebracket} - {}} + {}}} \renewcommand*{\multinamedelim}{\addslash}% \renewcommand*{\finalnamedelim}{\addslash}} @@ -587,13 +592,15 @@ {\namepartgiveni} {\namepartprefix} {\namepartsuffix} - \ifpseudo% + \iftoggle{index:inindex} + {} + {\ifpseudo% {\addthinspace\bibopenbracket{=}\usebibmacro{name:given-family} {\nameparttruefamily} {\nameparttruegiveni} {\nameparttrueprefix} {\nameparttruesuffix}\bibclosebracket} - {}} + {}}} {\usebibmacro{name:given-family} {\namepartfamily} {\namepartgiven} @@ -602,12 +609,14 @@ \ifblank{\namepartgiven\namepartprefix} {} {\usebibmacro{name:revsdelim}% - \ifpseudo% + \iftoggle{index:inindex} + {} + {\ifpseudo% {\addthinspace\bibopenbracket{=}\usebibmacro{name:given-family} {\nameparttruefamily} {\nameparttruegiven} {\nameparttrueprefix} - {\nameparttruesuffix}\bibclosebracket} + {\nameparttruesuffix}\bibclosebracket}} {}}% \usebibmacro{name:andothers}} @@ -662,6 +671,15 @@ \mkbibnamefamily{#1}\isdot \ifdefvoid{#4}{}{\addlowpenspace\mkbibnamesuffix{#4}\isdot}} +\renewbibmacro*{pageref}{% + \iflistundef{pageref} + {} + {\printtext[]{% + \ifnumgreater{\value{pageref}}{1} + {} + {}% + \printlist[pageref][-\value{listtotal}]{pageref}}}} + \renewbibmacro*{name:family-given}[4]{% \ifuseprefix% {\usebibmacro{name:delim}{#3#1}% @@ -839,8 +857,7 @@ } % Bibliography strings - - +\NewBibliographyString{notavailable} \NewBibliographyString{fromjapanese} \NewBibliographyString{fromhebrew} \NewBibliographyString{minutes} @@ -862,6 +879,7 @@ \protected\def\bibdateeraprefix{-}} \DefineBibliographyStrings{german}{% +notavailable = {\brackettext{K\adddot\addnbthinspace{A}\adddot}}, andothers = {et al\adddot\addspace}, directedby = {Regie\addcolon\addspace}, writtenby = {Buch\addcolon\addspace}, @@ -907,7 +925,11 @@ january = {Januar}, % commands -\renewbibmacro*{finentry}{\iftoggle{intransdecision}% +\renewbibmacro*{finentry}{% +\ifboolexpr{% +( not test {\ifbibliography}) or +( test {\iftoggle{intransdecision}} ) +}% {\unspace}{\addperiod}} % unklar, warum \finentry nicht geht @@ -923,7 +945,7 @@ january = {Januar}, %\appto{\bibsetup}{\setlength{\emergencystretch}{8em}} \newcommand*{\mkibid}[1]{#1} -\newrobustcmd{\film}{\textsc} +\newrobustcmd*{\film}[1]{\textsc{#1}} \renewbibmacro*{byeditor+othersstrg}{% \ifboolexpr{% @@ -1489,13 +1511,24 @@ and test {\iffieldequalstr{relatedtype}{translatedas}}} \newbibmacro*{movie:creators}{% \iftoggle{bbx:scriptwriter} - {\usebibmacro{movie:directorsscriptwriters}} - {\usebibmacro{movie:directors}} + {\usebibmacro{movie:directorsscriptwriters}}% + {\usebibmacro{movie:directors}}% } \newbibmacro*{movie:directors}{% - \ifpunct{\unspace}{}\printnames{director} -} + \ifpunct{\unspace}{}% + \ifnameundef{director}{% +\iftoggle{bbx:directoreplace} +{\iflistundef{production}{\bibstring{notavailable}}{\printlist{production}}} +{\iffieldequalstr{entrysubtype}{tv} +{}{\bibstring{notavailable}}}} +{\printnames[director]{director}% +\iffieldundef{filmmakertype}% +{}% +{\addspace\mkbibbrackets{\printfield{filmmakertype}}}% +}} + + \newbibmacro*{movie:directorsscriptwriters}{% \ifnamesequal{scriptwriter}{director} @@ -1956,7 +1989,8 @@ and (test {\iffieldundef{origyear}}% \newblock% \usebibmacro{filmtitle}% \newunit\newblock% - \usebibmacro{movie:creators}% + \usebibmacro{movie:creators} + \newunit\newblock% \iffieldundef{entrysubtype} {\usebibmacro{movie:regular}}% {\iffieldequalstr{entrysubtype}{serial}% |