I'm currently struggling with the APA citation system in Spanish. I need to use "y" or "e" instead of "&". As you can see in my MWE, in spite of using the Spanish package it retains the &, which is wrong. Any idea how I can solve that?
MWE
\documentclass[spanish]{article}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[backend=biber,citestyle=authoryear,url=true,backref=bibtex,bibstyle=apa]{biblatex}
\DeclareLanguageMapping{spanish}{spanish-apa}
\setcounter{smartand}{1}
\DefineBibliographyStrings{spanish}{%
andothers = {et al.},
}
\addbibresource{example.bib}
\begin{filecontents}{example.bib}
@article{AnsariJaffri2014,
author = {Ansari, Komal and Ansari, Sanaullah and Jaffri, Saima},
issn = {1016-9342},
journal = {International Research Journal of Arts and Humanities},
number = {42},
title = {{The Atypical Creative Arts Research Methodology(s): Integrating Practice with Performance}},
volume = {42},
year = {2014}
},
@inproceedings{Lindley2018,
author = {Lindley, Joseph and Coulton, Paul and Akmal, Haider Ali},
booktitle = {{Design as a Catalyst for Change - DRS International Conference 2018}},
doi = {10.21606/drs.2018.327},
month = {jun},
pages = {230--244},
title = {{Turning Philosophy with a Speculative Lathe: Object-Oriented Ontology, Carpentry, and Design Fiction}},
year = {2018}
}
\end{filecontents}
\begin{document}
\textcite{AnsariJaffri2014}
\textcite{Lindley2018}
\printbibliography
\end{document}
UPDATE
I managed to install the biblatex package on my Mac. Now I'm facing a new issue:
"! Undefined control sequence.
l.21 \DeclareLanguageMappingSuffix
{-apa}
? "
Best Answer
Try this code. Compile as
pdflatex
+biber
+pdflatex
+pdflatex
.The
&
will be changed toand
, which in turn will map toy
in Spanish.UPDATE Put
\listfiles
before\documentclass[spanish]
{article}This is the output I get in the .log file
Check if your system needs an update.
This answer assumes you are using a current version of biblatex-apa (at least v9.0 from 2019-11-23) that implements 7th-edition APA style.