「addendum」フィールドの前の句読点を削除するにはどうすればよいですか? これが私の MWE です:
\documentclass{scrbook}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[autostyle=true,german=quotes]{csquotes}
\usepackage[style=sbl,citepages=separate,backend=biber,sblfootnotes=false,ibidpage=true,ibidtracker=true,idemtracker=true,pagetracker=spread,sorting=nyvt,url=false,isbn=false,doi=false,clearlang=false,uniquename=false]{biblatex}
\DeclareFieldFormat{addendum}{\mkbibparens{#1}}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{Prost,
title = {Probe},
editor = {Prost, G.},
address = {Leipzig},
year = {1962},
endyear = {1964},
volumes = {4},
edition = {2},
addendum = {ND: München und Leipzig 2001},
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\begin{document}
Test.\footnote{\cite[Vgl.][1]{Prost}.}
\printbibliography
\end{document}
私が欲しいのは:
Prost, G., Hrsg.調査。 2. アウフル第4旅団ライプツィヒ、1962年〜1964年(ND:ミュンヘンおよびライプツィヒ、2001年)。
答え1
\documentclass{scrbook}
\usepackage[ngerman]{babel}
\usepackage[autostyle=true,german=quotes]{csquotes}
\usepackage[style=sbl,citepages=separate,backend=biber,sblfootnotes=false,ibidpage=true,ibidtracker=true,idemtracker=true,pagetracker=spread,sorting=nyvt,url=false,isbn=false,doi=false,clearlang=false,uniquename=false]{biblatex}
\usepackage{regexpatch}
\makeatletter
\xpatchcmd{\blx@imc@printfield}{\blx@imc@iffieldundef}{%
\def\tempa{#2}%
\def\tempb{addendum}%
\ifx\tempa\tempb\setunit{\addspace}\fi% Just a space before the addendum
\blx@imc@iffieldundef}{}{}
\makeatother
\DeclareFieldFormat{addendum}{\mkbibparens{#1}}% The addendum should be in parentheses
\begin{filecontents*}[overwrite]{\jobname.bib}
@book{Prost,
title = {Probe},
editor = {Prost, G.},
address = {Leipzig},
year = {1962},
endyear = {1964},
volumes = {4},
edition = {2},
addendum = {ND: München und Leipzig 2001},
}
\end{filecontents*}
\addbibresource{\jobname.bib}
\begin{document}
\nocite{*}
\printbibliography
\end{document}