admin管理员组文章数量:1222506
My system settings are the following:
- Windows 11 24H2
- TeX Live 2024
- Manim CE 0.19
- PyCharm Community Edition 2024.3
I'd like to make Cyrillic texts work. To test the behavior, I have removed the \usepackage[english]{babel}
line from manim\utils\tex.py
, and then I've made this sample code:
from manim import *
class CyrCheck(Scene):
def statement(self):
testtxt = MathTex(r"Проверка русского набора на промежутке (0;1) в режиме математики.").scale(1.)
self.play(FadeIn(testtxt, shift=UP))
self.wait(6)
def construct(self):
cyrtextmp = TexTemplate()
cyrtextmp.add_to_preamble(r"\usepackage[T2A]{fontenc}")
cyrtextmp.add_to_preamble(r"\usepackage[utf8]{inputenc}")
cyrtextmp.add_to_preamble(r"\usepackage[english,russian]{babel}")
MathTex.set_default(tex_template=cyrtextmp)
Tex.set_default(tex_template=cyrtextmp)
self.statement()
# To run this scene, I use the following command in my terminal:
# manim -pql cyrtest.py CyrCheck
This is what I have after executing the command: The result
As you can see, Cyrillic letters do not display at all.
I've tried doing a full reinstall of TeX Live. Didn't work.
I've also tried executing mktexfm larm1000
and then updmap-sys
. Didn't work.
I don't know what to do. Will you explain why does it happen and what steps to take to fix it?
本文标签: latexCyrillic text does not display in Manim How to fix itStack Overflow
版权声明:本文标题:latex - Cyrillic text does not display in Manim. How to fix it? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1739325638a2158234.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论