在需要換行的地方插入"\\\"即可。
class example(Scene): def construct(self): text=TextMobject('This is the first raw. \\\ And this is the second raw.') self.play(Write(text),run_time=5) self.wait()
經過測試,是windows下的路徑問題,將輸出路徑的“\”改爲“/”即可,因爲latex在windows下遇到帶""的路徑會無法識別… 具體: 在manim/manimlib/constant.py文件下的42行 TEX_DIR