R/extract_optional_LaTeX_argument.R
extract_optional_LaTeX_argument.Rd
Extract optional argument
extract_optional_LaTeX_argument(tex_lines, command_name, n = 1L, by.line = FALSE)
tex_lines | A character vector reading from a LaTeX document. |
---|---|
command_name | Name of command (without backslash) |
n | Which optional argument to extract. |
by.line | Should the output be one row per command ( |