Create .bib file only from papers cited in a .tex file?
I have a particularly large Zotero library, which tends to generate a large bib file, which is updated automatically. Troubleshooting tends to be a pain.
Would it be possible to only create a bib file from the items that are /cite'd in a particular manuscript/tex file?
(if it helps, my tex editor is Atom with a bunch of plug-ins)
Would it be possible to only create a bib file from the items that are /cite'd in a particular manuscript/tex file?
(if it helps, my tex editor is Atom with a bunch of plug-ins)
If you're using a third-party extension (Better BibTeX?), you'd need to ask the extension developer.
Tools
menu in Zotero and selectingScan BibTeX AUX file
. This will create a new collection containing only the references used in the manuscript. You could then in turn export this collection to a bib file and you'd have just the papers you referenced there.I was then able to search/find the tag in zotero. When I click on the tag, it displayed all the entries that were present in the markdown file. I simply selected them and exported them as .bib.
**BibTeX AUX scan**
Missing entries:
- 0
I got the AUX file from Overleaf but I also tried to locally generated it from VS Code with my LaTeX file etc.. Is there any similar issues that ppl are encountering? If anyone knows how to deal with this it'd be great! Thanks!
Update: I figured it out. I'd need to generate a full bib file to compile the LaTeX doc so that I get a correct AUX file.
For zycyc's comment- Aren't we talking about creating a .bib file? I actually get the same "Missing entries" note. But you are saying we create a .bib file first??
For ajcj's comment- I tried to use pandoc to convert .tex to .md but I cannot choose any .md files after clicking "Scan BibTex/Markdown file for References" (where only .aux is clickable). I'm using a Mac.
hopefully this helps.. it's a bit convoluted tho