본문 바로가기

Programming/Manim Lectures

[05-2] Text, Equation

반응형

There are 3 classes for text and equation in Manim.

 

  • Text
  • TexMobject
  • TextMobject

Text class can only handle normal characters, not formulas. Instead, you can specify and use all fonts on your PC, and rendering is fast. (Rendering: collect multiple scenes into a video)

 

TexMobject class is a formula-only class. All the passed strings are treated as LaTex formula strings.

LaTex expression: On a computer, a method of expressing a formula using promised keywords. a2 is expressed as 'a^2'

 

TextMobject class recognizes the string received as an argument as plain text, and in the case of LaTex string, it can be expressed between $ and $.

 

It is convenient to use Text when dealing with normal characters without a formula such as "Hello World".

It is convenient to use TexMobject when there are only formulas and English characters.

If you need to use formulas and text, you should use TextMobject.

 

[05-2-A] Text: for general text string

[05-2-B]TexMobject: for equation

[05-2-C] TextMobject: for Equation and Text

 


Next: [05-2-A] Text: for general text string

 

[05-2-A] Text: for general text string

Text class can only handle normal characters, not formulas. Instead, you can specify and use all fonts on your PC, and rendering is fast. (Rendering: Collecting multiple scenes into a video) Therefo..

infograph.tistory.com

Go To: [99] Table of Contents

반응형