Academic Article Template
papis --clear-cache
papis export --all --format json | jq 'map(.id = .ref)' > bibliography.json
Generate unused biblatex file for lsp integration:
pandoc bibliography.json --from csljson --to biblatex --standalone --output bibliography.bib --verbose
Generate unhyphenated file with no footnote page breaks (for extra-cautious wordcount/abbreviation analysis):
latexmk -usepretex='\hyphenpenalty=10000 \interfootnotelinepenalty=10000' -interaction=batchmode -synctex=1 article.tex
Remove unused title abbreviations from bibliography:
./ts-trimmer.sh article.pdf bibliography.json
"microsoft-word-style" wordcount:
pdftotext article.pdf - | sed 's/•//' | sed --regexp-extended 's/^[[:digit:]]+[[:space:]]*$//' | wc --words
latexmk article.tex
rm *.aux ; rm *.bbl ; rm *.blg ; rm *.ccf ; rm *.fdb_latexmk ; rm *.fls ; rm *.log ; rm *.out ; rm *.synctex.gz