WanHuCV icon indicating copy to clipboard operation
WanHuCV copied to clipboard

求助简历中的中文粗体字

Open junjies96 opened this issue 9 years ago • 3 comments

你好,我自己也在尝试修改moderncv模板编写中文简历,但是在简历中用粗体字强调的地方,我编译之后一直显示的还是未加粗的宋体字,请问有什么解决办法吗

junjies96 avatar Mar 13 '17 09:03 junjies96

可以“曲线救国”,使用“华文中宋”代替宋体加粗,效果接近。

可以参考 https://github.com/huwan/cnuthesis-master-2017/blob/cnuthesis/thuthesis.cls#L193

\setCJKfamilyfont{cusong}{STZhongsong}
\newcommand{\cusong}{\CJKfamily{cusong}}

huwan avatar Mar 29 '17 13:03 huwan

简历这里实现汉字粗体的代码在哪里呢?

junjies96 avatar Apr 01 '17 04:04 junjies96

直接 \setCJKmainfont[BoldFont=STZhongsong,ItalicFont=STKaiti]{STSong}

\documentclass[11pt,a4paper,roman]{moderncv}
\usepackage{xeCJK}

\setCJKmainfont[BoldFont=STZhongsong,ItalicFont=STKaiti]{STSong}

\moderncvstyle{classic}
\moderncvcolor{black}

\usepackage[scale=0.8]{geometry} % Reduce document margins

\firstname{姓名}
\familyname{}

\address{XX大学XXX}{}
\phone{(8610)11111111}
\mobile{(86)123-4567-8910}
\email{[email protected]}

\begin{document}

\makecvtitle

\section{研究兴趣}

\cvitem{}{
    \textbf{操作系统与分布式系统}  \newline{}
    - 存储系统、文件系统与内存管理 \newline{}
    - 内存计算及分布式编程模型\newline{} \newline{}
    \textbf{计算机体系结构} \newline{}
    - 基于\emph{非易失性存储器}的存储子系统 \newline{}
    - 计算机系统与结构的软硬件协同设计
    }

\end{document}

2017-04-10_211543

huwan avatar Apr 10 '17 13:04 huwan