replace_LaTeX_argument: Replace contents of LaTeX argument

Description Usage Arguments Value

Description

Replace contents of LaTeX argument

Usage

1
2
replace_LaTeX_argument(tex_lines, command_name, replacement,
  .dummy_replacer = "ZzZz")

Arguments

tex_lines

Lines of text (as from readLines).

command_name

Name of the command (without backslash) whose first argument will be replaced.

replacement

Replacement for the contents of each argument.

.dummy_replacer

What to replace every letter in the argument with during parsing. Selecting a .dummy_replacer that is present in tex_lines is an error.

Value

A character vector with the first argument of command_name replaced with replacement.


HughParsonage/grattanReporter documentation built on May 7, 2019, 5:02 a.m.