Skip to contents

Wraps a string in $...$ so plotly.js renders it with MathJax (requires config(p, mathjax = "local"), or "cdn"; save_image() needs nothing).

Usage

TeX(x)

Arguments

x

A character string of LaTeX.

Value

The wrapped string.

Examples

go_figure() |>
  update_layout(title = TeX("\\alpha + \\beta x")) |>
  config(mathjax = "local")