Extract mandatory argument II
extract_mandatory_LaTeX_argument(
tex_lines,
command_name,
n = 1L,
by.line = FALSE,
parsed_doc = NULL
)
A character vector of lines as read from a LaTeX document.
The command name (no backslash or opening brace).
Which integer to
If FALSE
, the default, each row of the data.table
returned
has the entire contents of the argument in extract
column. If TRUE
,
the contents is split as it is in the document; arguments over multiple lines in the
document are split over multiple rows in the data.table
returned.
A parsed document (from parse_tex
).
parse_tex
. Use this argument if the cost of running parse_tex
is
expensive (such as repeatedly over the same document).