0

I'm trying to use apa style with biblatex but I get "Undefined control sequence." right after \printbibliography.

Here's the code:

\usepackage[main=portuguese]{babel}
\usepackage{csquotes}
\usepackage[style=apa]{biblatex} %apagar o de baixo
\DeclareLanguageMapping{portuguese}{portuguese-apa}

If I remove the option "style=apa" it works well.

I get this warning "File 'portuguese-apa.lbx' not found!(biblatex) Ignoring mapping 'portuguese' -> 'portuguese-apa'."

I think the error origins because of not finding the file.

Found these files: https://www.ctan.org/tex-archive/macros/latex/contrib/biblatex/latex/lbx.

But I don't know where to add the file.

1 Answers1

2

You shouldn't confuse lbx-files for biblatex and lbx-files for biblatex-apa. biblatex-apa needs some more translations and settings and so loads an additional lbx.

If for your language there is no lbx for biblatex you can follow the instructions in this question: What is the most appropriate way to configure biblatex for use with an unsupported language?

To create the additional lbx for biblatex-apa open one of the existing lbx in /tex/latex/biblatex-apa and save it as <yourlanguage>-apa.lbx in your document folder or in some local texmf-tree. Then adapt the various definitions.

If you think your definitions are useful sent them to the biblatex-apa author so that he can add them to the package https://github.com/plk/biblatex-apa.

Ulrike Fischer
  • 327,261