How to link Zotero private group with Overleaf
Hi,
I am trying to link a Zotero private group I have just created with my Overleaf account with no success. The bibtex file which is created in Overleaf is the one of My Library.
Do you know what could be the reason and how I can fix this?
Thanks.
Elga
I am trying to link a Zotero private group I have just created with my Overleaf account with no success. The bibtex file which is created in Overleaf is the one of My Library.
Do you know what could be the reason and how I can fix this?
Thanks.
Elga
I am not sure I have the right level of expertise to try your suggestion (I'm a beginner). If anybody has a simpler workaround, I am happy to give it a try.
Any update from Overleaf?
Thanks
Public: Closed Membership
Group Library: Anyone can view, only members can edit
You can hit the zotero api to fetch the bibfile for a group using something like this:
https://api.zotero.org/groups/2501167/items/top?format=bibtex&style=numeric&limit=100
Replace the group id: 2501167 with your own, finding the id is a bit obscure, [3] describes where to find it.
In overleaf when creating a new file you can specify an external url. Use the one above. For the name use something like "references.bib".
Notes:
[1] https://homes.cs.washington.edu/~ym2552/blogs/overleaf-with-zotero.html
[2] https://www.zotero.org/support/dev/web_api/v3/basics
[3] https://pyzotero.readthedocs.io/en/latest/index.html?highlight=bibtex#search-request-parameters-for-read-api-calls
I'm not sure if this is new but I stumbled upon it when creating my first group for this method.
That said, if a URL works for Overleaf, using Better BibTeX or so to create an auto-updating bibtex file for the group and then syncing that to a URL, be it via github or via Dropbox, seems trivially easy, so I'd just do that.
@adamsmith you are correct. I've tried this by setting the limit=2, and I get only 2 items, so @christian_moedrup_legaard 's suggestion is limited to groups with 100 items.
https://api.zotero.org/groups/2501167/collections/XYZTUV/items/top?format=bibtex&style=numeric&limit=100
Is there any work around or configuration that will avoid this problem?
PS: I have tried the rest url and this works but the 100 entries is indeed a problem for me.
But definitely non-trivial to set up. I do it for my tests, so I know it works, technically.
Easier to set up would be to leave a PC running with zotero to do sync & dropbox. Easier to set up, and you'd get overleaf synced faster.
*technically* it must be possible to have a script emulate a browser login and perform the upload via that route. Very much not trivial to get done. I've tinkered with it long ago.
See any issues with this approach?
Example:
First 100 entries: https://api.zotero.org/users/USER_ID/collections/COLLECTION_ID/items?limit=100&format=bibtex
Item 100-200 entries:
https://api.zotero.org/users/USER_ID/collections/COLLECTION_ID/items?start=100&limit=200&format=bibtex
However, I now have the issue that not all of my references in the Zotero folder show up in the corresponding Overleaf bib file. I have about 25 references in my Zotero folder, but only 15 appear in Overleaf. Any ideas on how I could solve this? Thank you!
Basically corresponds to the solutions given above, even though the starting issue was a bit different.