Wie kann ich meinen Zitationsstil in die neue Biblatex-Version übersetzen?
Nach der Aktualisierung von LaTex und Biber laufen meine LaTex-Datein nicht mehr korrekt durch. Die Ursache dafür ist, dass es eine neue Syntax für \DeclareNameFormat gibt (http://www.texdev.net/2016/03/13/biblatex-a-new-syntax-for-declarenameformat/).
Bisher sah meine Syntaxdatei für den Zitationsstil wie folgt aus:
\RequirePackage{filecontents}
\begin{filecontents*}
@ONLINE{website,
TITLE = {Titel der Website},
HOWPUBLISHED = {Website},
URL = {http://www.musterseite.de},
URLDATE = {2017-07-11},
}
@book{a,
title = {Bsp. Titel},
date = {2012},
author = {Mustermax, Hans},
location = {Berlin},
publisher = {Musterverlag},
}
@article{b,
title = {Musterarticle},
pages = {{116--121}},
number = {39},
journaltitle = {Musterjurnal},
author = {Musterautor, Hans and Peter, Lustig and Schulz, Mario and Maier, Marie},
date = {2012},
}
\end{filecontents*}
\documentclass [12pt,a4paper]{article}
\usepackage{cmap}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
%BIBLATEX
\usepackage[style=authoryear-icomp,backend=biber,url=false,isbn=false,maxnames=2,maxbibnames=8,minbibnames=8]{biblatex}
\addbibresource{Lit.bib}
\renewcommand*{\mkbibnamelast}[1]{\textsc{#1}}
\renewbibmacro*{bbx:dashcheck}[2]{#2}
\DeclareFieldFormat{pages}{#1}
\DefineBibliographyStrings{german}{%
\DefineBibliographyStrings{german}{
page = {{}{}},
pages = {{}{}},
andothers = {et al.}%
al.}
}
\DefineBibliographyStrings{german}{phdthesis = {Dissertation}}
\DeclareFieldFormat*{title}{\textit{#1}}
\DeclareFieldFormat*{citetitle}{\textit{#1}}
\DeclareFieldFormat*{journaltitle}{\textit{#1}}
\DeclareFieldFormat*{booktitle}{\textit{#1}}
\DeclareBibliographyDriver{incollection}{%
\usebibmacro{bibindex}%
\usebibmacro{begentry}%
\usebibmacro{author/translator+others}%
\DeclareBibliographyDriver{incollection}{
\usebibmacro{bibindex}
\usebibmacro{begentry}
\usebibmacro{author/translator+others}
\setunit{\labelnamepunct}\newblock
\usebibmacro{title}%
\usebibmacro{title}
\newunit
\printlist{language}%
\printlist{language}
\newunit\newblock
\usebibmacro{byauthor}%
\newunit\newblock
\usebibmacro{in:}%
\usebibmacro{editor}%
\setunit{\addcolon\space}%
\usebibmacro{maintitle+booktitle}%
\usebibmacro{byauthor}
\newunit\newblock
\printfield{edition}%
\usebibmacro{in:}
\usebibmacro{editor}
\setunit{\addcolon\space}
\usebibmacro{maintitle+booktitle}
\newunit\newblock
\printfield{edition}
\newunit
\iffieldundef{maintitle}
{\printfield{volume}%
{\printfield{volume}
\printfield{part}}
{}%
{}
\newunit
\printfield{volumes}%
\printfield{volumes}
\newunit\newblock
\usebibmacro{series+number}%
\usebibmacro{series+number}
\newunit\newblock
\newunit\newblock
\usebibmacro{chapter+pages}%
\usebibmacro{chapter+pages}
\newunit\newblock
\usebibmacro{publisher+location+date}%
\usebibmacro{publisher+location+date}
\newunit\newblock
\newunit\newblock
\usebibmacro{doi+eprint+url}%
\usebibmacro{doi+eprint+url}
\newunit\newblock
\usebibmacro{addendum+pubstate}%
\usebibmacro{addendum+pubstate}
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{finentry}
}
\renewbibmacro*{editor}{%
\renewbibmacro*{editor}{
\ifnameundef{editor}
{}
{\printnames{editor}%
\usebibmacro{editorstrg}%
{\printnames{editor}
\usebibmacro{editorstrg}
\clearname{editor}}}
\renewbibmacro*{editorstrg}{%
\renewbibmacro*{editorstrg}{
\iffieldundef{editortype}
{\ifboolexpr{
test {\ifnumgreater{\value{editor}}{1}}
or
test {\ifandothers{editor}}
}
{\addspace\mkbibparens{\bibstring{editors}}}
{\addspace\mkbibparens{\bibstring{editor}}}}
{\ifboolexpr{
test {\ifnumgreater{\value{editor}}{1}}
or
test {\ifandothers{editor}}
}
{\addspace\mkbibparens{\bibstring{\thefield{editortype}s}}}
{\addspace\mkbibparens{\bibstring{\thefield{editortype}}}}}
}
\DeclareFieldFormat{pagetotal}{ {} }
\DeclareFieldFormat{volumes}{ {} }
\DeclareNameFormat{default}{
\usebibmacro{name:last}{#1}{#3}{#5}{#7}
\usebibmacro{name:andothers}
}
\DeclareNameFormat{labelname}{
\usebibmacro{name:last}{#1}{#3}{#5}{#7}
\usebibmacro{name:andothers}
}
\DeclareNameFormat{sortname}{
\iffirstinits
{\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}}
{\usebibmacro{name:last-first}{#1}{#3}{#5}{#7}}
\usebibmacro{name:andothers}
}
\let\oldmultinamedelim\multinamedelim
\let\oldfinalnamedelim\finalnamedelim
\renewcommand*{\multinamedelim}{,\space}
\renewcommand*{\finalnamedelim}{~\&\space}
\AtBeginBibliography{
\renewcommand*{\multinamedelim}{\oldmultinamedelim}
\renewcommand*{\finalnamedelim}{\oldfinalnamedelim}
}
\usepackage{xpatch}
\xpatchbibmacro{textcite}{
{\usebibmacro{cite:label}
\setunit{
\global\booltrue{cbx:parens}
\addspace\bibopenparen}
\ifnumequal{\value{citecount}}{1}
{\usebibmacro{prenote}}
{}
\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}
{\usebibmacro{cite:ibid}}
{\usebibmacro{cite:labelyear+extrayear}}}
}{
{\usebibmacro{cite:label}
\setunit{
\global\booltrue{cbx:parens}
\addspace\bibopenparen}
\ifnumequal{\value{citecount}}{1}
{\usebibmacro{prenote}}
{}
\usebibmacro{cite:labelyear+extrayear}}
}{}{}
\xpatchbibmacro{textcite}{
{\ifthenelse{\ifciteibid\AND\NOT\iffirstonpage}
{\usebibmacro{cite:ibid}}
{\usebibmacro{cite:labelyear+extrayear}}}
}{
{\usebibmacro{cite:labelyear+extrayear}}
}{}{}
%ENDE BIBLATEX
\begin{document}
Text. \cite{Website}. Ein weiteres Zitat \cite{a} oder auch \cite{b}.
\printbibliography
\end{document}
Wie müsste die Syntax für die neueren Biblatex-Versionen aussehen um den selben Output für Zitate und für das Literaturverzeichnis zu erhalten?