0

This question already has an answer here:

Hy everyone!

Im currently using biblatex with style=authoryear. When i quote with \parencite it looks quite similar than apa. But not exactly. There is still a coma between the author and the year i need to get rid of: (Hemingway, 1980, 45) --> (Hemingway 1980, 45). I tried style=apa but i get Errors. What am I doing wrong? Thanks a lot!

\documentclass[11pt, oneside]{report}
\usepackage[ngerman]{babel}

\DeclareLanguageMapping{ngerman}{ngerman-apa}

\usepackage{acronym}         

\usepackage{amssymb} 
\usepackage[utf8]{inputenc}
\usepackage{chngcntr}  
\usepackage[style=apa]{biblatex} 
\usepackage{nameref}

\DeclareLanguageMapping{ngerman}{ngerman-apa}
\addbibresource{refrences3.bib}

\renewcommand*{\nameyeardelim}{\addcomma\space}

\renewcommand*{\mkbibnamelast}[1]{\textsc{#1}}   

\begin{document}




Text text text text \parencite[S. 265]{Diepen}

\newpage \defbibheading{bibliography}{% 
\chapter*{Literaturverzeichnis}} 


\printbibliography \setlength{\bibitemsep}{\baselineskip}

\end{document}  

Some of the errors i get when i change style=apa:

\iffieldundef {endyear}{...
l.745 \setlength
                {\bibitemsep}{\baselineskip}
./Introduction.tex:745: Undefined control sequence.
<argument> \mkbibdateapalongextra 
                                  {year}{month}{day}

Package biblatex Warning: Bibliography string 'retrieved' undefined
(biblatex)                at entry 'Byrum' on input line 744.

marked as duplicate by moewe biblatex Nov 12 '15 at 9:39

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    You should learn to make better (complete) examples. The apa-style needs a language mapping: \DeclareLanguageMapping{ngerman}{ngerman-apa} , – Ulrike Fischer Nov 3 '15 at 11:57
  • Ok Sorry :) i still get the errors though – Jaka11 Nov 3 '15 at 12:18
  • Your example doesn't use the code I mentioned. It also doesn't use apa style. So how do you know that it still gives the error? And your error mentions line 745, so I doubt very much that you actually compiled the example you show. – Ulrike Fischer Nov 3 '15 at 12:21
  • I did. Im gonna edit it the way the errors are showing. The "text" part is just a little longer in my document. line 745 is \printbibliography – Jaka11 Nov 3 '15 at 12:29
  • 1
    Why did you add the command \DeclareLanguageMapping before loading biblatex? Didn't you see that this gives an ! Undefined control sequence. error straightaway? – Ulrike Fischer Nov 3 '15 at 12:33
-1

Removed \addcome

\renewcommand*{\nameyeardelim}{\addspace}

Not the answer you're looking for? Browse other questions tagged or ask your own question.