Shell and Make utilities to inspect a LaTeX manuscript.
- Word count via TeXcount (excludes bibliography, headers, captions, etc.)
- Flags \label{}s declared but never used (e.g., via \ref)
- Flags duplicated \label{} entries
- Checks that all URLs in the manuscript are live
- Flags repeated words, bigrams, trigrams (e.g., "the the")
- Finds lines with hardcoded numbers for proofing
- Lists acronyms used, with frequency counts
- Runs Textidote for grammar and LaTeX style checks (via LanguageTool)
- Swaps citation style between author-year and numeric (and back)
Adapted from Jonathan Dingel's logbook Makefile: https://github.com/jdingel/projecttemplate/blob/master/paper/reviewing/Makefile.
See this note for more details.
- The manuscript is
./main.tex(if not, the scripts need to be changed).
Comes with a Makefile, with quick CLI access to the utilities, some of which call scripts from https://github.com/LSYS/texCheckmate/tree/main/inspecting.
acronyms Find and tally acronymsaynumeric Change author-year to numeric citationcleantex Clean aux output files in LaTex compilationdueto Find "due to"s; Did you mean "because of", "owing to", or "from"?duplicated_labels Check for duplicated labelshardcodednumbers Find hardcoded numbershelp Show this help message and exitinspect Do all inspections of manuscriptlinkchecker Check URLsnumericay Change author-year to numeric citationrepeated_strings Check for repeated wordstextidote Check with textidoteunreferenced_labels Check for label referencingwordcount Wordcount via texcountgit clone https://github.com/LSYS/texCheckmate.git
mv texCheckmate/*.
rm -r texCheckmateTo download the utilities without cloning:
- Download the zipped repo
wget -v https://github.com/LSYS/texCheckmate/archive/refs/heads/main.zip- Unzip
unzip main.zip- Remove the
README.md& repo CI
rm texCheckmate-main/README.md
rm -r texCheckmate-main/.github- Move to ./
mv texCheckmate-main/*.- Clean up
rm -r texCheckmate-main
rm main.zipAll together:
wget -v https://github.com/LSYS/texCheckmate/archive/refs/heads/main.zip
unzip main.zip
rm texCheckmate-main/README.md
rm -r texCheckmate-main/.github
mv texCheckmate-main/*.
rm -r texCheckmate-main
rm main.zip