Как мне установить файл tex_template.aux на мою ма c? - PullRequest
0 голосов
/ 17 апреля 2020

В последнее время я использую TexMobjects с manim. Тем не менее, я получил сообщение о том, что латексная ошибка покрывает dvi, и я обнаружил, что это связано с отсутствующим латексным файлом, который, как я обнаружил, является tex_template.aux, поэтому я хотел спросить, как мне go установить его ?

Я использовал этот python код:

from manimlib.imports import *


class Demo(Scene):
    def construct(self):
        text = TexMobject('6\frac { 3 }{ 1 } =9')
        self.play(Write(text))
        self.wait(3)

, и он выдал следующую ошибку:

Media will be written to ./media/. You can change this behavior with the --media_dir flag.
Writing "6
          rac { 3 }{ 1 } =9" to ./media/Tex/7d4764e99205e16c.tex



Traceback (most recent call last):
  File "/Users/aaryan/animations/manim/manimlib/extract_scene.py", line 155, in main
    scene = SceneClass(**scene_kwargs)
  File "/Users/aaryan/animations/manim/manimlib/scene/scene.py", line 53, in __init__
    self.construct()
  File "anim5.py", line 6, in construct
    text = TexMobject('6\frac { 3 }{ 1 } =9')
  File "/Users/aaryan/animations/manim/manimlib/mobject/svg/tex_mobject.py", line 148, in __init__
    self, self.arg_separator.join(tex_strings), **kwargs
  File "/Users/aaryan/animations/manim/manimlib/mobject/svg/tex_mobject.py", line 44, in __init__
    self.template_tex_file_body
  File "/Users/aaryan/animations/manim/manimlib/utils/tex_file_writing.py", line 19, in tex_to_svg_file
    dvi_file = tex_to_dvi(tex_file)
  File "/Users/aaryan/animations/manim/manimlib/utils/tex_file_writing.py", line 67, in tex_to_dvi
    "See log output above or the log file: %s" % log_file)
Exception: Latex error converting to dvi. See log output above or the log file: ./media/Tex/7d4764e99205e16c.log

Вот файл журнала .

...