Automatic checker of a latex project. Features:
- Given the
main.tex
as the entry tex, recursively do spell-check for all the included tex source files.- Color highlight of suspicious words.
- Interactive mode to gracefully check files one by one.
- Validate the References (
bibitem
s) by searching the bibtex from the internet and comparing with this project's.bib
file.- Validate whether or not the paper title, author names and the publication year are correct.
aspell
ripgrep
pandoc
(>2.16)bibtex-dblp
(customized version as submodule)gscholar
- python3
$ bash setup.sh
Please use python3 checker.py --help
to see details of the flags.
--tex
specify doing spell check for tex.--root
specify the entry point of the tex.--words
specify a file that contains words which will be skipped when checking.- The format of the file is one word per line and
##
as comment, see.me.spellignore
as an example.
- The format of the file is one word per line and
--no_comment
will do a preprocessing to avoid checking commented tex contents if specified. (line number retains as its original)
$ python3 checker.py --tex --root <paper.tex> --words <./.me.spellignore> --interactive
Note: already added sleep(30)
for searching each paper's title, and please avoid abusing.
By default, will use dblp. Google scholar is also supported, yet please be aware of the risk of being banned when regarded as abuse (pretty easy to be banned practically).
--bibaux
specify doing check for bibtex--root
: note please supply theaux
file generated by normal building process of a latex project (when generating the pdf), which contains the processed list ofbibcite
.--bib
: supply the.bib
file of the same latex project.
# run the test cases
# cd tests; bash test.sh
python3 checker.py --bibaux --root <paper.aux> --bib <paper.bib>