Replace contents of LaTeX argument
replace_LaTeX_argument(tex_lines, command_name, replacement, arg = 1L,
.dummy_replacer = "ZzZz")
Lines of text (as from readLines
).
Name of the command (without backslash) whose first argument will be replaced.
Replacement for the contents of each argument.
The (mandatory) argument that will be replaced.
What to replace every letter in the argument with during parsing.
Selecting a .dummy_replacer
that is present in tex_lines
is an error.
A character vector with the first argument of command_name
replaced with replacement
.