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.

10
  • 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. May 19, 2016 at 15:34
  • I tried to find the biblatex folder on windows but I can't. I'm using Miktex.
    – user106052
    May 19, 2016 at 15:41
  • You need the biblatex-apa folder. Check your log-file, it should tell you were the files are. May 19, 2016 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, 2016 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, 2016 at 16:36

1 Answer 1

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .