manimでtikzを使用しようとしています。私が使用したmanimのバージョンは3feb2019です。tex_template ファイルに必要なパッケージを追加しました。しかし、それはエラーをスローします:
IndexError: リスト インデックスが範囲外です
このバグを解決する方法がわかりません。誰でも私を助けることができますか?
編集:ここに私がレンダリングしようとしたコードがあります。
# These are in the example_scenes.py file
class TikzMobject(TextMobject):
CONFIG = {
"stroke_width":3,
"fill_opacity":0,
"stroke_opacity":1
}
class TikzExample3(Scene):
def construct(self):
example_tex = TikzMobject(
r"""
\begin{tikzpicture}
\draw (-1,0)--(1,0);
\end{tikzpicture}
"""
)
self.play(Write(example_tex))
self.wait()
manim の最新バージョンと 3feb バージョンの両方を試しましたが、同じエラーが発生しました: list index out of range。そして、出力 tex ファイルで tikz コードをコンパイルできます。使用したプラットフォームは Windows です。