When submitting a paper you might not want to send all the references that have been synced from e.g. Zotero. Make a script that exports just the references with cite keys that are included in main.tex or another tex file. Ideally the script can be run several times, if a reference is added or removed during revisions after peer review.
Call the script as follows:
./extract_references.py -t/--tex <name of tex file> -i/--input <name of input bib file> -o/--output <name of output bib file>
When submitting a paper you might not want to send all the references that have been synced from e.g. Zotero. Make a script that exports just the references with cite keys that are included in main.tex or another tex file. Ideally the script can be run several times, if a reference is added or removed during revisions after peer review.
Call the script as follows:
Defaults are as follows:
--tex
=main.tex
--input
=references.bib
--output
=extracted_references.bib