gt_latex_dependencies: Get the LaTeX dependencies required for a *gt* table

View source: R/helpers.R

gt_latex_dependenciesR Documentation

Get the LaTeX dependencies required for a gt table


When working with Rnw (Sweave) files or otherwise writing LaTeX code, including a gt table can be problematic if we don't have knowledge of the LaTeX dependencies. For the most part, these dependencies are the LaTeX packages that are required for rendering a gt table. The gt_latex_dependencies() function provides an object that can be used to provide the LaTeX in an Rnw file, allowing gt tables to work and not yield errors due to missing packages.




Here is an example Rnw document that shows how the gt_latex_dependencies() can be used in conjunction with a gt table:




<<results='asis', echo=FALSE>>=


<<results='asis', echo=FALSE>>=



An object of class knit_asis.

Function ID


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(), escape_latex(), from_column(), google_font(), html(), md(), nanoplot_options(), pct(), px(), random_id(), stub(), system_fonts()

gt documentation built on June 22, 2024, 11:11 a.m.