parseLatex function parses LaTeX source, producing a
structured object; deparseLatex reverses the process. The
latexToUtf8 function takes a LaTeX object, and processes a number
of different macros to convert them into the corresponding UTF-8
characters.parseLatex(text, filename = deparse(substitute(text)),
verbose = FALSE,
verbatim = c("verbatim", "verbatim*",
"Sinput", "Soutput"))
deparseLatex(x, dropBraces = FALSE)
latexToUtf8(x)TRUE, print debug error messages.
"LaTeX" object.
"LaTeX" object.
parseLatex() function returns a recursive object of class
"LaTeX". Each of the entries in this object will have a
"latex_tag" attribute identifying its syntactic role. The deparseLatex() function returns a single element character
vector, possibly containing embedded newlines. The latexToUtf8() function returns a modified version of the
"LaTeX" object that was passed to it.\verb macro (with
single character delimiters), and environments whose names are listed
in the verbatim argument.