[Tex/LaTex] Creating an annotated bibliography in APA

annotationsbiblatexbibliographies

Update: When I tried implemented gusbrs's solution (below), I was having issues with the code as well, so I couldn't add my own references. Then I discovered that the issue had something to do with my 'references.bib' file (I'm adding this information in case someone else is having the same issue). I deleted the file and created a new one, and both my code and gusbrs's code started working. Finally, I was able to see my own references listed. One of two follow-up questions I have is, (1) how can I delete the numbers? I know my code is more complicated, but this is an assignment I need to submit. My professor asked for this specific format, so I need to stick to the code I included in the original question. Can anyone tell me how to delete the numbers, which is the only thing that does not adhere to the format I was asked to follow? I tried deleting the
{\stepcounter{bibnum}\thebibnum.\ }
but it messed with the APA formatting. Also, with my code, I only get 'Sentence case' capitalizing (i.e. capital on the first letter of the title). (2) How can I change it so that it respects the format in my 'references.bib' document? Some of the titles include languages or concepts that must be capitalized, and my code completely violates this.

Original: First of all, I'm a beginner in LaTeX, so I apologize if this is a stupid question. I'm trying to create an annotated bibliography using APA style. I found a sample code here, which I was able to implement. (Note that I had to change \thebibitem for \item in order for the code to run properly.) Below is the code as I'm using it:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage[style=apa]{biblatex}
\DeclareLanguageMapping{english}{english-apa}
\bibliography{biblatex-examples}

\newcounter{bibnum}
\DeclareCiteCommand{\fullcitebib}
  {\renewenvironment*{thebibliography}
  {\list
     {\stepcounter{bibnum}\thebibnum.\ }
     {\setlength{\leftmargin}{1.65\bibhang}
      %
      \setlength{\itemindent}{-\bibhang}%
      \setlength{\itemsep}{\bibitemsep}%
      \setlength{\parsep}{\bibparsep}}}
  {\endlist}
  \renewcommand{\finalnamedelim}{\ifnum\value{liststop}>2         
\finalandcomma\fi\addspace\&\space}%
  \begin{thebibliography}\item}
  {\usedriver
    {\DeclareNameAlias{sortname}{default}}
    {\thefield{entrytype}}\finentry}
  {\item}
  {\end{thebibliography}}

\begin{document}

\fullcitebib{glashow}

Some annotations.

\fullcitebib{herrmann}

Some annotations
\end{document}

And I get this result, as seen in the original post:
enter image description here

I know how to change the annotations myself (that one's pretty easy). But I don't know how to change the references. Where do I go to add my own articles and books to annotate and remove those two? Also, what part of the code do I have to change to get rid of the numbers? I would like to keep everything in the format as is, except for the numbering.

Thanks!

Best Answer

Even though biblatex-apa provides \fullcitebib, I believe you'd be better of, for what you are attempting to do, with biblatex's regular \fullcite command used in combination with a simple enumerate environment. Those should suffice without further configuration for the purpose.

\documentclass{article}
% \usepackage[utf8]{inputenc}% no longer needed if you have recent (La)TeX installation
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage[style=apa]{biblatex}
% \DeclareLanguageMapping{english}{english-apa}% no longer needed if you have recent (La)TeX installation
\addbibresource{biblatex-examples.bib}% \bibliography{...} is legacy format

\begin{document}

\begin{enumerate}
\item \fullcite{glashow}

  Some annotations.

\item \fullcite{herrmann}

  Some annotations
\end{enumerate}

\end{document}

enter image description here

However, you might want to consider a typical tool for the task, which allows you to keep annotations tied to your entries within your bib database. As this is an annotated bibliography, I assume it is made for your own consumption and thus an APA style is not really a strict requirement. Given that, biblatex offers the reading style, which prints, alongside the entries the annotation, abstract, library and file fields (you can control which are printed through load time options).

\documentclass{article}
\usepackage[english]{babel}
\usepackage{csquotes}
\usepackage[style=reading]{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}

\cite{gillies}

\cite{kastenholz}

\printbibliography{}

\end{document}

enter image description here

Related Question