patchLog {patchDVI} | R Documentation |
Patch a LaTeX log file.
Description
This function parses a standard LaTeX log file and applies patches to it based on an Sweave concordance, so that error messages and warnings refer to the ‘.Rnw’ file rather than the ‘.tex’ file.
Usage
patchLog(f, newname = f, concords = NULL, max_print_line = 79, Cstyle = FALSE)
Arguments
f |
The filename of the log file. |
newname |
The filename to write the patched file to. |
concords |
Concordances read from the ‘.dvi’ or ‘.pdf’. If |
max_print_line |
The line length at which the latex compiler will wrap error messages. |
Cstyle |
If |
Details
The parsing is based on the log parser written by
Jonathan Kew, Stefan Löffler, Antonio Macrì, and Henrik Skov Midtiby for
TeXWorks. That parser assumes error lines are reported in the standard format;
C style errors are not currently supported. patchLog
can detect C style errors, but standard format is assumed by
default, and is preferred.
Value
This function is called mainly for the side effect of writing the
new log file. It returns the concords
object invisibly.
Author(s)
Duncan Murdoch