[英]Manim MathTex is not giving right output for differential equation
所以我想要如圖所示的微分方程的 output 但我沒有得到正確的方程 output 我也嘗試了 latex 代碼但仍然無法正常工作
from manim import *
class CreateCircle(Scene):
def construct(self):
eq_one = MathTex("a^{2}+b^{2}=1")
eq_two= MathTex("\\frac{\text{d}^{2}x}{\text{d}y}","+","\\frac{\text{d}^{2}y}{\text{d}x}=","1")
eq_two.next_to(eq_one,DOWN)
self.wait()
self.play(Write(eq_one))
self.wait(3)
self.play(Write(eq_two))
self.wait(2)[output Image][1][Desired Image i want of differential equation][1]
歡迎來到 SO! 您忘記轉義\
字符。
from manim import *
class Test(Scene):
def construct(self):
eq_one = MathTex("a^{2}+b^{2}=1")
eq_two= MathTex("\\frac{\\text{d}^{2}x}{\\text{d}y}","+","\\frac{\\text{d}^{2}y}{\\text{d}x}=","1")
eq_two.next_to(eq_one,DOWN)
self.wait()
self.play(Write(eq_one))
self.wait(3)
self.play(Write(eq_two))
self.wait(2)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.