From 63e98eee94aa74f4efac66c5e1cabcae414b0aff Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 4 Jun 2024 23:47:19 +0800 Subject: [PATCH] Update tex_templates.yml Fix the error when using Chinese, and add international typesetting support --- manimlib/tex_templates.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/manimlib/tex_templates.yml b/manimlib/tex_templates.yml index ddf16047..5627a6f3 100644 --- a/manimlib/tex_templates.yml +++ b/manimlib/tex_templates.yml @@ -45,6 +45,9 @@ ctex: \usepackage{physics} \usepackage{xcolor} \usepackage{microtype} + \usepackage{fontspec} + \usepackage{xeCJK} + \setmainfont{Microsoft YaHei} \linespread{1} # Simplified TeX templates