Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fix latex error summary (#1619)

Raghav Goel7712a239640b
diff --git a/manim/utils/tex_file_writing.py b/manim/utils/tex_file_writing.py
index cd8494458..ed6851c73 100644
--- a/manim/utils/tex_file_writing.py
+++ b/manim/utils/tex_file_writing.py
@@ -195,8 +195,10 @@ def compile_tex(tex_file, tex_compiler, output_format):
if error_pos:
with open(tex_file, "r") as g:
tex = g.readlines()
- logger.error("LaTeX compilation error: {log[error_pos][2:])}")
for log_index in error_pos:
+ logger.error(
+ f"LaTeX compilation error: {log[log_index][2:]}"
+ )
index_line = log_index
context = "Context for error:\n\n"