Learn R Programming

gt (version 0.2.2)

escape_latex: Perform LaTeX escaping

Description

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

Usage

escape_latex(text)

Arguments

text

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

Value

A character vector.

Function ID

7-22

See Also

Other Helper Functions: adjust_luminance(), cell_borders(), cell_fill(), cell_text(), cells_body(), cells_column_labels(), cells_column_spanners(), cells_grand_summary(), cells_row_groups(), cells_stubhead(), cells_stub(), cells_summary(), cells_title(), currency(), default_fonts(), google_font(), gt_latex_dependencies(), html(), md(), pct(), px(), random_id()