Check latexmk logs for common errors
check_log.Rd
Uses regular expressions to search log files for common errors:
Arguments
- slide_file
[character(1)]
Name of a (single) slide, with or without.tex
extension. See examples offind_slide_tex()
.- before, after
[integer(1)]
Number of log lines to displaybefore
andafter
the line found via regex. Defaults to 0 linesbefore
, 1 lineafter.
Value
A character
vector with one element per match, with individual lines separated by \\n
within each element.
If no errors are detected, an empty character(0)
is returned.
Details
"^! Undefined control sequence"
: Typo, missing package or preamble (includinglatex-math
), or command not defined."not found"
: Implying a missing figure or other included file, maybe due to misspecified filename via Overleafs autocompletion (slides/<topic>/figure/
path instead offigure/
) or file not committed to git."^! Missing $ inserted"
: Missing$
delimiter for math"! LaTeX Error:"
: A generic errorRunaway argument
: Often caused by missing closing parantheses.