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

Would it be possible to have this write out a .bib file in the current directory? #41

Open
Peter-Barrow opened this issue Oct 6, 2022 · 1 comment

Comments

@Peter-Barrow
Copy link

For managing citations it's often useful to maintain a handful of topic specific bibtex files, it would then be useful if the keys that are used in the current file could be then be exported to a local .bib file to maintain documents with only the keys in that are being used.
As an example, I've recently started using this extension with tectonic in the hopes of being able to bundle only the relevant files together for distribution, it would be useful to not have to bundle very large bibtex files.

@noahares
Copy link
Collaborator

noahares commented Oct 7, 2022

I can see your use-case, but this might be beyond what this plugin is designed to do. It only uses some parsing to get the entry in the format that is needed for a tex or md file. However, there is an option to get the whole entry and paste it instead of just the ref, so maybe that could be tweaked to add the entry to a file when it is referenced in the code. This would not extract anything, so it would have to be done "as you write". I will give this some thought.

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