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.

  • I don't think that there is a portuguese-apa.lbx. Get e.g. spanish-apa.lbx (in the biblatex-apa-folder), make a copy as portuguese-apa.lbx, correct the words and then use this. – Ulrike Fischer May 19 '16 at 15:34
  • I tried to find the biblatex folder on windows but I can't. I'm using Miktex. – user106052 May 19 '16 at 15:41
  • You need the biblatex-apa folder. Check your log-file, it should tell you were the files are. – Ulrike Fischer May 19 '16 at 15:55
  • If you get a nice working .lbx, send it to me (APA style author) and I will include it with the style. – PLK May 19 '16 at 15:57
  • Found the folder, added a new file named portuguese-apa.lbx. Still get the same error though. Here's the file pastebin.com/KWYrDVZj – user106052 May 19 '16 at 16:36
1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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