⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 moderncv.cls

📁 一个非常漂亮的简历模板
💻 CLS
📖 第 1 页 / 共 2 页
字号:
\moderncvtheme{casual}   % default theme\AtBeginDocument{\RequirePackage[\@moderncvthemeoptions]{moderncvtheme\@moderncvtheme}}%-------------------------------------------------------------------------------%                structure commands definitions%-------------------------------------------------------------------------------\newcommand*{\firstname}[1]{\def\@firstname{#1}}\newcommand*{\familyname}[1]{\def\@familyname{#1}}\renewcommand*{\title}[1]{\def\@title{#1}}\newcommand*{\address}[2]{\def\@addressstreet{#1}\def\@addresscity{#2}}\newcommand*{\mobile}[1]{\def\@mobile{#1}}\newcommand*{\phone}[1]{\def\@phone{#1}}\renewcommand*{\fax}[1]{\def\@fax{#1}}\newcommand*{\email}[1]{\def\@email{#1}}\newcommand*{\extrainfo}[1]{\def\@extrainfo{#1}}\newcommand*{\photo}[2][64pt]{\def\@photoheight{#1}\def\@photo{#2}}\newcommand*{\quote}[1]{\def\@quote{#1}}% length used by the moderncv layout% quote length\newlength{\quotewidth}% section lengths\newlength{\hintscolumnwidth}\newlength{\separatorcolumnwidth}\setlength{\separatorcolumnwidth}{0.025\textwidth}\newlength{\maincolumnwidth}\newcommand*{\sethintscolumnlength}[1]{  \setlength{\hintscolumnwidth}{#1}%  \setlength{\maincolumnwidth}{\textwidth}%  \addtolength{\maincolumnwidth}{-\separatorcolumnwidth}%  \addtolength{\maincolumnwidth}{-\hintscolumnwidth}}\newcommand*{\sethintscolumntowidth}[1]{  \settowidth{\hintscolumnwidth}{#1}%  \setlength{\maincolumnwidth}{\textwidth}%  \addtolength{\maincolumnwidth}{-\separatorcolumnwidth}%  \addtolength{\maincolumnwidth}{-\hintscolumnwidth}}% doubleitem lengths\newlength{\doubleitemmaincolumnwidth}% listitem lengths\newlength{\listitemsymbolwidth}\settowidth{\listitemsymbolwidth}{\listitemsymbol{}~}% listdoubleitem lengths\newlength{\listdoubleitemmaincolumnwidth}% recompute all the lengths that depends on the text width\newcommand*{\recomputelengths}{%  \setlength{\quotewidth}{0.65\textwidth}%  \sethintscolumnlength{\hintscolumnwidth}%  % doubleitem lengths  \setlength{\doubleitemmaincolumnwidth}{\maincolumnwidth}%  \addtolength{\doubleitemmaincolumnwidth}{-\hintscolumnwidth}%  \addtolength{\doubleitemmaincolumnwidth}{-\separatorcolumnwidth}%  \setlength{\doubleitemmaincolumnwidth}{0.5\doubleitemmaincolumnwidth}%  % listdoubleitem lengths  \setlength{\listdoubleitemmaincolumnwidth}{\maincolumnwidth}%  \addtolength{\listdoubleitemmaincolumnwidth}{-\listitemsymbolwidth}%  \setlength{\listdoubleitemmaincolumnwidth}{0.475\listdoubleitemmaincolumnwidth}%  % fancyhdr lengths  \renewcommand{\headwidth}{\textwidth}}\sethintscolumnlength{0.15\textwidth}\recomputelengths% makes the cv title\renewcommand*{\maketitle}{}%% draws a colored rectangle% usage: \colorrule[optional height]{width}%\newcommand*{\colorrule}[2][1ex]{{\color{sectionrectanglecolor}{\rule{#2}{#1}}}}\newif\if@sectionopen\@sectionopenfalse\newif\if@firstcvlineofsection\@firstcvlineofsectionfalse % bug if initially set to true...% usage: \closesection{} to force a section to be closed (and the tabular layout it generates)\newcommand*{\closesection}{%  \if@sectionopen%    \end{longtable}%%    \phantomsection% reset the anchor for hyperrefs%    \par\null%    \@sectionopenfalse\fi}\AtEndDocument{\closesection{}}% usage: \section{<title>}, or \emptysection{}\newcommand*{\section}[1]{%  \closesection{}%  \@sectionopentrue%  \phantomsection{}% reset the anchor for hyperrefs  \addcontentsline{toc}{part}{#1}%  \begin{longtable}[l]{@{}p{\hintscolumnwidth}@{\hspace{\separatorcolumnwidth}}p{\maincolumnwidth}@{}}%  {\color{sectionrectanglecolor}\rule{\hintscolumnwidth}{1ex}} &\sectionstyle{#1}\\[1ex]%  \@firstcvlineofsectiontrue%  }\newcommand*{\emptysection}{%  \closesection{}%  \@sectionopentrue%  \begin{longtable}[l]{@{}p{\hintscolumnwidth}@{\hspace{\separatorcolumnwidth}}p{\maincolumnwidth}@{}}%  \@firstcvlineofsectiontrue%  }% usage (inside section): \subsection{title}\newcommand*{\subsection}[1]{%  \cvline[0.65em]{}{\subsectionstyle{#1}}}% usage (inside section): \cvline{leftmark}{text}\newcommand*{\cvline}[3][.25em]{%  \if@firstcvlineofsection%    \@firstcvlineofsectionfalse%  \else%    \\[#1]\fi%  \raggedleft\hintfont{#2} &#3}% usage (inside section}: \cvdoubleitem{subtitle}{text}{subtitle}{text}\newcommand*{\cvdoubleitem}[4]{% \cvline{#1}{\begin{minipage}[t]{\doubleitemmaincolumnwidth}#2\end{minipage}% \hfill% \begin{minipage}[t]{\hintscolumnwidth}\raggedleft\hintfont{#3}\end{minipage}\hspace*{\separatorcolumnwidth}\begin{minipage}[t]{\doubleitemmaincolumnwidth}#4\end{minipage}}}% usage (inside section): \cvlistitem{point1}\newcommand*{\cvlistitem}[2][\listitemsymbol{}]{%  \cvline[0pt]{}{#1~#2}}% usage (inside section): \cvlistdoubleitem{point1}{point2}\newcommand*{\cvlistdoubleitem}[3][\listitemsymbol{}]{%  \cvline[0pt]{}{#1~\begin{minipage}[t]{\listdoubleitemmaincolumnwidth}#2\end{minipage}%  \hfill%  \ifthenelse{\equal{#3}{}}%    {}%    {#1~\begin{minipage}[t]{\listdoubleitemmaincolumnwidth}#3\end{minipage}}}}% usage : \cventry{years}{degree/job title}{institution/employer}{localization}{optionnal: grade/...}{optional: comment/job description}\newcommand*{\cventry}[6]{%  \cvline{#1}{%    {\bfseries#2}%    \ifthenelse{\equal{#3}{}}{}{, {\slshape#3}}%    \ifthenelse{\equal{#4}{}}{}{, #4}%    \ifthenelse{\equal{#5}{}}{}{, #5}%    .%    \ifthenelse{\equal{#6}{}}{}{\newline{}\small#6}    }}%%  \ifthenelse{\equal{#6}{}}{}{\cvline[0pt]{}{\small#6}}}% usage (inside 'language' cvsection environment): \cvlanguage{name}{level}{comment}\newcommand*{\cvlanguage}[3]{%  \cvline{#1}{\begin{minipage}[t]{.225\maincolumnwidth}\textbf{#2}\end{minipage}\hfill\begin{minipage}[t]{0.725\maincolumnwidth}\raggedleft\footnotesize\itshape #3\end{minipage}}}% usage (inside 'computer skills' cvsection environment): \cvcomputer{category}{programs}{category}{programs}\newcommand*{\cvcomputer}[4]{%  \cvdoubleitem{#1}{\small#2}{#3}{\small#4}}% usage: \weblink[optional text]{link}\newcommand*{\weblink}[2][]{%  \ifthenelse{\equal{#1}{}}%    {\def\@linktext{#2}}%    {\def\@linktext{#1}}%  \href{#2}{\@linktext{}}}% usage: \httplink[optional text]{link}\newcommand*{\httplink}[2][]{%  \ifthenelse{\equal{#1}{}}%    {\def\@linktext{#2}}%    {\def\@linktext{#1}}%  \href{http://#2}{\@linktext{}}}% usage: \emaillink[optional text]{link}\newcommand*{\emaillink}[2][]{%  \ifthenelse{\equal{#1}{}}%    {\def\@linktext{#2}}%    {\def\@linktext{#1}}%  \href{mailto:#2}{\@linktext{}}}% usage: \nopagenumbers{}\newif\if@displaypagenumbers\@displaypagenumberstrue\newcommand*{\nopagenumbers}{\@displaypagenumbersfalse}\AtBeginDocument{%  \if@displaypagenumbers%    \@ifundefined{r@lastpage}{}{%      \ifthenelse{\pageref{lastpage} > 1}{%      \fancypagestyle{plain}{%        \fancyfoot[r]{\addressfont\color{quotecolor}\footnotesize\thepage/\pageref{lastpage}}}%      \pagestyle{plain}}{}}%  \AtEndDocument{\label{lastpage}}%  \fi}% thebibliography environment, for use with BibTeX\newcommand{\refname}{Publications}\newlength{\bibindent}\setlength{\bibindent}{1.5em}% trick to force the previous section to close before the thebibliography environment\let\oldbibliography\bibliography\renewcommand*{\bibliography}[1]{%  \closesection{}%  \oldbibliography{#1}}% bibliography item label\newcommand*{\bibliographyitemlabel}{}% use \@biblabel{\arabic{enumiv}} for BibTeX labels\newenvironment{thebibliography}[1]%  {%    \section{\refname}%    \closesection{}%    \vspace*{-1.65em}%    \small%    \begin{list}{\bibliographyitemlabel}%      {%        \setlength{\topsep}{0pt}%        \setlength{\labelwidth}{\hintscolumnwidth}%        \setlength{\labelsep}{\separatorcolumnwidth}%        \leftmargin\labelwidth%        \advance\leftmargin\labelsep%        \@openbib@code%        \usecounter{enumiv}%        \let\p@enumiv\@empty%        \renewcommand\theenumiv{\@arabic\c@enumiv}}%        \sloppy\clubpenalty4000\widowpenalty4000%%        \sfcode`\.\@m%%        \sfcode `\=1000\relax%  }%  {%    \def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%    \end{list}%  }\newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}\let\@openbib@code\@empty% the classical \today definition\def\today{\ifcase\month\or  January\or February\or March\or April\or May\or June\or  July\or August\or September\or October\or November\or December\fi  \space\number\day, \number\year}\endinput%% end of file `moderncv.cls'.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -