Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alexdaminger opened this issue Oct 18, 2024 · 3 comments
Open

Comments

@alexdaminger
Copy link

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.

Repository owner deleted a comment from github-actions bot Oct 18, 2024
Copy link

🤖 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
Copy link
Owner

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
Copy link
Author

alexdaminger commented Oct 20, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants