katex: KaTeX code

View source: R/selectControl.R

katexR Documentation

KaTeX code

Description

Create an object to be decoded by KaTeX.

Usage

katex(x)

Arguments

x

string, some KaTeX code (this is similar to LaTeX)

Value

A list containing the url-encoding of x.

Examples

library(shinySelect)
choices <- HTMLchoices(
  values = list("alpha", "beta", "gamma"),
  labels = list(katex("\\alpha"), katex("\\beta"), katex("\\gamma"))
)

shinySelect documentation built on Nov. 18, 2022, 5:10 p.m.