1

So I'm still working on this big essay and today I noticed that the notes we added in the .bib file are not showing up in the bibliography. It is only happening when I'm using the apa style. Maybe printing the note data field is not implemented, just like the ISBN? (Biblatex not showing ISBN with apa style) Otherwise, what am I doing wrong?

MWE:

\documentclass{article}

\usepackage[utf8]{inputenc}
\usepackage[backend=biber,style=apa,citestyle=apa]{biblatex}
\DeclareLanguageMapping{english}{english-apa}
\addbibresource{sources.bib}

\begin{document}
Content. \parencite{something_one} More content \parencite{something-else_one} more content.
\printbibliography
\end{document}

And the sources.bib file:

@online{something_one,
author      =   {Some One},
title       =   {Something},
year        =   {nodate},
url         =   {https://somesite.org/somepage},
urldate     =   {2017-12-19},
note        =   {I'm a note}
}

@online{something-else_one,
author      =   {Some One},
title       =   {Something else},
year        =   {nodate},
url         =   {https://somesite.org/someotherpage},
urldate     =   {2017-12-19},
note        =   {I'm another note}
}
  • Welcome to TeX.se, and thanks for posting a minimal example document. The bibliography driver for online elements isn't set up to print the note. What are you using the note field for, exactly? – Alan Munn Jan 7 '18 at 23:49
  • Multiple uses, but for example, I'm citing from Wikipedia and I would like to have the date of last revision in the bibliography. – Bassie-c Jan 8 '18 at 0:08
  • 2
    Ok. For that you should use the urldate field. See §4.2.2 of the biblatex-apa documentation. – Alan Munn Jan 8 '18 at 0:37
  • 1
    I notice that the @online entry type supports the addendum field. In contrast to the note field, the addendum field prints after the url and urdate. But perhaps it would suit you. – David Purton Jan 8 '18 at 9:49
  • @AlanMunn isn't urldate used for "retrieved on"? APA§4.2.2 actually also says so. What if you want both "Retrieved on: <date>" and "Published on/Last updated on: <date>" (obtainable from the website infos)? – thymaro Jan 9 '18 at 0:35
5

In addition to the comments above, this is how to patch the @online entry type driver to include the note field.

  1. Have a look in the file apa.bbx and find the online driver (search for \DeclareBibliographyDriver{online}).
  2. Have a look through this driver and see where you want to put the note field. Most drivers put the note field before any doi or url.
  3. You'll see that immediately before the doi field there is \printfield{entrysubtype}.
  4. We can patch the driver using xpatch to insert the note field after this with a period and space in between like this:

    \usepackage{xpatch}% load the xpatch package
    \xpatchbibdriver{online}% patch the online driver:
      {\printfield{entrysubtype}}% replace this line
      {\printfield{entrysubtype}%  with these lines
       \newunit\newblock
       \printfield{note}}
      {}
      {}
    

Full MWE

\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@online{something_one,
  author  = {Some One},
  title   = {Something},
  year    = {nodate},
  url     = {https://somesite.org/somepage},
  urldate = {2017-12-19},
  note    = {I'm a note}
}
@online{something-else_one,
  author  = {Some One},
  title   = {Something else},
  year    = {nodate},
  url     = {https://somesite.org/someotherpage},
  urldate = {2017-12-19},
  note    = {I'm another note}
}
\end{filecontents}
\usepackage[style=apa]{biblatex}
\DeclareLanguageMapping{english}{english-apa}
\usepackage{xpatch}
\xpatchbibdriver{online}
  {\printfield{entrysubtype}}
  {\printfield{entrysubtype}%
   \newunit\newblock
   \printfield{note}}
  {}
  {}
\addbibresource{\jobname.bib}
\pagestyle{empty}
\begin{document}
\nocite{*}
\printbibliography
\end{document}

enter image description here

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.