diff options
author | Karl Berry <karl@freefriends.org> | 2014-01-10 23:24:58 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-01-10 23:24:58 +0000 |
commit | cd7239cea30d70ce5ed8cfde97f807aab13e71ff (patch) | |
tree | dae84d363281c939330bdbfe5dad43bacf26b889 /Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx | |
parent | 5a142b6af0acc78a549773d33c2e09fb0f6abd64 (diff) |
biblatex-fiwi (10jan14)
git-svn-id: svn://tug.org/texlive/trunk@32629 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 | 131 |
1 files changed, 91 insertions, 40 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx b/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.bbx index 5930e1ff662..b27b970db44 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.2d 2013/05/13 Simon Spiegel +% $Id: fiwi.bbx, v1.2e 2014/01/10 Simon Spiegel -\ProvidesFile{fiwi.bbx}[v1.2d 2013/05/13 film studies bibliography style] +\ProvidesFile{fiwi.bbx}[v1.2e 2014/01/10 film studies bibliography style] \@ifpackagelater{biblatex}{2013/05/01} {} @@ -62,6 +62,8 @@ \providetoggle{bbx:scriptwriter} \togglefalse{bbx:scriptwriter} +\providetoggle{bbx:volumeinparens} +\togglefalse{bbx:volumeinparens} \providetoggle{filmruntime} \providetoggle{citeprefix} \toggletrue{citeprefix} @@ -201,6 +203,7 @@ {} }% +\DeclareBibliographyOption{parensvolume}[true]{\settoggle{bbx:volumeinparens}{#1}} \DeclareBibliographyOption{script}[true]{\settoggle{bbx:scriptwriter}{#1}} \DeclareBibliographyOption{ignorearticle}[true]{\settoggle{ignorearticle}{#1}} \DeclareBibliographyOption{partofcited}[true]{\settoggle{partofcitedflag}{#1}} @@ -247,7 +250,7 @@ {} }% -\ExecuteBibliographyOptions{indexing=cite,maxnames=3,minnames=1,maxitems=9,useprefix=true,sorting=nyt,date=long,urldate=long,hyperref=auto,pagetracker=true,ibidtracker=context,citetracker=true,labeldate=true,isbn=false,babel=hyphen,} +\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} \InitializeBibliographyStyle{% @@ -350,7 +353,10 @@ {\mbox{\addspace}} {}} \DeclareFieldFormat{ser+num}{\mkbibparens{#1}} -\DeclareFieldFormat[article,review]{volume}{\bibstring{jourvol}\addnbthinspace{#1}} +\DeclareFieldFormat[article,review]{volume}{% +\iftoggle{bbx:volumeinparens}{\unspace\bibstring{jourvol}\addnbthinspace{#1}} +{\bibstring{jourvol}\addnbthinspace{#1}} +} \DeclareFieldFormat[article,review,periodical]{number}{\bibstring{number}\addnbthinspace{#1}} \DeclareFieldFormat{origyearbook}{\iftoggle{origyearsuperscript} {\addspace\mkbibparens{#1}} @@ -620,7 +626,7 @@ fromjapanese = {aus dem Japanischen}, frompolish = {aus dem Polnischen}, bycompiler = {zusammengestellt von}, bypublisher = {bei}, -ibidem = {ebd\adddot\addspace}, +ibidem = {ebd\adddot}, url = {}, urlseen = {Zugriff am}, in = {In\addcolon}, @@ -639,6 +645,7 @@ reviewof = {Rezension von}, prepublished = {Online-Vorver\"offentlichung}, page = {S\adddot\addnbspace}, pages = {S\adddot\addnbspace}, +nodate = {undatiert}, january = {Januar}, february = {Februar}, march = {M\"arz}, @@ -661,7 +668,7 @@ january = {Januar}, \renewcommand{\bibsetup}{\raggedright} \newcommand*{\mkibid}[1]{#1} -\DeclareRobustCommand{\film}{\textsc} +\newrobustcmd{\film}{\textsc} \renewbibmacro*{byeditor+othersstrg}{% \ifboolexpr{% @@ -785,7 +792,7 @@ or ( test {\iftoggle{ignoreintroductioncit}} and test {\ifcitation} ) {\item} \renewbibmacro*{addendum+pubstate}{% -\addspace% +\unspace% \ifboolexpr{% ( test {\iftoggle{ignoreaddendum}} and test {\ifbibliography}) or ( test {\iftoggle{ignoreaddendumcit}} and test {\ifcitation} ) @@ -875,17 +882,15 @@ or ( test {\iftoggle{ignoreaddendumcit}} and test {\ifcitation} ) {\printfield{label}}} \renewbibmacro*{date}{% - \iffieldundef{year}% - {\bibstring[\mkbibbrackets]{undated}\addcolon\addspace}% - {\iffieldundef{month} + \iffieldundef{month} {\printfield{labelyear}} {\iffieldundef{day} {\printfield{month}% \setunit{\addspace}% \printfield{labelyear}} - {\printdate}}}} + {\printdate}}} -\newbibmacro*{labelyear+extrayear}{% +\newbibmacro*{date+extrayear}{% \ifboolexpr{test {\iftoggle{usera}} or test {\ifentrytype{set}}} {\usebibmacro{labelyear}} @@ -893,7 +898,8 @@ or test {\ifentrytype{set}}} {\bibstring[\mkbibbrackets]{undated}\addcolon\addspace} {\printtext{% \iffieldundef{endyear}% - {\printfield{year}% + {\iftoggle{dontprintextrayear}% + {\printfield{year}}{\printdateextralabel}%% \ifboolexpr{( test {\iftoggle{origyearwithyear}} ( and not test {\iffieldundef{origyear}} @@ -903,21 +909,19 @@ or test {\ifentrytype{set}}} {\addthinspace\mkbibbrackets{% \iffieldequalstr{relatedtype}{origpubin} {\entrydata*{\thefield{related}}{% - \printfield[origyear]{year} + \printfield[origyear]{year}% }} {\printfield{origyear}} }} {\addslash% \iffieldequalstr{relatedtype}{origpubin} - {\entrydata*{\thefield{related}}{% - \printfield[origyear]{year} - }} - {\printfield{origyear}} - }}{}}% - {\printfield{year}\iffieldsequal{year}{endyear}% + {\entrydata*{\thefield{related}}{% + \printfield[origyear]{year}}} + {\printfield{origyear}}}} + {}}% + {\printfield{year}% + \iffieldsequal{year}{endyear}% {}{\printfield{endyear}}}% - \iftoggle{dontprintextrayear}% - {}{\printfield{extrayear}}% }}}} \newbibmacro*{labelyear}{% @@ -1114,7 +1118,7 @@ or test {\ifentrytype{set}}} \printdate}} \newbibmacro*{related:translatedas}[1] -{% +{\toggletrue{dontprintextrayear}% \iftoggle{dontprintorig} {} {\ifboolexpr{% @@ -1287,29 +1291,31 @@ and test {\iffieldequalstr{relatedtype}{translatedas}}} \setunit{\addspace}}% \iffieldundef{volume} {} - {\addcomma\addspace\printfield{volume}{\addcomma}}% + {\iftoggle{bbx:volumeinparens} + {\mkbibparens{\printfield{volume}\unspace}} + {\addcomma\addspace\printfield{volume}% + \ifboolexpr{% +( test {\iffieldundef{number}} and not test {\iffieldundef{issuetile}}) +} + {\addcolon}% + {\addcomma}}}% \iffieldundef{number} {} {\printtext{\addspace\printfield{number}}\addspace}% \printfield{eid}% \usebibmacro{title+issuetitle} } + + \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}}} + {\usebibmacro{date+extrayear}} {\printfield{issue}% \setunit{\addcomma\addspace}% - \usebibmacro{labelyear+extrayear}}}} + \usebibmacro{date+extrayear}}}} \newbibmacro*{publ+loc+year}{% \iftoggle{printaddress}{}{\clearlist{location}} @@ -1322,7 +1328,7 @@ and test {\iffieldequalstr{relatedtype}{translatedas}}} {\setunit{\isdot\addcolon\addspace}} \printlist{publisher}\setunit{\addcomma\space}}}% {\setunit*{\space}}% -\usebibmacro{labelyear+extrayear}% +\usebibmacro{date+extrayear}% \usebibmacro{origyear}% }% @@ -1365,7 +1371,7 @@ and (test {\iffieldundef{origyear}}% {\setunit{\isdot\addcolon\space}% \printlist{publisher}\setunit{\addcomma\space}}% {\addspace}}% - \usebibmacro{labelyear+extrayear}} + \usebibmacro{date+extrayear}} \newbibmacro*{inst+loc+year}{% \iftoggle{printaddress}{}{\clearlist{location}} @@ -1380,7 +1386,7 @@ and (test {\iffieldundef{origyear}}% \setunit{\isdot\addcolon\space}}% \printlist{institution}% \setunit{\addspace}}% - \usebibmacro{labelyear+extrayear}} + \usebibmacro{date+extrayear}} \newbibmacro*{chap+pag}{% \iffieldundef{chapter} @@ -1440,8 +1446,53 @@ and (test {\iffieldundef{origyear}}% \newunit\newblock \usebibmacro{in:}% %\newblock% - \usebibmacro{journal+issuetitle}% - \printfield{pages} + \ifboolexpr { + not test {\iflistundef{location}} + and not test {\ifnameundef{editor}} + } + {\iftoggle{partofcited}% + {\iffieldundef{xref}% + {\mancite\textcite{\thefield{crossref}}}% + {\mancite\textcite{\thefield{xref}}} + \usebibmacro{chap+pag}}% + {\newunit\newblock% + \ifnameundef{bookauthor}% + {\ifnameundef{editor} + {} + {\usebibmacro{incollectioneditor}}} + {\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} + \newblock% + \usebibmacro{chap+pag}% + } + {\usebibmacro{journal+issuetitle}% + \printfield{pages}} \newblock \bibsentence\printfield{note}% %\setunit{.}\newblock @@ -1551,7 +1602,7 @@ and (test {\iffieldundef{origyear}}% %\usebibmacro{doi+eprint+url}% %\newunit\newblock \addspace\usebibmacro{related}% - \newunit\newblock + \newblock \iftoggle{bbx:isbn} {\printfield{isbn}} {}% @@ -1594,7 +1645,7 @@ and (test {\iffieldundef{origyear}}% {} {\addperiod\addspace\usebibmacro{doi+eprint+url}}% \addspace\usebibmacro{related}% - \newunit\newblock + \newblock \iftoggle{bbx:isbn} {\printfield{isbn}} {}% |