retorquere / zotero-better-bibtex

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

Allow multiple libraries using Pandoc export with the Pandoc filter #3025

Open alexdaminger opened 1 month ago

alexdaminger commented 1 month ago

Debug log ID

49DRETMQ-refs-euc/6.7.240-6

What happened?

Currently, you can't specify multiple libraries when converting an .md-file to an .docx file with Zotero live citations using the Pandoc filter.

The documentation says that once the “library” argument is omitted, the personal library is used.

---
zotero:
  library: <group name> # omitted to use your personal library
---

I've got relevant citations in the document from both my personal library and a group library, so I currently have to keep on using--citeproc in the pandoc command, which allows for the inclusion of multiple bibliography files using --bibliography.

I think it'd be great if we could use Pandoc export with the Pandoc filter for Zotero live citations and include multiple libraries.

github-actions[bot] commented 1 month ago

:robot: this is your friendly neighborhood build bot announcing test build 6.7.241.7179 ("library array")

This update may name other issues, but the build just dropped here is for you; it just means problems already fixed in other issues have been folded into the work we are doing here. Install in Zotero by downloading test build 6.7.241.7179, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".

retorquere commented 1 month ago

With build 7179, you can have

library:
-
- group name

and that will search both. The empty line means "my library". If you can verify this does what you need, I can put out a new release.

alexdaminger commented 1 month ago

I installed build 7179 and adjusted the YAML header in my .md-document, but unfortunately, pandoc with the extra command --lua-filter zotero.lua only renders the citation from the group library as a Zotero live citation in the .docx-file.

---
created: 2024-10-20T14:16
updated: 2024-10-20T14:17
lang: de-DE
zotero:
  author-in-text: true
  csl-style: apa
  sorted: true
  library:
    - 
    - WIFO-Publikationen
---

The test document has the following citations in it:

Citation from my personal library: [@daminger2021a] or @daminger2021a (in text).

Citation from my group library: [@schiman-vukan2024a] or @schiman-vukan2024a (in text).

Only the group library citation is rendered correctly.

I created a bug report for the item from my personal library that was not rendered correctly. Debug-ID: WG3FEAQC-refs-euc/6.7.241.7179-6

Please let me know if I can help more.