escapeLatexSpecials: Escape special LaTeX characters for use in LaTeX labels

Description Usage Arguments Value References

View source: R/tex-utils.R

Description

Escape special LaTeX characters for use in LaTeX labels

Usage

1

Arguments

x

String or vector of strings.

Value

String or vector of strings with all occurences of "#", "$", "%", "&", "~", "_", "^", ">", "<" replaced by escaped counterparts which should render fine when used in a tikz plot, for example.

References

from https://stackoverflow.com/questions/36338629/escaping-special-latex-characters-in-r


hadron documentation built on Jan. 13, 2021, 8 a.m.