This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
本模板支持两种编译方式,PDFLaTeX 和 XeLaTeX。
选择 PDFLaTeX 编译
如果你使用 PDFLaTeX 编译,默认的 Computer Modern 字体被换成了 newtx 系列字体,默认的字体字号是 11 pt。关于字体设置的宏包主要用到了:
newtxtext 用于文档正文字体,类似于 Times New Roman 字体。
newtxmath 用于数学字体,搭配 newtx 非常合适,类似于过时的 times 宏包的效果。
FiraMono 用于打字机字体,并使用了 scale=0.8 选项。
ctex 用于中文字体设置,并使用了 scheme=plain 选项。
选择 XeLaTeX 编译
如果你选择 XeLaTeX 编译的话,那么设置字体的宏包为 fontspec 和 xeCJK。由于模板中使用的字体是 Windows 中的字体,所以如果你使用其他操作系统,比如 Linux 或者 Mac OS,那么你需要把所用字体替换为你系统中的字体。设置字体的命令:
\RequirePackage{fontenc}\RequirePackage[no-math]{fontspec}\setmainfont{Times New Roman}[NFSSFamily=ntxtlf]
\setsansfont{Arial}%\setmonofont[Scale=0.9]{Courier New}
\RequirePackage{xeCJK}\RequirePackage{xunicode}\setCJKmainfont[BoldFont={SimHei},ItalicFont={KaiTi}]{SimSun}\setCJKsansfont[BoldFont={SimHei},ItalicFont={KaiTi}]{KaiTi}\setCJKmonofont[BoldFont={SimHei},ItalicFont={KaiTi},Scale=0.9]{Microsoft YaHei}\XeTeXlinebreaklocale ”zh”
\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt
\RequirePackage{newtxmath}