View source: R/texlog_warnings.R
texlog_warnings | R Documentation |
Display (if any are found) notes, warnings and errors from some_latex_file.log
texlog_warnings( file, nlines_error = 4, nlines_box = 7, nlines_warning = 3, ... )
file |
Char: file name (.Rnw, .tex or .log) |
nlines_error |
Integer: number of lines for an error. DEFAULT: 4 |
nlines_box |
Integer: number of lines for over/underfull box messages. DEFAULT: 7 |
nlines_warning |
Integer: number of lines for other messages. DEFAULT: 3 (may not always be enough) |
... |
Further arguments passed to |
Vector of character strings, one per warning
Berry Boessenkool, berry-b@gmx.de, Nov 2017 + Jul 2021
Test log files from https://github.com/stefanhepp/pplatex/tree/master/test
testlog <- function(logname, ...) { logf <- system.file(paste0("extdata/",logname,".log"), package="knitPres") texlog_warnings(logf, ...) } testlog("no_messages") testlog("blitzaerror") testlog("lotsoferrors", nlines_error=3) testlog("lotsoferrors", nlines_error=4) # more info, less duplicates testlog("pgferror") testlog("superseterror") testlog("superseterror", nlines_box=0) # no over/underful box warnings testlog("superseterror", nlines_warning=5) testlog("hashtagURL") # not formatted as error!!
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.