2

For my thesis I am using biber and biblatex to manage the bibliography. I would like to use the apa-style of referencing since this is highly recommended by my university.

\documentclass[11pt, oneside]{report}
\usepackage[british]{babel}
\usepackage{csquotes}
\usepackage[style=apa,backend=biber,citestyle=numeric]{biblatex}
\DeclareLanguageMapping{british}{british-apa}
\addbibresource{library.bib} % with extension
\begin{document}
blabla
\printbibliography
\end{document}

The small code hereabove can perfectly generate me the apa-style that I would like, however, I would like to add numbers to each entry in the bibliography since I am using numbers to reference in the text. This would make everything more clear to the reader. After some thorough googling I have not yet found an answer to this solution, I hope it is very simple.

2

The APA style is not a numeric kind of style and you will most certainly forego proper APA compliance with this. You could simply look at using style=numeric all along.

But if you really want an APA-like numeric bibliography, use

\documentclass[11pt, oneside]{report}
\usepackage[british]{babel}
\usepackage{csquotes}
\usepackage[style=apa,backend=biber,citestyle=numeric]{biblatex}
\DeclareLanguageMapping{british}{british-apa}
\addbibresource{biblatex-examples.bib}

\DeclareFieldFormat{labelnumberwidth}{\mkbibbrackets{#1}}

\defbibenvironment{bibliography}
  {\list
     {\printtext[labelnumberwidth]{%
      \printfield{labelprefix}%
      \printfield{labelnumber}}}
     {\setlength{\labelwidth}{\labelnumberwidth}%
      \setlength{\leftmargin}{\labelwidth}%
      \setlength{\labelsep}{\biblabelsep}%
      \addtolength{\leftmargin}{\labelsep}%
      \setlength{\itemsep}{\bibitemsep}%
      \setlength{\parsep}{\bibparsep}}%
      \renewcommand*{\makelabel}[1]{\hss##1}}
  {\endlist}
  {\item}

\begin{document}
\cite{sigfridsson}
\printbibliography
\end{document}

bibliography page of the MWE

  • thank you for sharing this answer/code. I was wondering, however, if it'd be possible to make the second (and any subsequent) line in each citation indented in relation to the first line so that it resembles a typical APA bibliography. And if so, what would be the necessary changes to achieve this? – Ernesto May 13 at 4:02
  • @Ernesto Usually the indent is only necessary to visually distinguish one entry from the next. In a numeric bibliography that is not necessary since the entries are already sufficiently delineated via the label number in front. Adding additional indent would just cost space. I can't think of a quick solution now, so I suggest you ask a new question. – moewe May 13 at 4:52

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.