Export 'Extra' field as note in citation

Hello,
I'm using BBT and I'd like to export the data from the 'Extra' field to the corresponding 'note' field in the citation. Currently, it is exported to the annotation field I cannot use in my TeX environment.

Is there any way to change this behaviour?
  • cc @emilianoeheyns
    I'm pretty sure BBT has the ability to do this via a post-processing hook, yes,
  • That's correct, the quick way would be:

    if (Translator.BetterTeX && reference.has.annotation) reference.add({ ...reference.remove('annotation'), name: 'note'})
  • Or you might want

    if (Translator.BetterTeX) {
    reference.remove('note')
    if (reference.has.annotation) reference.add({ ...reference.remove('annotation'), name: 'note'})
    }


    to make sure you're not getting rich-text notes in the note field.
  • In 5.2.144 that simplifies to

    if (Translator.BetterTeX) reference.add({ ...reference.remove('annotation'), name: 'note'})
  • Thanks a lot, that did the trick!
Sign In or Register to comment.