as_typst: Render an emphatic object to typst

View source: R/core-typst.R

as_typstR Documentation

Render an emphatic object to typst

Description

Render an emphatic object to typst

Usage

as_typst(x, ..., font_size = 10, font = NA, line_spacing = 0.3)

Arguments

x

emphatic object

...

other arguments passed to as.character.emphatic()

font_size

font size in points. default: 10

font

name of font. Default: NA means to just use the default raw font

line_spacing

line spacing in em units. Default: 0.3

Value

Character string containing typst representation

Examples

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

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