From 23af9c6c9c954814dfaf9d86f0983df63ba28aef Mon Sep 17 00:00:00 2001 From: Tony031218 <975062472@qq.com> Date: Sat, 2 Jan 2021 19:15:30 +0800 Subject: [PATCH] fix bugs on Windows and ctex --- manimlib/constants.py | 2 +- manimlib/ctex_template.tex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manimlib/constants.py b/manimlib/constants.py index 005bc31c..a1a01e06 100644 --- a/manimlib/constants.py +++ b/manimlib/constants.py @@ -29,7 +29,7 @@ def initialize_directories(config): "Dropbox (3Blue1Brown)/3Blue1Brown Team Folder" ) if not os.path.isdir(MEDIA_DIR): - MEDIA_DIR = "./media" + MEDIA_DIR = os.path.join(os.getcwd(), "media") print( f"Media will be written to {MEDIA_DIR + os.sep}. You can change " "this behavior with the --media_dir flag." diff --git a/manimlib/ctex_template.tex b/manimlib/ctex_template.tex index 41edd968..016bc3cc 100644 --- a/manimlib/ctex_template.tex +++ b/manimlib/ctex_template.tex @@ -1,4 +1,5 @@ \documentclass[preview]{standalone} +\usepackage[UTF8]{ctex} \usepackage[english]{babel} \usepackage{amsmath} @@ -16,7 +17,6 @@ \usepackage{xcolor} \usepackage{microtype} %\DisableLigatures{encoding = *, family = * } -\usepackage[UTF8]{ctex} \linespread{1} \begin{document}