
dvi 변환 오류로 인해 Manim에서 Latex를 사용할 수 없습니다. 이에 대한 다른 게시물을 보고 코드를 변경했지만 여전히 작동하지 않습니다. 내 코드는 다음과 같습니다. from manim import *
class dvi_error(Scene): def construction(self): t = MathTex(r"$y = x^2$") t.scale(2) self.add(t) self. 기다리다()
다음과 같은 오류 메시지가 있습니다.
정보 media\Tex\88663fadf5843031.tex tex_file_writing.py:107에 $y = x^2$ 쓰기 중 LaTeX 컴파일 오류: LaTeX 오류: `standalone.cls' 파일을 찾을 수 없습니다. tex_file_writing.py:312 ERROR 오류 컨텍스트: tex_file_writing.py:346 -> \documentclass[preview]{standalone}
\usepackage[english]{babel}
\usepackage{amsmath}
INFO You do not have package standalone.cls installed. tex_file_writing.py:356 INFO Install standalone.cls it using your LaTeX package manager, or check for typos. tex_file_writing.py:356 ERROR LaTeX compilation error: Emergency stop. tex_file_writing.py:312
ERROR Context of error: tex_file_writing.py:346 -> \documentclass[preview]{standalone}
\usepackage[english]{babel}
\usepackage{amsmath}
[...] ValueError: dvi로 변환하는 중 라텍스 오류가 발생했습니다. 위의 로그 출력 또는 로그 파일: media\Tex\88663fadf5843031.log를 참조하세요.
LaTeX를 성공적으로 설치했습니다(명령 프롬프트에 버전이 표시되고 수학 요소가 포함된 텍스트 없이 작동합니다). 또한 MathTex를 Tex로 바꾸거나 하나 대신 두 개의 달러 기호를 사용해 보았지만 아무것도 작동하지 않습니다. 어떻게 해야 하나요?