R/locate_mandatory_LaTeX_argument.R
locate_mandatory_LaTeX_argument.Rd
Provides the locations of LaTeX commands with mandatory arguments.
locate_mandatory_LaTeX_argument(tex_lines, command_name, n = 1L, parsed_doc = NULL)
tex_lines | A character vector of a LaTeX document,
-- for example as obtained from |
---|---|
command_name | The command (without backslash) whose arguments' locations are desired. |
n | Integer vector: which argument(s) to locate. If |
parsed_doc | The result of |