Skip to contents

Represents LaTeX mathematical notation in a scene.

Represents LaTeX mathematical notation in a scene. This object stores the vector data (Bezier curves) of the rendered LaTeX.

Super classes

manimR::MObject -> manimR::VMobject -> LaTeXObject

Public fields

latex

The LaTeX string

size

Font size scale

image_path

Path to compiled SVG (kept for ref)

terms

Parsed terms for highlighting

Methods

Inherited methods


Method new()

Create a new LaTeXObject

Usage

LaTeXObject$new(
  latex,
  color = "#FFFFFF",
  position = c(0, 0, 0),
  size = 1,
  opacity = 1,
  ...
)

Arguments

latex

LaTeX string

color

Text color

position

Position

size

Size scale

opacity

Opacity

...

Additional parameters


Method compile_vector()

Compile the LaTeX string into vector paths

Usage

LaTeXObject$compile_vector()


Method get_latex()

Get the LaTeX string

Usage

LaTeXObject$get_latex()


Method get_term()

Get a specific term

Usage

LaTeXObject$get_term(term_string)

Arguments

term_string

The term to find


Method clone()

The objects of this class are cloneable with this method.

Usage

LaTeXObject$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.