A community-maintained Python framework for creating mathematical animations.
fix: return value of TexTemplate.add_to... (#3343)
Uwe Zimmermann3b4fca2c75f6
diff --git a/manim/utils/tex.py b/manim/utils/tex.pyindex d8751e091..cd0944dcd 100644--- a/manim/utils/tex.py+++ b/manim/utils/tex.py@@ -139,6 +139,7 @@ class TexTemplate:else:self.preamble += "\n" + txtself._rebuild()+ return selfdef add_to_document(self, txt: str):"""Adds txt to the TeX template just after \\begin{document}, e.g. ``\\boldmath``@@ -150,6 +151,7 @@ class TexTemplate:"""self.post_doc_commands += "\n" + txt + "\n"self._rebuild()+ return selfdef get_texcode_for_expression(self, expression: str):"""Inserts expression verbatim into TeX template.