JonasEngstrom / overleaf-article-template

A template for an RStudio project using R Markdown to generate LaTeX files for synchronization with Overleaf.
MIT License
0 stars 0 forks source link

Make a script to extract references included in an article #20

Open JonasEngstrom opened 10 months ago

JonasEngstrom commented 10 months ago

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>

Defaults are as follows: