Reputation: 1
My system settings are the following:
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?
Upvotes: 0
Views: 24