3

how can I remove the punctuation before the field "addendum"? Here is my 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}

enter image description here

I want to have:

Prost, G., Hrsg. Probe. 2. Aufl. 4 Bde. Leipzig, 1962–1964 (ND: Munchen und Leipzig 2001).

1 Answer 1

5
\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}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .