retorquere / zotero-better-bibtex

Make Zotero effective for us LaTeX holdouts
https://retorque.re/zotero-better-bibtex/
MIT License
5.28k stars 284 forks source link

[Bug]: Journal acronym from acronyms list not used in generated citation key #2634

Closed briochemc closed 1 year ago

briochemc commented 1 year ago

Debug log ID

7V5NMTWK-refs-apse/6.7.114-6

What happened?

as recommended by @retorquere, mostly copied from earlier post by @briochemc in https://github.com/retorquere/zotero-better-bibtex/discussions/2633 (FWIW: I have generated a new debug log here so that it matches the acronyms.csv file attached below)

I want to use journal acronyms when generating citation keys. To do that I created this file in my ~/Zotero/better-bibtex: acronyms.csv

And then in the citation key formula, I used

journal(abbrev="off").acronym

However, the generated citation key contains "EarthandPlanetaryScienceLetters" instead of the desired acronym, "EPSL".

It seems none of the acronym lines work.

github-actions[bot] commented 1 year ago

:robot: this is your friendly neighborhood build bot announcing test build 6.7.114.2634.4997 ("fixes #2634")

Install in Zotero by downloading test build 6.7.114.2634.4997, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".

briochemc commented 1 year ago

LGTM (for my case)!

EDIT: BTW, thanks a lot for the prompt fix @retorquere that was amazingly fast!

retorquere commented 1 year ago

It was a documentation problem; I required a specific header that I didn't document, but then how you had it seemed much more reasonable so I added support for either form.

I'll put out a new release later today, that'll just be a rebadged version of what you already have. You don't need to do anything, and you will automatically be upgraded between now and two days (I believe zotero checks every 48 hours).

briochemc commented 1 year ago

OK so I was missing something!

BTW I'm not sure what I did wrong but now that I started adding other acronyms it does not seem to work anymore...

briochemc commented 1 year ago

Oh it seems that I need to restart Zotero if I edit the list of acronyms. I thought I'd point it out if someone else is trying this feature...

retorquere commented 1 year ago

I've documented that, site should update in about 10 minutes.

briochemc commented 1 year ago

You don't need to do anything, and you will automatically be upgraded between now and two days (I believe zotero checks every 48 hours).

Do you mean that I don't even have to reinstall better-bibtex even though I installed the test build? I.e., will Zotero know to replace the test build with the latest version?

retorquere commented 1 year ago

Yes.