AlexChalk / academic-article-template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Academic Article Template

Useful comands:

Export bibliography

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

Misc

latexmk article.tex
rm *.aux ; rm *.bbl ; rm *.blg ; rm *.ccf ; rm *.fdb_latexmk ; rm *.fls ; rm *.log ; rm *.out ; rm *.synctex.gz

Relevant projects:

About


Languages

Language:Shell 52.0%Language:TeX 45.2%Language:Perl 2.8%