diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.cbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.cbx | 35 |
1 files changed, 27 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.cbx b/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.cbx index 3c93701d868..fe075876ec6 100644 --- a/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.cbx +++ b/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi.cbx @@ -1,7 +1,7 @@ -% $Id: fiwi.cbx, v1.6c 2017/01/28 Simon Spiegel +% $Id: fiwi.cbx, v1.7 2017/11/21 Simon Spiegel \ProvidesFile{fiwi.cbx} -[\abx@cbxid $Id: fiwi.cbx, v1.6c 2017/01/28 spiegel $] +[\abx@cbxid $Id: fiwi.cbx, v1.7 2017/11/21 spiegel $] \ExecuteBibliographyOptions{autocite=inline,uniquename=allfull,uniquelist=true,ibidtracker=constrict} @@ -99,6 +99,7 @@ \DeclareFieldFormat{citeyear}{\ifnumcomp{\value{parenlevel}}{>}{0}{#1}{\mkbibparens{#1}}} \DeclareFieldFormat{citetitle:incollection}{\emph{#1}\isdot} \DeclareFieldFormat[misc,video,movie]{citetitle}{\film{#1}} +\DeclareFieldFormat[thesis,phdthesis]{citetitle}{\emph{#1}\isdot} \DeclareIndexFieldFormat[movie,misc,video]{indextitle}{% \iftoggle{cbx:filmindex} {\iftoggle{cbx:filmindex-complete} @@ -268,7 +269,9 @@ \index{\emph{\thefield{indexsorttitle}}@\emph{\thefield{indextitle}}% |see{\AtNextCite{\defcounter{maxnames}{1}\defcounter{minnames}{1}% \renewbibmacro*{name:andothers}{}}% - \toggletrue{index:inindex}\citename{\thefield{entrykey}}[]{author}% + \toggletrue{index:inindex}\citename{\thefield{entrykey}}[]\ifnameundef{author} + {{editor}} + {{author}}% \togglefalse{index:inindex}}}} {\indexnames[name:title]{labelname}}} {}} @@ -449,7 +452,7 @@ and test {\iftoggle{citecompletefilm}}} \printtext[bibhyperref]{\printfield[film]{title}}% \iffieldundef{alternatetitle} {}{\usebibmacro{bbx:cite-alternatetitle}} - \addspace\usebibmacro{cbx:filmdate}% + %\addspace\usebibmacro{cbx:filmdate}% {\addspace\bibopenparen\printfield[plain]{subtitle}% \setunit*{\addcomma\addspace}% \usebibmacro{movie:directors}% @@ -467,6 +470,21 @@ and test {\iftoggle{citecompletefilm}}} \addspace\usebibmacro{cbx:filmdate}}} \newbibmacro*{cite}{% +\ifentrytype{archival} +{\usebibmacro{cite:archival}} +{\usebibmacro{cite:normal}}} + +\newbibmacro*{cite:archival}{% +\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}% + {\usebibmacro{cite:ibid}}% + {\ifnameundef{author}% + {\printfield{title}%\addcomma\addspace\usebibmacro{cite:labelyear+extrayear} + }% + {\printnames{labelname}\setunit{\nameyeardelim}% + \usebibmacro{cite:labelyear+extrayear}}% +}} + +\newbibmacro*{cite:normal}{% \iftoggle{cbx:compactcite}% {\iffieldundef{shorthand}% {\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}% @@ -475,7 +493,7 @@ and test {\iftoggle{citecompletefilm}}} {\setunit{\compcitedelim}}% {\ifnameundef{labelname}% {}% - {\printnames{labelname}% + {\printtext[bibhyperref]{\printnames{labelname}}% \setunit{\nameyeardelim}}% \savefield{namehash}{\cbx@lasthash}}% \usebibmacro{cite:labelyear+extrayear}}}% @@ -580,12 +598,13 @@ and test {\iftoggle{citecompletefilm}}} \iffieldundef{labelyear} {} {\printtext[bibhyperref]{% - \ifdefstring\blx@dateformat@labeldate{edtf} + \iffieldundef{year}{\bibstring[\mkbibbrackets]{nodate}} + {\ifdefstring\blx@dateformat@labeldate{edtf} {} {\datecircaprint}% \dateeraprintpre{labelyear}% \mkyearzeros{\thefield{labelyear}}% - \printfield{extrayear}% + \printfield{extradate}% \iffieldsequal{labeldateera}{labelenddateera}{} {\dateeraprint{labelyear}}% \dateuncertainprint% @@ -608,7 +627,7 @@ and test {\iftoggle{citecompletefilm}}} {}% \dateeraprint{labelendyear}}}% \iftoggle{cbx:orgigyearcite}% - {\usebibmacro{cite:origyerar}}{}}}} + {\usebibmacro{cite:origyerar}}{}}}}} \newbibmacro*{cite:origyerar}{% \iffieldundef{origyear} |