plk / biblatex-apa

APA style for BibLaTeX
90 stars 48 forks source link

No dash after n.d. in ngerman #149

Closed lschloetterer closed 3 years ago

lschloetterer commented 3 years ago

When using babel to set the language to ngerman, the dash between n.d. and the following letter disappears and is replaced by a simple whitespace. Without babel it looks just as described here. Is this intentional? I haven't found a source stating it is done like this in german.

MWE:

\documentclass{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel} % remove babel, dash appears
\usepackage{csquotes}

\begin{filecontents}{literatur.bib}
    @book{bookOne,
        author = {Doe},
        title = {Some Title}
    }
    @book{bookTwo,
        author = {Doe},
        title = {Another title}
    }
\end{filecontents}

\usepackage[backend=biber,style=apa]{biblatex}
\addbibresource{literatur.bib}

\begin{document}
    \nocite{*}
    \printbibliography
\end{document}
lschloetterer commented 3 years ago

Alright, I found it. The command \apashortdash is defined as ~ in the file ngerman-apa.lbx. I added the following to my document:

\DefineBibliographyExtras{ngerman}{
    \renewcommand*{\apashortdash}{-}
}

Works for me, so I'll go ahead and close this issue.


Edit: With KOMA-Script the following seems to work better:

\renewcaptionname{ngerman}{\apashortdash}{-}