patchLog | R Documentation |
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.
patchLog(f, newname = f, concords = NULL, max_print_line = 79, Cstyle = FALSE)
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 |
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.
This function is called mainly for the side effect of writing the
new log file. It returns the concords
object invisibly.
Duncan Murdoch
patchDVI
, patchSynctex
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.