Check consecutive typeset words
check_consecutive_words(path = ".", latex_file = NULL, md5sum.ok = NULL)
Path containing the latex file.
The LaTeX file (without path) whose output will be checked.
The output of md5sum
of an acceptable LaTeX file. Since some repeated words will be spurious,
you can use the md5sum of the output of this function.
An error if words are repeated on consecutive lines, together with cat() output of the offending lines.
Lastly the tools::md5sum
of the file is returned in the error message, so it can be supplied to md5sum.ok
.