Created
April 9, 2024 10:50
-
-
Save quartorz/1b71a844928cc10425b671f1f370bc25 to your computer and use it in GitHub Desktop.
自分の環境で、ManimのTitleで日本語を出力できるようにするために必要だった設定
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from manim import * | |
Title.set_default(tex_template=TexTemplate( | |
tex_compiler='xelatex', | |
output_format='.xdv', | |
preamble= = r''' | |
\usepackage{amsmath} | |
\usepackage{amssymb} | |
\usepackage{zxjatype} | |
\setmainfont{SarasaUiJ-Regular.ttf} | |
\setCJKmainfont{SarasaUiJ-Regular.ttf} | |
''' | |
)) | |
Text.set_default(font='Sarasa Ui J') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment