Check latexmk logs for common errors
check_log.RdUses regular expressions to search log files for common errors:
Arguments
- slide_file
[character(1)]Name of a (single) slide, with or without.texextension. See examples offind_slide_tex(). Can also be a direct file path to enable use of this function outside rigid folder hierarchy.- before, after
[integer(1)]Number of log lines to displaybeforeandafterthe 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.