Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

求助简历中的中文粗体字 #4

Open
junjies96 opened this issue Mar 13, 2017 · 3 comments
Open

求助简历中的中文粗体字 #4

junjies96 opened this issue Mar 13, 2017 · 3 comments

Comments

@junjies96
Copy link

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

@huwan
Copy link
Owner

huwan commented Mar 29, 2017

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

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

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

@junjies96
Copy link
Author

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

@huwan
Copy link
Owner

huwan commented Apr 10, 2017

直接 \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{abc@tsinghua.edu.cn}

\begin{document}

\makecvtitle

\section{研究兴趣}

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

\end{document}

2017-04-10_211543

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants