增加了中文注释。

This commit is contained in:
laoyang
2022-05-30 21:22:51 +08:00
parent e554bd3711
commit c3f3f52715
+13 -35
View File
@@ -27,10 +27,8 @@
\ProcessOptions \ProcessOptions
% Dependences
%A Few Useful Packages
\RequirePackage[frenchb]{babel} \RequirePackage[frenchb]{babel}
%\RequirePackage[utf8]{luainputenc} % luatex
\RequirePackage{fontspec} % for loading fonts \RequirePackage{fontspec} % for loading fonts
\RequirePackage{url,parskip} % other packages for formatting \RequirePackage{url,parskip} % other packages for formatting
\RequirePackage[usenames,dvipsnames]{xcolor} \RequirePackage[usenames,dvipsnames]{xcolor}
@@ -158,8 +156,7 @@
\end{tikzpicture} \end{tikzpicture}
} }
% Render author's name % 渲染作者姓名
% Usage: \user{<firstanme>}{<lastname>}
\newcommand\user[2]{\color{accentcolor}{\LARGE #1 \textbf{#2}}\color{Black}} \newcommand\user[2]{\color{accentcolor}{\LARGE #1 \textbf{#2}}\color{Black}}
% Render a text with its symbol % Render a text with its symbol
@@ -186,24 +183,19 @@
% Usage: \tagline{<tag line>} % Usage: \tagline{<tag line>}
\newcommand*{\tagline}[1]{\def\@tagline{#1}} \newcommand*{\tagline}[1]{\def\@tagline{#1}}
% Define author's photo % 渲染头像
% Usage \photo{<diameter>}{<photo>}
\newcommand{\photo}[2]{\def\@photo{#2}\def\@photodiameter{#1}} \newcommand{\photo}[2]{\def\@photo{#2}\def\@photodiameter{#1}}
% Render author's address % 渲染地址
% Usage: \address{<address>}
\newcommand*{\address}[1]{\socialtext{\locationSymbol}{#1}} \newcommand*{\address}[1]{\socialtext{\locationSymbol}{#1}}
% Render author's infos % 渲染作者信息
% Usage: \infos{<infos>}
\newcommand*{\infos}[1]{\socialtext{\infoSymbol}{#1}} \newcommand*{\infos}[1]{\socialtext{\infoSymbol}{#1}}
% Render author's homepage % 渲染作者地址
% Usage: \homepage{<homepage>}
\newcommand*{\homepage}[1]{\sociallink{\homeSymbol}{http://#1}{#1}} \newcommand*{\homepage}[1]{\sociallink{\homeSymbol}{http://#1}{#1}}
% Render author's homepage % 渲染作者的网站
% Usage: \weibo{<weibo>}
\newcommand*{\weibo}[1]{\sociallink{\weiboSymbol}{http://www.weibo.com/#1}{weibo.com/#1}} \newcommand*{\weibo}[1]{\sociallink{\weiboSymbol}{http://www.weibo.com/#1}{weibo.com/#1}}
@@ -219,12 +211,12 @@
% Usage: \github{<github-nick>} % Usage: \github{<github-nick>}
\newcommand*{\github}[1]{\sociallink{\githubSymbol}{https://www.github.com/#1}{github.com/#1}} % Github icon + URL \newcommand*{\github}[1]{\sociallink{\githubSymbol}{https://www.github.com/#1}{github.com/#1}} % Github icon + URL
% Render author's email (optional) %渲染作者邮箱
% Usage: \email{<email adress>} % Usage: \email{<email adress>}
\newcommand*{\email}[1]{\sociallink{\mailSymbol}{mailto:#1}{#1}} \newcommand*{\email}[1]{\sociallink{\mailSymbol}{mailto:#1}{#1}}
\newcommand*{\emailO}[1]{\sociallink{\mailSymbolO}{mailto:#1}{#1}} \newcommand*{\emailO}[1]{\sociallink{\mailSymbolO}{mailto:#1}{#1}}
% Render author's mobile phone (optional) %渲染作者电话
% Usage: \smartphone{<mobile phone number>} % Usage: \smartphone{<mobile phone number>}
\newcommand*\smartphone[1]{\socialtext{\mobileSymbol}{#1}} \newcommand*\smartphone[1]{\socialtext{\mobileSymbol}{#1}}
@@ -304,7 +296,7 @@
} }
} }
% Resume part title definition %每一部分的标题设定
\newcommand\sectionTitle[2]{\section{\texorpdfstring{\color{accentcolor}#2\enspace #1}{#1}}} \newcommand\sectionTitle[2]{\section{\texorpdfstring{\color{accentcolor}#2\enspace #1}{#1}}}
% Define a new column type for the scholarship environment % Define a new column type for the scholarship environment
@@ -356,14 +348,7 @@
% Render an experience in the experiences environment %
% Usage:
% \experience
% {<End date>} {<Title>}{<Enterprise>}{<Country>}
% {<Start date} {
% <Experience description (Could be a list)>
% }
% {<Technology list>}
\newcommand\experience[7]{ \newcommand\experience[7]{
\textsc{#1} & \textbf{#2, #3, #4} \\* \textsc{#1} & \textbf{#2, #3, #4} \\*
\textsc{#5} & \begin{minipage}[t]{\rightcolumnlength} \textsc{#5} & \begin{minipage}[t]{\rightcolumnlength}
@@ -373,15 +358,8 @@
& \footnotesize{\foreach \n in {#7}{ \cvtag{\n}}} \\ & \footnotesize{\foreach \n in {#7}{ \cvtag{\n}}} \\
} }
% Render a consultant experience in the experiences environment
% Usage: %
% \consultantexperience
% {<End date>} {<Consultant title>}{<Consulting Enterprise>}{<Country>}
% {<Start date} {<Client title>}{<Client business unit>}
% {
% <Experience description (Could be a list)>
% }
% {<Technology list>}
\newcommand\consultantexperience[9]{ \newcommand\consultantexperience[9]{
\textsc{#1} & \textbf{#2, #3, #4} \\* \textsc{#1} & \textbf{#2, #3, #4} \\*
\textsc{#5} & \emph{#6} pour #7 \\* \textsc{#5} & \emph{#6} pour #7 \\*