I am writing a report in a modified report class and am using agsm as a bibliography style. Using the help of:

hack for including doi in agsm bibliography style

I managed to add a DOI to my modified bibliography style. Now I wanted to do the same trick to add a ISBN to the book entry type.

In my modified .bst file I added in the ENTRY function isbn in between institution and journal. Then I added a function according the instructions of the link above.

FUNCTION {write.isbn}
    { isbn empty$
    { "" }
    { new.block "ISBN " isbn * }

then finally I modified the book entry to the following:

    FUNCTION {book}
    { output.bibitem
      " \harvardyearleft " list.year * "\harvardyearright " * output.nonnull
      author empty$
      { editor "author and editor" item.check }
    { crossref missing$
    { "author and editor" editor either.or.check }
  title.field field.used =
    { skip$ }
    { format.btitle "title" output.check }
  crossref missing$
    { format.bvolume output
      format.number.series output
      format.edition output
      publisher "publisher" output.check
      address output
    { format.book.crossref output.nonnull
      format.edition output
  note output
  write.isbn output
  write.doi output

Again following the instructions of the link above. However, if I reran LaTeX and BibTeX (even multiple times), no isbn shows up. Can somebody help? Is there another way to make agsm show the ISBN or another 'hack' that may help?

  • I followed the steps you described and things worked for me. Note that you don't describe defining write.doi, so your write.doi output might cause an error. You can find the agsm-isbn.bst that I used at gist.github.com/moewew/f670f3a8bc511378f4fa322eedfd86a0
    – moewe
    May 22, 2019 at 5:18
  • I used your code and then added the DOI again, and it worked. Thank you:)
    – Claire
    May 22, 2019 at 7:49


You must log in to answer this question.

Browse other questions tagged .