Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Bugfix: TeXTemplate class did not include inputenc / fontenc

Philipp Imhof0138fe952582
diff --git a/manim/utils/tex.py b/manim/utils/tex.py
index a3ec88af3..0c4217644 100644
--- a/manim/utils/tex.py
+++ b/manim/utils/tex.py
@@ -103,7 +103,7 @@ class TexTemplate(TexTemplateFromFile):
"xcolor",
"microtype",
],
- "tex_packages": [],
+ "tex_packages": [["inputenc", ["utf8"]], ["fontenc", ["T1"]]],
"ctex_packages": [["ctex", ["UTF8"]]],
"common_preamble_text": r"\linespread{1}" "\n",
"tex_preamble_text": r"\DisableLigatures{encoding = *, family = *}" "\n",