Ich beschäftige mich mit einem Problem im Zusammenhang mit dem Zitieren und Zitieren von Quellen im APA-Stil.
Hier ist mein Beispielcode:
\documentclass[a4paper,
12pt,
bibtotoc,
liststotoc,
pointlessnumbers
]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage[american,ngerman]{babel}
\usepackage[babel=true]{csquotes}
\usepackage[style=apa,backend=biber, doi=false, url=false]{biblatex}
\DeclareLanguageMapping{ngerman}{ngerman-apa}
\DefineBibliographyStrings{ngerman}{andothers={et\ \addabbrvspace al\adddot}}
\renewcommand\finalandcomma{\addcomma}
\usepackage{filecontents}
\begin{filecontents}{literatur.bib}
@article{DroitVolet2007,
author = {Droit-Volet, S. and Meck, W. H.},
year = {2007},
title = {{H}ow emotions colour our perception of time},
pages = {504--513},
volume = {11},
number = {12},
issn = {13646613},
journal = {Trends in Cognitive Sciences},
doi = {10.1016/j.tics.2007.09.008 Titel anhand dieser DOI in Citavi-Projekt übernehmen
}
@article{Gibbon1984,
author = {Gibbon, J. and Church, R. M. and Meck, W. H.},
year = {1984},
title = {{S}calar timing in memory},
pages = {52--77},
volume = {423},
issn = {0077-8923},
journal = {Annals of the New York Academy of Sciences}
}
}
\end{filecontents}
\bibliography{literatur}
\begin{document}
There is no comma in this citation \parencite{DroitVolet2007}, but the comma is missing in the references.
For more than two authors there has to be a comma in front of & \parencite{Gibbon1984}.
\printbibliography
\end{document}
In Latex fehlt ein Komma vor & im Literaturverzeichnis, wenn nur zwei Autoren angegeben sind. Die Intext-Zitation ist bei zwei Autoren völlig in Ordnung, aber der Eintrag im Literaturverzeichnis sollte so aussehen: Droit-Volet, S., & Meck, WH (2007). ....
Bei mehr als zwei Autoren muss auch bei Textzitaten vor & ein Komma stehen.
Auf der Suche nach einer Lösung habe ich versucht, das Problem zu beheben, indem ich
\renewcommand*{\finalnamedelim}{%
\finalandcomma
\addspace
\bibstring{and}%
\space
}
oder
\renewcommand\finalandcomma{\addcomma}
Aber leider hat keine dieser Lösungen in meinem Fall funktioniert ...
Für Hilfe und Ratschläge wäre ich sehr dankbar.
Liebe Grüße, Ferdinand
Antwort1
Aus irgendeinem Grund wird der Hook biblatex-apa
neu definiert .\finalnamedelim
\AtBeginBibliography
Wir müssen also dasselbe tun, um die Einstellung zu überschreiben; zusätzlich definieren wir den \finalandcomma
im \AtBeginDocument
Hook neu
\AtBeginDocument{\renewcommand\finalandcomma{\addcomma}}
\AtBeginBibliography{%
\renewcommand*{\finalnamedelim}{%
\ifthenelse{\value{listcount}>\maxprtauth}
{}
{\finalandcomma\addspace\&\space}}}
Dadurch wird immer gedruckt \finalandcomma
(normalerweise wird es nur gedruckt, wenn mehr als zwei Autoren vorhanden sind).
MWE
\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[american,ngerman]{babel}
\usepackage{csquotes}
\usepackage{xpatch}
\usepackage[style=apa,backend=biber, doi=false, url=false]{biblatex}
\DeclareLanguageMapping{ngerman}{ngerman-apa}
\DefineBibliographyStrings{ngerman}{andothers={et\addabbrvspace al\adddot}}
\AtBeginDocument{\renewcommand\finalandcomma{\addcomma}}
\AtBeginBibliography{%
\renewcommand*{\finalnamedelim}{%
\ifthenelse{\value{listcount}>\maxprtauth}
{}
{\finalandcomma\addspace\&\space}}}
\addbibresource{biblatex-examples.bib}
\begin{document}
There is no comma in this citation \parencite{baez/article}, but the comma is missing in the reference.
\printbibliography
\end{document}
Antwort2
Unterdrücken Sie das \renewcommand{\finalandcomma}{\addcomma}
(im APA-Stil druckt \finalendcomma ein Et-Zeichen, und Sie möchten es behalten). Ersetzen Sie es in Ihrer Präambel durch Folgendes:
\usepackage{xpatch}
\xpatchnameformat{apaauthor}{%
{\ifmorenames{\andothersdelim\bibstring{andothers}}{}}{}}%
{%
{\ifmorenames{\andothersdelim\bibstring{andothers}}{}}{\addcomma\space}}%
{}{}%