escape_latex: Perform LaTeX escaping

View source: R/helpers.R

escape_latexR Documentation

Perform LaTeX escaping

Description

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

Usage

escape_latex(text)

Arguments

text

LaTeX text

⁠vector<character>⁠ // required

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

Value

A character vector.

Function ID

8-28

Function Introduced

v0.2.0.5 (March 31, 2020)

See Also

Other helper functions: adjust_luminance(), cell_borders(), cell_fill(), cell_text(), cells_body(), cells_column_labels(), cells_column_spanners(), cells_footnotes(), cells_grand_summary(), cells_row_groups(), cells_source_notes(), cells_stub_grand_summary(), cells_stub_summary(), cells_stubhead(), cells_stub(), cells_summary(), cells_title(), currency(), default_fonts(), define_units(), from_column(), google_font(), gt_latex_dependencies(), html(), md(), nanoplot_options(), pct(), px(), random_id(), stub(), system_fonts()


gt documentation built on Oct. 7, 2023, 9:07 a.m.