diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/thuthesis/zhfonts.py')
-rwxr-xr-x | Master/texmf-dist/doc/latex/thuthesis/zhfonts.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/latex/thuthesis/zhfonts.py b/Master/texmf-dist/doc/latex/thuthesis/zhfonts.py index 43df37270b8..5ecbd31b9a6 100755 --- a/Master/texmf-dist/doc/latex/thuthesis/zhfonts.py +++ b/Master/texmf-dist/doc/latex/thuthesis/zhfonts.py @@ -136,11 +136,11 @@ if not all((final_fonts['songti']['font'], print('错误:缺少宋体、黑体或楷体字体。') exit(2) -print('>> 生成字体文件fontname.def') -with open('fontname.def', 'w') as f: +print('>> 生成字体文件thufonts.def') +with open('thufonts.def', 'w') as f: f.write('% vim: set ft=tex:\n') f.write('% This file is auto-generated by zhfonts.py script\n\n') - f.write('\\ProvidesFile{fontname.def}\n') + f.write('\\ProvidesFile{thufonts.def}\n') f.write('\\setCJKmainfont[BoldFont={' + final_fonts['heiti']['font'] + '},ItalicFont={' + final_fonts['kaiti']['font'] + '}]{' + final_fonts['songti']['font'] + '}\n') f.write('\\setCJKsansfont{' + final_fonts['heiti']['font'] + '}\n') |