Check consecutive typeset words
check_consecutive_words(
path = ".",
latex_file = NULL,
md5sum.ok = NULL,
outfile = NULL,
outfile.append = FALSE
)
NULL
if the LaTeX
document does not create a PDF with lines repeated.
An error if words are repeated on consecutive lines, together with cat()
output of the offending lines. The output is presented in 'stanzas':
'<Repeated word>'
<Context>
for example a document that results in the following lines, notably the repetition of household, the output would be:
'household'
affordable. This `mortgage burden' is often defined as the proportion of
household income spent on repaying a mortgage. Depending on the
household income measure used, the mortgage burden on a newly
purchased first home, assuming a person borrows 80 per cent of the
value of the home, is currently lower than much of the period between
Lastly the error message contains the md5sum
of the file is returned in the error message, so it can be supplied to md5sum.ok
.
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.
A file to which the output can be saved. If NULL
, the default, the output is printed to the console (and not saved).
(logical, default: FALSE
). Append or overwrite outfile
if specified? If FALSE
, the default, and file exists, outfile
will be overwritten.