powered by
Remove excess whitespace recursively
reduce_whitespace(items, recursive = TRUE, all = FALSE)
items with double spaces or double newlines set to single, and trailing spaces removed (or all whitespace removed, if all is TRUE).
items
all
TRUE
A LaTeX2 object.
Apply to all lists within items.
If TRUE, remove all white space, not just doubles.
parsed <- parseLatex("a {b\n\nc}") parsed reduce_whitespace(parsed)
Run the code above in your browser using DataLab