diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi-yearbeginning.bbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi-yearbeginning.bbx | 76 |
1 files changed, 53 insertions, 23 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi-yearbeginning.bbx b/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi-yearbeginning.bbx index 0288ca603a5..727584961a8 100644 --- a/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi-yearbeginning.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-fiwi/fiwi-yearbeginning.bbx @@ -1,13 +1,14 @@ -% $Id: fiwi-yearbeginning.bbx, v 1.1c 2011/12/03 Simon Spiegel +% $Id: fiwi-yearbeginning.bbx, v 1.1e 2011/12/21 Simon Spiegel % Stil mit Jahrestahl nach Autor -\ProvidesFile{fiwi-yearbeginning.bbx}[v 1.1c 2011/12/03 film studies bibliography style Author (Year)] +\ProvidesFile{fiwi-yearbeginning.bbx}[v 1.1d 2011/12/21 film studies bibliography style Author (Year)] \ExecuteBibliographyOptions{indexing=cite,maxnames=4,minnames=4,maxitems=9,useprefix=true,sorting=nyt,date=long,urldate=long,hyperref=auto,pagetracker=true,ibidtracker=context,citetracker=true,labelyear=true} \DeclareFieldFormat{yearparens}{\mkbibparens{#1}\iffieldequalstr{entrytype}{collection}{}{\addcolon\addspace}} \DeclareFieldFormat{pages}{#1} + \renewcommand{\ppspace}{} \renewbibmacro*{labelyear+extrayear}{% @@ -24,11 +25,8 @@ {\addslash\printfield{origyear}}% {}% }}} - - - -\renewbibmacro*{editor}{% +\renewbibmacro*{incollectioneditor}{% \ifnameundef{editor} {\let\bbx@lasthash\@undefined} {{\ifnamesequal{author}{editor}{% @@ -36,9 +34,9 @@ {\bibstring{idempp}}% {\bibstring{idem\thefield{gender}}}}{% \printnames{editor}}\addspace - \savefield{namehash}{\bbx@lasthash}}% + \global\undef\bbx@lasthash}% \iffieldequalstr{entrytype}{book}{}{\usebibmacro{editorstrg}}}} - + \renewbibmacro*{editorstrg}{% \printtext{\mkbibparens{\unspace \ifnum\theeditor>1 @@ -76,7 +74,7 @@ \printfield{series}% \setunit{\addspace}}% \iffieldundef{volume}{}{\printfield{volume}\iffieldundef{number}{\iffieldundef{pages}{\addperiod}{\addcomma}}{\addcomma}}% - \setunit*{\adddot}% + \setunit*{\addperiod\addspace}% \iffieldundef{number}{}{\printtext{\addspace\printfield{number}}\addspace}% \ifnameundef{editor}{}{\addperiod\addspace\usebibmacro{byeditor}\setunit{\addcomma\space}}% \printfield{eid}%% @@ -100,7 +98,7 @@ \iftoggle{printpublisher} {\setunit{\isdot\addcolon\addspace}\printlist{publisher}\setunit{\addcomma\space}}% {} - }} + \iftoggle{dontprintorig}{\printfield{labelyear}}{}}} \newbibmacro*{publ+loc+origyear}{% \printlist{location}% @@ -109,7 +107,7 @@ {\setunit*{\space}}% {\setunit{\isdot\addcolon\space}\printlist{publisher}}}% {\setunit*{\space}}% -\usebibmacro{origyear}% +\iftoggle{dontprintorig}{\iftoggle{printpublisher}{\addspace}{}\printfield{labelyear}}{}\usebibmacro{origyear}% }% \newbibmacro*{inst+loc}{% @@ -124,6 +122,34 @@ \setunit{\isdot\addcolon\space}}% \printlist{institution}}} +\renewbibmacro*{author}{% + \ifboolexpr{ + test \ifuseauthor + and + not test {\ifnameundef{author}} + } + {\usebibmacro{bbx:dashcheck} + {\bibnamedash} + {\usebibmacro{bbx:savehash}% + \printnames{author}% + \iffieldundef{authortype} + {\setunit{\addspace}} + {\setunit{\addcomma\space}}}% + \iffieldundef{authortype} + {} + {\usebibmacro{authorstrg}% + \setunit{\addspace}}}% + {\global\undef\bbx@lasthash + \usebibmacro{labeltitle}% + \setunit*{\addspace}}} + +\renewbibmacro*{translatedversion}[1]{% + \toggletrue{intransdecision}% + \edef\@tempa{\noexpand\docsvlist{#1}}% + \def\do##1{\toggletrue{dontprintextrayear}\printtext[germfassung]{% + \fullcite{##1}}}% + \@tempa\toggletrue{dontprintorig}% + \togglefalse{dontprintextrayear}\togglefalse{intransdecision}} \DeclareBibliographyDriver{review}{% \usebibmacro{bibindex}% @@ -170,10 +196,10 @@ \newunit\newblock% \usebibmacro{doi+eprint+url}% %\setunit{.}\newblock -\addspace\usebibmacro{origyear+location+title}% +%\addspace\usebibmacro{origyear+location+title}% +\newblock +\addspace\usebibmacro{decidetranslatedversion}% \newblock -\usebibmacro{decidetranslatedversion}% - \newblock \usebibmacro{addendum+pubstate}% \newunit\newblock \usebibmacro{pageref}% @@ -183,8 +209,9 @@ \usebibmacro{bibindex}% \usebibmacro{begentry}% \usebibmacro{test:partofcited}% - \usebibmacro{author/translator}% - \usebibmacro{labelyear+extrayear}% + \iftoggle{dontprintorig}{}% + {\usebibmacro{author/translator}% + \usebibmacro{labelyear+extrayear}}% %\newunit\newblock \usebibmacro{title}% \newunit\newblock @@ -193,12 +220,14 @@ \usebibmacro{in:}% %\newunit% \iftoggle{partofcited} - {\citetext{\thefield{xref}}} + {\iffieldundef{xref} + {\mancite\textcite{\thefield{crossref}}} + {\mancite\textcite{\thefield{xref}}}} {\newblock% \ifnameundef{bookauthor}% {\ifnameundef{editor} {} - {\usebibmacro{editor}}} + {\usebibmacro{incollectioneditor}}} {\usebibmacro{bybookauthor}} %\newunit \newblock% @@ -231,7 +260,7 @@ \usebibmacro{chap+pag}% %\setunit{\par}\newblock %\usebibmacro{doi+eprint+url}% - \newunit\newblock + \newblock \addspace\usebibmacro{decidetranslatedversion}% \newblock \usebibmacro{addendum+pubstate}% @@ -242,13 +271,14 @@ \DeclareBibliographyDriver{book}{% \usebibmacro{bibindex}% \usebibmacro{begentry}% - \ifnameundef{author}% + \iftoggle{dontprintorig} + {} + {\ifnameundef{author}% {\ifnameundef{editor}% {} - {\usebibmacro{editor}\addspace}% - \usebibmacro{editorstrg}\addspace}% + {\usebibmacro{editor}\addspace}}% {\usebibmacro{author/translator+others}}% -AA\usebibmacro{labelyear+extrayear}% +\usebibmacro{labelyear+extrayear}}% \newblock \usebibmacro{mtitle+mstitle+vol+part+title+stitle}% \newunit\newblock |