Open umm233 opened 5 years ago
求教楼主 我改了TEX_USE_CTEX = True 但写中文的时候还是出错,请问有啥建议吗?
我用的是win10 64位 + python3.7.1 + manimlib-0.1.10 运行显示英文字体时 很顺利
Traceback (most recent call last):
File "L:\Software\manimlib-0.1.10\manimlib\extract_scene.py", line 150, in main
scene = SceneClass(scene_kwargs)
File "L:\Software\manimlib-0.1.10\manimlib\scene\scene.py", line 52, in init
self.construct()
File "example_scenes.py", line 101, in construct
"你好",
File "L:\Software\manimlib-0.1.10\manimlib\mobject\svg\tex_mobject.py", line 144, in init
self, self.arg_separator.join(tex_strings), kwargs
File "L:\Software\manimlib-0.1.10\manimlib\mobject\svg\tex_mobject.py", line 44, in init
self.template_tex_file_body
File "L:\Software\manimlib-0.1.10\manimlib\utils\tex_file_writing.py", line 19, in tex_to_svg_file
dvi_file = tex_to_dvi(tex_file)
File "L:\Software\manimlib-0.1.10\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: Tex\1c2ddcefad627309.log
@asustnt3 求教楼主 我改了TEX_USE_CTEX = True 但写中文的时候还是出错,请问有啥建议吗? 我用的是win10 64位 + python3.7.1 + manimlib-0.1.10 运行显示英文字体时 很顺利
Traceback (most recent call last): File "L:\Software\manimlib-0.1.10\manimlib\extract_scene.py", line 150, in main scene = SceneClass(scene_kwargs) File "L:\Software\manimlib-0.1.10\manimlib\scene\scene.py", line 52, in init self.construct() File "example_scenes.py", line 101, in construct "你好", File "L:\Software\manimlib-0.1.10\manimlib\mobject\svg\tex_mobject.py", line 144, in init self, self.arg_separator.join(tex_strings), kwargs File "L:\Software\manimlib-0.1.10\manimlib\mobject\svg\tex_mobject.py", line 44, in init self.template_tex_file_body File "L:\Software\manimlib-0.1.10\manimlib\utils\tex_file_writing.py", line 19, in tex_to_svg_file dvi_file = tex_to_dvi(tex_file) File "L:\Software\manimlib-0.1.10\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: Tex\1c2ddcefad627309.log
你装的 Latex 是什么?建议使用 MiKTex,这个问题在我以前使用 CTex 的时候出现过,如果你也用 CTex 的话,换一下试试。
https://umm.js.org/p/637d228f/#more
关于manim的安装,以及简单配置使用。