Skip to content

Commit 10c5c28

Browse files
author
Aron Fischer
committed
move basic template to tex_templates.py
1 parent 405c4f5 commit 10c5c28

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

manim/utils/tex.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
__all__ = [
44
"TexTemplate",
55
"TexTemplateFromFile",
6-
"BasicTexTemplate",
76
]
87

98

@@ -166,19 +165,6 @@ def get_texcode_for_expression_in_env(self, expression, environment):
166165
)
167166

168167

169-
class BasicTexTemplate(TexTemplate):
170-
"""A simple Tex Template with only basic AMS packages"""
171-
172-
def __init__(self, *args, **kwargs):
173-
basic_headers = r"""
174-
\usepackage[english]{babel}
175-
\usepackage{amsmath}
176-
\usepackage{amssymb}
177-
"""
178-
preamble = kwargs.pop("preamble", basic_headers)
179-
super().__init__(*args, preamble=preamble, **kwargs)
180-
181-
182168
class TexTemplateFromFile(TexTemplate):
183169
"""A TexTemplate object created from a template file (default: tex_template.tex)"""
184170

manim/utils/tex_templates.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,23 @@
77

88
from .tex import *
99

10+
1011
# This file makes TexTemplateLibrary and TexFontTemplates available for use in manim Tex and MathTex objects.
1112

1213

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"""
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)
25+
26+
1327
# TexTemplateLibrary
1428
#
1529
class TexTemplateLibrary(object):

0 commit comments

Comments
 (0)