fix bugs on Windows and ctex

This commit is contained in:
Tony031218
2021-01-02 19:15:30 +08:00
parent 38b293c204
commit 23af9c6c9c
2 changed files with 2 additions and 2 deletions

View File

@ -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."

View File

@ -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}