小编Tal*_*men的帖子

与 Manim 的长文本

在使用Manim库的社区版渲染长文本时,我注意到信息渲染在可见窗口之外,效果相当不令人满意。我怀疑问题的根源是 Latex 未能确保文本保留在 pdf 边界内。有没有一种方法可以自动换行?我不想手动指定换行符,因为文本将不再显得合理。

这是一个最小的例子:

在此输入图像描述

from manim import *


class Edge_Wise(Scene):
    def construct(self):
        text=Tex("\\text{First we conceptualize an undirected graph  ${G}$  as a union of a finite number of line segments residing in  ${\\mathbb{{{C}}}}$ . By taking our earlier parametrization, we can create an almost trivial extension to  ${\\mathbb{{{R}}}}^{{{3}}}$ . In the following notation, we write a bicomplex number of a 2-tuple of complex numbers, the latter of which is multiplied by the constant  ${j}$ .  ${z}_{{0}}\\in{\\mathbb{{{C}}}}_{{>={0}}}$  is an …
Run Code Online (Sandbox Code Playgroud)

python latex manim

6
推荐指数
1
解决办法
4905
查看次数

标签 统计

latex ×1

manim ×1

python ×1