Closed xiaohao890809 closed 6 years ago
Currently, there is no support for Chinese out of the box. However, if you translate the appropriate headings using the provided API, then it is possible to use Chinese. In case you've translated the headings such as "Experience" and "Languages" to the Chinese equivalent, you can post them here. I will add them to the document class.
@xiaohao890809 可以直接在源码中重定义
\documentclass[a4paper]{limecv}
\usepackage[BoldFont,SlantFont]{xeCJK}
% pandoc转换\begin \end时有问题,需要重定义命令
\newcommand{\hideFromPandoc}[1]{#1}
\hideFromPandoc{
\let\LimeCVCustomBegin\begin
\let\LimeCVCustomEnd\end
}
\hideFromPandoc
$if(font)$
\setCJKmainfont{$font$}
$else$
\setCJKmainfont{SimSun}
$endif$
\pgfkeys{/@cv/names/profile = 关于我}%
\pgfkeys{/@cv/names/contact = 联系我}%
\pgfkeys{/@cv/names/languages = 语言能力}%
\pgfkeys{/@cv/names/interests = 兴趣爱好}%
\pgfkeys{/@cv/names/professional = Professional}%
\pgfkeys{/@cv/names/personal = Personal}%
\pgfkeys{/@cv/names/projects = 我的项目}%
\pgfkeys{/@cv/names/education = 教育背景}%
\pgfkeys{/@cv/names/experience = 工作经验}%
\pgfkeys{/@cv/names/references = References}%
\pgfkeys{/@cv/names/skills = IT技能}%
\pgfkeys{/@cv/names/publications = 出版作品}%
% Defaults used in template design.
\usepackage[margin=\cvMargin,noheadfoot]{geometry}
@annProg 谢谢!我的汉语不好...
However, I do not fully understand the source you provided. I get that the xeCJK
package will be required to load the necessary fonts but what is the purpose of this piece:
% pandoc转换\begin \end时有问题,需要重定义命令
\newcommand{\hideFromPandoc}[1]{#1}
\hideFromPandoc{
\let\LimeCVCustomBegin\begin
\let\LimeCVCustomEnd\end
}
\hideFromPandoc
$if(font)$
\setCJKmainfont{$font$}
$else$
\setCJKmainfont{SimSun}
$endif$
@opieters I'm sorry. The source is just copy from resume-template, it's a template use for pandoc.
The LaTeX source should be:
\documentclass[a4paper]{limecv}
\usepackage[BoldFont,SlantFont]{xeCJK}
\setCJKmainfont{SimSun}
\pgfkeys{/@cv/names/profile = 关于我}%
\pgfkeys{/@cv/names/contact = 联系我}%
\pgfkeys{/@cv/names/languages = 语言能力}%
\pgfkeys{/@cv/names/interests = 兴趣爱好}%
\pgfkeys{/@cv/names/professional = Professional}%
\pgfkeys{/@cv/names/personal = Personal}%
\pgfkeys{/@cv/names/projects = 我的项目}%
\pgfkeys{/@cv/names/education = 教育背景}%
\pgfkeys{/@cv/names/experience = 工作经验}%
\pgfkeys{/@cv/names/references = References}%
\pgfkeys{/@cv/names/skills = IT技能}%
\pgfkeys{/@cv/names/publications = 出版作品}%
I added support for Chinese to the source code. You can now use \cvSetLanguage{chinese}
to get title headings in Chinese (Mandarin).
I want to use it in Chinese, does it support Chinese?