Learn R Programming

parseLatex (version 0.4.1)

get_leftovers: Retrieve source from beyond the end of the document.

Description

Retrieve source from beyond the end of the document.

Usage

get_leftovers(text, items = parseLatex(text))

Value

The part of text that follows \end{document}

other than a single newline, named according to the original line numbers.

Arguments

text

Character vector holding source.

items

Parsed version of text.

Examples

Run this code
# line:  1                  2                3
text <- "\\begin{document}\n\\end{document}\nnotes"
get_leftovers(text)

Run the code above in your browser using DataLab