Moderncv Banking
實現
Moderncv banking 是一個基於 xdanaux/moderncv 的現代簡潔履歷模板。
在底層,我們使用以下代碼作為 LaTeX 前言:
\documentclass[a4paper, serif, 11pt]{moderncv}
%% moderncv
% style and color
\moderncvstyle{banking}
\moderncvcolor{black}
% needed by moderncv for showing icons
\usepackage{fontawesome5}
對於 moderncv banking 樣式,我們還採用了一些特殊的標點符號處理,以便與 CJK 配合使用。
從技術上講,英語和中文有不同的冒號。英語冒號是 :
,Unicode 為 U+003A
,而中文冒號是 :
,Unicode 為 U+FF1A
。所以當履歷語言是中文時,我們會通過覆蓋一些神奇的 LaTeX 宏來為 moderncv 採用中文冒號:
% renew moderncv command to adapt for CJK colon
\renewcommand*{\cvitem}[3][.25em]{%
\ifstrempty{#2}{}{\hintstyle{#2}<= &templateTranslations.punctuations.Colon =>}{#3}%
\par\addvspace{#1}}
\renewcommand*{\cvitemwithcomment}[4][.25em]{%
\savebox{\cvitemwithcommentmainbox}{\ifstrempty{#2}{}{\hintstyle{#2}<= &templateTranslations.punctuations.Colon =>}#3}%
\setlength{\cvitemwithcommentmainlength}{\widthof{\usebox{\cvitemwithcommentmainbox}}}%
\setlength{\cvitemwithcommentcommentlength}{\maincolumnwidth-\separatorcolumnwidth-\cvitemwithcommentmainlength}%
\begin{minipage}[t]{\cvitemwithcommentmainlength}\usebox{\cvitemwithcommentmainbox}\end{minipage}%
\hfill% fill of \separatorcolumnwidth
\begin{minipage}[t]{\cvitemwithcommentcommentlength}\raggedleft\small\itshape#4\end{minipage}%
\par\addvspace{#1}}
查看我們的博客文章了解更多詳情。
預覽
從 Github 下載 YAML 代碼。
Edit on GitHub
Last updated on