Skip to content

Commit 8e69574

Browse files
author
Aron Fischer
committed
BasicTexTemplate does not need to be a class
1 parent 10c5c28 commit 8e69574

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

manim/utils/tex_templates.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,14 @@
1111
# This file makes TexTemplateLibrary and TexFontTemplates available for use in manim Tex and MathTex objects.
1212

1313

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"""
14+
def BasicTexTemplate():
15+
""" Returns a simple Tex Template with only basic AMS packages"""
16+
preamble = r"""
1917
\usepackage[english]{babel}
2018
\usepackage{amsmath}
2119
\usepackage{amssymb}
2220
"""
23-
preamble = kwargs.pop("preamble", basic_headers)
24-
super().__init__(*args, preamble=preamble, **kwargs)
21+
return TexTemplate(preamble=preamble)
2522

2623

2724
# TexTemplateLibrary

0 commit comments

Comments
 (0)