We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10c5c28 commit 8e69574Copy full SHA for 8e69574
manim/utils/tex_templates.py
@@ -11,17 +11,14 @@
11
# This file makes TexTemplateLibrary and TexFontTemplates available for use in manim Tex and MathTex objects.
12
13
14
-class BasicTexTemplate(TexTemplate):
15
- """A simple Tex Template with only basic AMS packages"""
16
-
17
- def __init__(self, *args, **kwargs):
18
- basic_headers = r"""
+def BasicTexTemplate():
+ """ Returns a simple Tex Template with only basic AMS packages"""
+ preamble = r"""
19
\usepackage[english]{babel}
20
\usepackage{amsmath}
21
\usepackage{amssymb}
22
"""
23
- preamble = kwargs.pop("preamble", basic_headers)
24
- super().__init__(*args, preamble=preamble, **kwargs)
+ return TexTemplate(preamble=preamble)
25
26
27
# TexTemplateLibrary
0 commit comments