Extract optional argument
extract_optional_LaTeX_argument(tex_lines, command_name, n = 1L,
by.line = FALSE)
A character vector reading from a LaTeX document.
Name of command (without backslash)
Which optional argument to extract.
Should the output be one row per command (FALSE
, the default),
with extracts concatenated via paste0(..., collapse = "")
or one row per line per command?