Tex
For
TextMobject object, the input is plain text therefore Latex letters and symbols are denoted by a $⋯$ pair. But for
TexMobject object, the input is Latex code and plain text is entered as Latex code \text{⋯}.
Tex Symbol
Binary Operation/Relation Symbols
∗ |
\ast |
≈ |
\approx |
≊ | \approxeq |
≍ | \asymp |
϶ | \backepsilon |
∽ | \backsim |
⋍ | \backsimeq |
⊼ | \barwedge |
∵ | \because |
≬ | \between |
○ | \bigcirc |
▽ | \bigtriangledown |
△ | \bigtriangleup |
◀ | \blacktriangleleft |
▶ | \blacktriangleright |
⊥ | \bot |
⋈ | \bowtie |
◻ |
\Box |
⊡ | \boxdot |
⊟ | \boxminus |
⊞ | \boxplus |
⊠ | \boxtimes |
∙ | \bullet |
≏ | \bumpeq |
≎ | \Bumpeq |
∩ | \cap |
⋒ | \Cap |
⋅ | \cdot |
∘ | \circ |
≗ | \circeq |
≅ | \cong |
∪ | \cup |
⋓ | \Cup |
⋞ | \curlyeqprec |
⋟ | \curlyeqsucc |
⋎ | \curlyvee |
⋏ | \curlywedge |
† | \dag |
⊣ | \dashv |
‡ | \ddag |
⋄ | \diamond |
÷ | \div |
⋇ | \divideontimes |
≐ | \doteq |
≑ | \Doteq |
≑ | \doteqdot |
∔ | \dotplus |
⌆ | \doublebarwedge |
≖ | \eqcirc |
≂ | \eqsim |
⪖ | \eqslantgtr |
⪕ | \eqslantless |
≡ | \equiv |
≒ | \fallingdotseq |
⌢ | \frown |
≥ | \geq |
≧ | \geqq |
⩾ | \geqslant |
≫ | \gg |
⋙ | \ggg |
⪺ | \gnapprox |
≩ | \gneqq |
⋧ | \gnsim |
⪆ | \gtrapprox |
⋗ | \gtrdot |
⋛ | \gtreqless |
⪌ | \gtreqqless |
≷ | \gtrless |
≳ | \gtrsim |
∈ | \in |
⊺ | \intercal |
⨝ | \Join |
⋋ | \leftthreetimes |
≤ | \leq |
≦ | \leqq |
⩽ | \leqslant |
⪅ | \lessapprox |
⋖ | \lessdot |
⋚ | \lesseqgtr |
⪋ | \lesseqqgtr |
≶ | \lessgtr |
≲ | \lesssim |
≪ | \ll |
⋘ | \lll |
⪹ | \lnapprox |
≨ | \lneqq |
⋦ | \lnsim |
⋉ | \ltimes |
∣ | \mid |
⊧ | \models |
∓ | \mp |
≇ | \ncong |
≠ | \ne |
≠ | \neq |
≱ | \ngeq |
≯ | \ngtr |
∋ | \ni |
≰ | \nleq |
≮ | \nless |
∤ | \nmid |
∉ | \notin |
∦ | \nparallel |
⊀ | \nprec |
≁ | \nsim |
⊈ | \nsubseteq |
⊁ | \nsucc |
⊉ | \nsupseteq |
⋪ | \ntriangleleft |
⋬ | \ntrianglelefteq |
⋫ | \ntriangleright |
⋭ | \ntrianglerighteq |
⊬ | \nvdash |
⊭ | \nvDash |
⊮ | \nVdash |
⊯ | \nVDash |
⊙ | \odot |
⊖ | \ominus |
⊕ | \oplus |
⊘ | \oslash |
⊗ | \otimes |
∥ | \parallel |
⟂ | \perp |
⋔ | \pitchfork |
± | \pm |
≺ | \prec |
⪷ | \precapprox |
≼ | \preccurlyeq |
≼ | \preceq |
⪹ | \precnapprox |
⋨ | \precnsim |
≾ | \precsim |
∝ | \propto |
⋌ | \rightthreetimes |
≓ | \risingdotseq |
⋊ | \rtimes |
∼ | \sim |
≃ | \simeq |
∕ | \slash |
⌣ | \smile |
⊓ | \sqcap |
⊔ | \sqcup |
⊏ | \sqsubset |
⊑ | \sqsubseteq |
⊐ | \sqsupset |
⊒ | \sqsupseteq |
⋆ | \star |
⊂ | \subset |
⋐ | \Subset |
⊆ | \subseteq |
⫅ | \subseteqq |
⊊ | \subsetneq |
⫋ | \subsetneqq |
≻ | \succ |
⪸ | \succapprox |
≽ | \succcurlyeq |
≽ | \succeq |
⪺ | \succnapprox |
⋩ | \succnsim |
≿ | \succsim |
⊃ | \supset |
⋑ | \Supset |
⊇ | \supseteq |
⫆ | \supseteqq |
⊋ | \supsetneq |
⫌ | \supsetneqq |
∴ | \therefore |
× | \times |
⊤ | \top |
◁ | \triangleleft |
⊴ | \trianglelefteq |
≜ | \triangleq |
▷ | \triangleright |
⊵ | \trianglerighteq |
⊎ | \uplus |
∝ | \varpropto |
⊲ | \vartriangleleft |
⊳ | \vartriangleright |
∨ | \vee |
⊻ | \veebar |
⊢ | \vdash |
⊨ | \vDash |
⊩ | \Vdash |
⊪ | \Vvdash |
∧ | \wedge |
≀ | \wr |
| |
| |
| |
Example
Code
# folder/file: tut/manim_useful_textmobject_relation_001a.py
from manimlib.scene.scene import Scene
from manimlib.mobject.svg.tex_mobject import TexMobject, TextMobject
class manim_useful_textmobject_relation_001a(Scene):
def construct(self):
text="\\ast\\approx\\approxeq\\asymp\\backepsilon\\backsim\\backsimeq\\barwedge\\because\\between\\bigcirc\\bigtriangledown\\bigtriangleup\\blacktriangleleft\\cr\\blacktriangleright\\bot\\bowtie\\Box\\boxdot\\boxminus\\boxplus\\boxtimes\\bullet\\bumpeq\\Bumpeq\\cap\\Cap\\cdot\\circ\\circeq\\cong\\cup\\cr\\Cup\\curlyeqprec\\curlyeqsucc\\curlyvee\\curlywedge\\dag\\dashv\\ddag\\diamond\\div\\divideontimes\\doteq\\Doteq\\doteqdot\\dotplus\\doublebarwedge\\eqcirc\\cr\\eqsim\\eqslantgtr\\eqslantless\\equiv\\fallingdotseq\\frown\\geq\\geqq\\geqslant\\gg\\ggg\\gnapprox\\gneqq\\gnsim\\gtrapprox\\gtrdot\\gtreqless\\cr\\gtreqqless\\gtrless\\gtrsim\\in\\intercal\\Join\\leftthreetimes\\leq\\leqq\\leqslant\\lessapprox\\lessdot\\lesseqgtr\\lesseqqgtr\\lessgtr\\lesssim\\ll\\lll\\lnapprox\\cr\\lneqq\\lnsim\\ltimes\\mid\\models\\mp\\ncong\\ne\\neq\\ngeq\\ngtr\\ni\\nleq\\nless\\nmid\\notin\\nparallel\\nprec\\nsim\\nsubseteq\\nsucc\\cr\\nsupseteq\\ntriangleleft\\ntrianglelefteq\\ntriangleright\\ntrianglerighteq\\nvdash\\nvDash\\nVdash\\nVDash\\odot\\ominus\\oplus\\oslash\\cr\\otimes\\parallel\\perp\\pitchfork\\pm\\prec\\precapprox\\preccurlyeq\\preceq\\precnapprox\\precnsim\\precsim\\propto\\rightthreetimes\\risingdotseq\\rtimes\\cr\\sim\\simeq\\slash\\smile\\sqcap\\sqcup\\sqsubset\\sqsubseteq\\sqsupset\\sqsupseteq\\star\\subset\\Subset\\subseteq\\cr\\subseteqq\\subsetneq\\subsetneqq\\succ\\succapprox\\succcurlyeq\\succeq\\succnapprox\\succnsim\\succsim\\supset\\Supset\\supseteq\\cr\\supseteqq\\supsetneq\\supsetneqq\\therefore\\times\\top\\triangleleft\\trianglelefteq\\triangleq\\triangleright\\trianglerighteq\\uplus\\cr\\varpropto\\vartriangleleft\\vartriangleright\\vee\\veebar\\vdash\\vDash\\Vdash\\Vvdash\\wedge\\wr"
self.add(TexMobject("%s" %text.replace("\\","\\backslash ").replace("\\backslash cr","\cr")).shift([0,2,0]).scale(0.4))
self.add(TexMobject("%s" %text).shift([0,-2,0]).scale(0.4))
Output