Learn R Programming

parseLatex (version 0.4.1)

showErrors: Show errors in parsed Latex object

Description

Show errors in parsed Latex object

Usage

showErrors(
  x,
  repeatSrcline = FALSE,
  errorMsgTwice = FALSE,
  lineNumbers = TRUE,
  showAllLines = FALSE
)

Value

A list of paths to errors, invisibly.

Arguments

x

A LaTeX2 object.

repeatSrcline

Repeat the source line when it has multiple errors?

errorMsgTwice

Show the error message at both the start and end of a multiline error?

lineNumbers

Show line numbers on output?

showAllLines

Show all lines whether they have errors or not?

Examples

Run this code
parsed <- parseLatex("\\end{baz} \\begin{foo} \n \\begin{bar}  $1+1\n4",
                     recover = TRUE, showErrors = FALSE)
showErrors(parsed)

Run the code above in your browser using DataLab