sanitize=TRUE
to replace
special LaTeX characters (such as the comment characterwhere the user does not have direct control over the generated text.sanitizeTexString(string, strip=getOption("tikzSanitizeCharacters"),
replacement=getOption("tikzReplacementCharacters"))
sanitizeTexString
searches character by character through a string
replacing each occurrence of a special character contained in
strip[i]
with the corresponding replacement value in
replacement[i]
. tikzDevice calls back this function for every piece
of text when the sanitize option is TRUE. See tikz
for more
information on the default special characters and replacement values.By default, `tikzSanitizeCharacters` replaces the following characters:
With the contents of `tikzReplacementCharacters`:
options
function.tikz