as_latex: Render an emphatic object to Latex

View source: R/core-latex.R

as_latexR Documentation

Render an emphatic object to Latex

Description

Render an emphatic object to Latex

Usage

as_latex(x, ..., font_size = NULL)

Arguments

x

emphatic object

...

other arguments passed to as.character.emphatic()

font_size

Integer value indicating font size measured in points. Default: NULL.

Value

single character string containing a latex representation

Examples

hl_diff("hello", "there") |>
  as_latex() |>
  cat()

coolbutuseless/emphatic documentation built on Dec. 27, 2024, 1:18 a.m.