diff --git a/chicv.cls b/chicv.cls index b0b5588..eb7050f 100644 --- a/chicv.cls +++ b/chicv.cls @@ -92,6 +92,20 @@ } } +% add CJK fonts and use zh line break +% usage: \useChinese{}{} +\newcommand{\useChinese}[2]{ + \RequirePackage{xeCJK} + \setCJKmainfont{SourceHanSerifCN}[ + Path = ./fonts/, + Extension = .otf, + UprightFont = *-#1, + BoldFont = *-#2, + ] + \XeTeXlinebreaklocale "zh" + \XeTeXlinebreakskip = 0pt plus 1pt +} + % format for section title \titleformat{\section} {\headingfont\Large} % shape diff --git a/fonts/SourceHanSerifCN-Bold.otf b/fonts/SourceHanSerifCN-Bold.otf new file mode 100644 index 0000000..6405540 Binary files /dev/null and b/fonts/SourceHanSerifCN-Bold.otf differ diff --git a/fonts/SourceHanSerifCN-Heavy.otf b/fonts/SourceHanSerifCN-Heavy.otf new file mode 100644 index 0000000..00f0945 Binary files /dev/null and b/fonts/SourceHanSerifCN-Heavy.otf differ diff --git a/fonts/SourceHanSerifCN-Medium.otf b/fonts/SourceHanSerifCN-Medium.otf new file mode 100644 index 0000000..62b86fe Binary files /dev/null and b/fonts/SourceHanSerifCN-Medium.otf differ diff --git a/fonts/SourceHanSerifCN-Regular.otf b/fonts/SourceHanSerifCN-Regular.otf new file mode 100644 index 0000000..f56c6b3 Binary files /dev/null and b/fonts/SourceHanSerifCN-Regular.otf differ diff --git a/resume.tex b/resume.tex index 9b6101b..43c2f48 100644 --- a/resume.tex +++ b/resume.tex @@ -5,6 +5,10 @@ % optionally suppress printing the page number \pagenumbering{gobble} +% optional Chinese support +% \useChinese{Medium}{Heavy} +% \useChinese{Regular}{Bold} + \begin{document} %% basic personal info @@ -29,6 +33,7 @@ \section{Education} \begin{itemize} \item GPA 93.58/100, Rank 1/149, National Scholarship 2019 (Top 0.2\% national-wide) \item A+ Courses: Operating Systems, Computer Architecture, Computer Networks, and 28 others + % \item 长中文段落测试:「于是我们奋力前进,却如同逆水行舟,注定要不停地退回过去。」——《了不起的盖茨比》菲茨杰拉德 \end{itemize} \section{Internship Experience}