Skip to contents

Text may contain several characters with special meanings in LaTeX. escape_latex() will transform a character vector so that it is safe to use within LaTeX tables.

Usage

escape_latex(
  text,
  unicode_conversion = getOption("gt.latex.unicode_convert", default = FALSE)
)

Arguments

text

LaTeX text

vector<character> // required

A character vector containing the text that is to be LaTeX-escaped.

unicode_conversion

Boolean

scalar<boolean> // default: TRUE

A boolean value indicating whether unicode in text should be turned into LaTeX.

Value

A character vector.

Function ID

8-29

Function Introduced

v0.2.0.5 (March 31, 2020)