showErrors: Show errors in parsed Latex object

View source: R/showErrors.R

showErrorsR Documentation

Show errors in parsed Latex object

Description

Show errors in parsed Latex object

Usage

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

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?

Value

A list of paths to errors, invisibly.

Examples

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

parseLatex documentation built on June 8, 2025, 10:19 a.m.