This is a simple wrapper around extract_mandatory_LaTeX_argument
and extract_optional_LaTeX_argument
.
extract_LaTeX_argument(tex_lines, command_name, n = 1L,
optional = FALSE)
LaTeX text.
Name of command without backslash \textbf
corresponds to command_name = "textbf"
.
Which argument to extract, if exists.
Extract the optional argument, rather than the mandatory arguments.