Skip to contents

Renders LaTeX math expressions as VMobject Bezier curves. Uses the existing compile_latex_svg + import_svg_file pipeline to convert LaTeX to SVG paths, then parses those into submobjects.

Super classes

manimR::MObject -> manimR::VMobject -> MathTex

Public fields

tex_string

The LaTeX expression

tex_template

LaTeX preamble template name

Methods

Inherited methods


Method new()

Create a MathTex object

Usage

MathTex$new(
  tex_string,
  color = WHITE,
  font_size = DEFAULT_FONT_SIZE,
  position = ORIGIN,
  ...
)

Arguments

tex_string

LaTeX math string (without $ delimiters)

color

Color

font_size

Font size

position

Position

...

Additional args


Method get_part()

Get the i-th submobject (e.g. individual glyph path)

Usage

MathTex$get_part(i)

Arguments

i

Index


Method get_parts_by_indices()

Get parts matching specific indices (for TransformMatchingShapes)

Usage

MathTex$get_parts_by_indices(indices)

Arguments

indices

Integer vector of part indices


Method clone()

The objects of this class are cloneable with this method.

Usage

MathTex$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.