2015-05-07 11:25:13 +00:00
|
|
|
%% Start of file `awesome-cv.cls'.
|
2015-12-10 00:51:13 +00:00
|
|
|
% Awesome CV Class File
|
|
|
|
%
|
|
|
|
% This class has been downloaded from:
|
|
|
|
% https://github.com/posquit0/Awesome-CV
|
|
|
|
%
|
|
|
|
% Author:
|
|
|
|
% Claud D. Park <posquit0.bj@gmail.com>
|
|
|
|
% http://www.posquit0.com
|
|
|
|
%
|
|
|
|
% Notes:
|
|
|
|
% 1) This class file defines the structure and layout of the template file (cv.tex, resume.tex).
|
|
|
|
% 2) It has been written in such a way that under most circumstances you
|
|
|
|
% should not need to edit it.
|
|
|
|
%
|
|
|
|
% Class license:
|
|
|
|
% LPPL v1.3c (http://www.latex-project.org/lppl)
|
2015-05-07 11:25:13 +00:00
|
|
|
%
|
|
|
|
|
|
|
|
|
|
|
|
%-------------------------------------------------------------------------------
|
|
|
|
% Identification
|
|
|
|
%-------------------------------------------------------------------------------
|
2015-12-10 00:51:13 +00:00
|
|
|
\ProvidesClass{awesome-cv}[2015/12/10 v1.2 Awesome Curriculum Vitae Class]
|
2015-05-07 11:25:13 +00:00
|
|
|
\NeedsTeXFormat{LaTeX2e}
|
|
|
|
|
|
|
|
|
|
|
|
%-------------------------------------------------------------------------------
|
|
|
|
% Class options
|
|
|
|
%
|
|
|
|
% (need to be done before the external package loading, for example because
|
|
|
|
% we need \paperwidth, \paperheight and \@ptsize to be defined before loading
|
|
|
|
% geometry and fancyhdr)
|
|
|
|
%-------------------------------------------------------------------------------
|
|
|
|
% Options for draft or final
|
|
|
|
\DeclareOption{draft}{\setlength\overfullrule{5pt}}
|
|
|
|
\DeclareOption{final}{\setlength\overfullrule{0pt}}
|
|
|
|
% Inherit options of article
|
|
|
|
\DeclareOption*{
|
|
|
|
\PassOptionsToClass{\CurrentOption}{article}
|
|
|
|
}
|
|
|
|
\ProcessOptions\relax
|
|
|
|
\LoadClass{article}
|
|
|
|
|
|
|
|
|
|
|
|
%-------------------------------------------------------------------------------
|
|
|
|
% 3rd party packages
|
|
|
|
%-------------------------------------------------------------------------------
|
|
|
|
% Needed to make fixed length table
|
|
|
|
\RequirePackage{array}
|
|
|
|
% Needed to handle list environment
|
|
|
|
\RequirePackage{enumitem}
|
|
|
|
% Needed to handle text alignment
|
|
|
|
\RequirePackage{ragged2e}
|
|
|
|
% Needed to configure page layout
|
|
|
|
\RequirePackage{geometry}
|
|
|
|
% Needed to make header & footer effeciently
|
|
|
|
\RequirePackage{fancyhdr}
|
|
|
|
% Needed to manage colors
|
|
|
|
\RequirePackage{xcolor}
|
|
|
|
% Needed to use \ifxetex-\else-\fi statement
|
|
|
|
\RequirePackage{ifxetex}
|
|
|
|
% Needed to use \if-\then-\else statement
|
2015-11-19 06:47:07 +00:00
|
|
|
\RequirePackage{xifthen}
|
2015-11-19 04:50:51 +00:00
|
|
|
% Needed to use a toolbox of programming tools
|
2015-11-13 14:51:58 +00:00
|
|
|
\RequirePackage{etoolbox}
|
2015-05-07 11:25:13 +00:00
|
|
|
% Needed to manage fonts
|
|
|
|
\ifxetex
|
|
|
|
\RequirePackage[quiet]{fontspec}
|
|
|
|
% To support LaTeX quoting style
|
|
|
|
\defaultfontfeatures{Ligatures=TeX}
|
|
|
|
\else
|
|
|
|
\RequirePackage[T1]{fontenc}
|
|
|
|
% Replace by the encoding you are using
|
|
|
|
\RequirePackage[utf8]{inputenc}
|
|
|
|
\fi
|
|
|
|
% Needed to manage math fonts
|
|
|
|
\RequirePackage[math-style=TeX,vargreek-shape=unicode]{unicode-math}
|
|
|
|
% Needed to use icons from font-awesome
|
2015-12-10 00:51:13 +00:00
|
|
|
% (https://github.com/posquit0/latex-fontawesome)
|
2015-05-07 11:25:13 +00:00
|
|
|
\RequirePackage{fontawesome}
|
|
|
|
% Needed to deal a paragraphs
|
|
|
|
\RequirePackage{parskip}
|
|
|
|
% Needed to deal hyperlink
|
|
|
|
\RequirePackage{hyperref}
|
|
|
|
\hypersetup{
|
|
|
|
pdftitle={},
|
|
|
|
pdfauthor={},
|
|
|
|
pdfsubject={},
|
|
|
|
pdfkeywords={},
|
|
|
|
colorlinks=false,
|
|
|
|
allbordercolors=white
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
%-------------------------------------------------------------------------------
|
|
|
|
% Configuration for directory locations
|
|
|
|
%-------------------------------------------------------------------------------
|
|
|
|
% Configure a directory location for fonts(default: 'fonts/')
|
|
|
|
\newcommand*{\fontdir}[1][fonts/]{\def\@fontdir{#1}}
|
|
|
|
\fontdir
|
|
|
|
|
|
|
|
|
|
|
|
%-------------------------------------------------------------------------------
|
|
|
|
% Configuration for layout
|
|
|
|
%-------------------------------------------------------------------------------
|
|
|
|
%% Page Layout
|
|
|
|
% Configure page margins with geometry
|
2015-11-03 01:19:12 +00:00
|
|
|
\geometry{left=2.0cm, top=1.5cm, right=2.0cm, bottom=2.0cm, footskip=.5cm}
|
2015-05-07 11:25:13 +00:00
|
|
|
|
|
|
|
%% Header & Footer
|
|
|
|
% Set offset to each header and offset
|
|
|
|
\fancyhfoffset{0em}
|
|
|
|
% Remove head rule
|
|
|
|
\renewcommand{\headrulewidth}{0pt}
|
|
|
|
% Clear all header & footer fields
|
|
|
|
\fancyhf{}
|
|
|
|
% Enable if you want to make header or footer using fancyhdr
|
|
|
|
\pagestyle{fancy}
|
|
|
|
|
|
|
|
|
|
|
|
%-------------------------------------------------------------------------------
|
|
|
|
% Configuration for colors
|
|
|
|
%-------------------------------------------------------------------------------
|
|
|
|
% Gray-scale colors
|
|
|
|
\definecolor{white}{HTML}{FFFFFF}
|
|
|
|
\definecolor{black}{HTML}{000000}
|
|
|
|
\definecolor{darkgray}{HTML}{333333}
|
|
|
|
\definecolor{gray}{HTML}{5D5D5D}
|
|
|
|
\definecolor{lightgray}{HTML}{999999}
|
|
|
|
% Basic colors
|
|
|
|
\definecolor{green}{HTML}{C2E15F}
|
|
|
|
\definecolor{orange}{HTML}{FDA333}
|
|
|
|
\definecolor{purple}{HTML}{D3A4F9}
|
|
|
|
\definecolor{red}{HTML}{FB4485}
|
|
|
|
\definecolor{blue}{HTML}{6CE0F1}
|
2015-11-19 02:34:38 +00:00
|
|
|
% Text colors
|
|
|
|
\definecolor{darktext}{HTML}{414141}
|
|
|
|
\colorlet{text}{darkgray}
|
|
|
|
\colorlet{graytext}{gray}
|
|
|
|
\colorlet{lighttext}{lightgray}
|
2015-05-07 11:25:13 +00:00
|
|
|
% Awesome colors
|
2015-05-15 10:53:39 +00:00
|
|
|
\definecolor{awesome-emerald}{HTML}{00A388}
|
|
|
|
\definecolor{awesome-skyblue}{HTML}{0395DE}
|
2015-05-07 11:25:13 +00:00
|
|
|
\definecolor{awesome-red}{HTML}{DC3522}
|
2015-05-15 10:53:39 +00:00
|
|
|
\definecolor{awesome-pink}{HTML}{EF4089}
|
|
|
|
\definecolor{awesome-orange}{HTML}{FF6138}
|
|
|
|
\definecolor{awesome-nephritis}{HTML}{27AE60}
|
|
|
|
\definecolor{awesome-concrete}{HTML}{95A5A6}
|
|
|
|
\definecolor{awesome-darknight}{HTML}{131A28}
|
2015-05-07 11:25:13 +00:00
|
|
|
\colorlet{awesome}{awesome-red}
|
|
|
|
|
|
|
|
% Awesome section color
|
|
|
|
\newcounter{colorCounter}
|
|
|
|
\def\@sectioncolor#1#2#3{%
|
|
|
|
{%
|
|
|
|
\color{%
|
|
|
|
\ifcase\value{colorCounter}%
|
|
|
|
awesome\or%
|
|
|
|
awesome\or%
|
|
|
|
awesome\or%
|
|
|
|
awesome\or%
|
|
|
|
awesome\else%
|
|
|
|
awesome\fi%
|
|
|
|
} #1#2#3%
|
|
|
|
}%
|
|
|
|
\stepcounter{colorCounter}%
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
%-------------------------------------------------------------------------------
|
|
|
|
% Configuration for fonts
|
|
|
|
%-------------------------------------------------------------------------------
|
2015-11-07 08:05:17 +00:00
|
|
|
% Set font for header (default is Roboto)
|
|
|
|
\newfontfamily\headerfont[
|
|
|
|
Path=\@fontdir,
|
|
|
|
UprightFont=*-Regular,
|
|
|
|
ItalicFont=*-Italic,
|
|
|
|
BoldFont=*-Bold,
|
|
|
|
BoldItalicFont=*-BoldItalic,
|
2015-05-07 11:25:13 +00:00
|
|
|
]{Roboto}
|
2015-11-07 08:05:17 +00:00
|
|
|
|
|
|
|
\newfontfamily\headerfontlight[
|
|
|
|
Path=\@fontdir,
|
|
|
|
UprightFont=*-Thin,
|
|
|
|
ItalicFont=*-ThinItalic,
|
|
|
|
BoldFont=*-Medium,
|
|
|
|
BoldItalicFont=*-MediumItalic,
|
2015-05-07 11:25:13 +00:00
|
|
|
]{Roboto}
|
|
|
|
|
2015-11-07 08:05:17 +00:00
|
|
|
% Set font for footer (default is Source Sans Pro)
|
|
|
|
\newfontfamily\footerfont[
|
|
|
|
Path=\@fontdir,
|
|
|
|
UprightFont=*-Regular,
|
|
|
|
ItalicFont=*-It,
|
|
|
|
BoldFont=*-Bold
|
|
|
|
]{SourceSansPro}
|
|
|
|
|
|
|
|
% Set font for body (default is Source Sans Pro)
|
|
|
|
\newfontfamily\bodyfont[
|
|
|
|
Path=\@fontdir,
|
|
|
|
UprightFont=*-Regular,
|
|
|
|
ItalicFont=*-It,
|
|
|
|
BoldFont=*-Bold,
|
|
|
|
BoldItalicFont=*-BoldIt
|
|
|
|
]{SourceSansPro}
|
|
|
|
|
|
|
|
\newfontfamily\bodyfontlight[
|
|
|
|
Path=\@fontdir,
|
|
|
|
UprightFont=*-Light,
|
|
|
|
ItalicFont=*-LightIt,
|
|
|
|
BoldFont=*-Semibold,
|
|
|
|
BoldItalicFont=*-SemiboldIt
|
|
|
|
]{SourceSansPro}
|
2015-05-07 11:25:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
%-------------------------------------------------------------------------------
|
|
|
|
% Configuration for styles
|
|
|
|
%-------------------------------------------------------------------------------
|
|
|
|
% Configure styles for each CV elements
|
|
|
|
% For fundamental structures
|
2015-11-19 02:34:38 +00:00
|
|
|
\newcommand*{\headerfirstnamestyle}[1]{{\fontsize{32pt}{1em}\headerfontlight\color{graytext} #1}}
|
|
|
|
\newcommand*{\headerlastnamestyle}[1]{{\fontsize{32pt}{1em}\headerfont\bfseries\color{text} #1}}
|
2015-11-21 05:29:45 +00:00
|
|
|
\newcommand*{\headerpositionstyle}[1]{{\fontsize{7.6pt}{1em}\bodyfont\scshape\color{awesome} #1}}
|
2015-11-19 02:34:38 +00:00
|
|
|
\newcommand*{\headeraddressstyle}[1]{{\fontsize{8pt}{1em}\headerfont\itshape\color{lighttext} #1}}
|
|
|
|
\newcommand*{\headersocialstyle}[1]{{\fontsize{6.8pt}{1em}\headerfont\color{text} #1}}
|
2015-11-25 03:25:54 +00:00
|
|
|
\newcommand*{\headerquotestyle}[1]{{\fontsize{9pt}{1em}\bodyfont\itshape\color{darktext} #1}}
|
2015-11-19 02:34:38 +00:00
|
|
|
\newcommand*{\footerstyle}[1]{{\fontsize{8pt}{1em}\footerfont\scshape\color{lighttext} #1}}
|
|
|
|
\newcommand*{\sectionstyle}[1]{{\fontsize{16pt}{1em}\bodyfont\bfseries\color{text}\@sectioncolor #1}}
|
|
|
|
\newcommand*{\subsectionstyle}[1]{{\fontsize{12pt}{1em}\bodyfont\scshape\textcolor{text}{#1}}}
|
2015-05-07 11:25:13 +00:00
|
|
|
|
|
|
|
% For elements of entry
|
2015-11-19 02:34:38 +00:00
|
|
|
\newcommand*{\entrytitlestyle}[1]{{\fontsize{10pt}{1em}\bodyfont\bfseries\color{darktext} #1}}
|
|
|
|
\newcommand*{\entrypositionstyle}[1]{{\fontsize{8pt}{1em}\bodyfont\scshape\color{graytext} #1}}
|
|
|
|
\newcommand*{\entrydatestyle}[1]{{\fontsize{8pt}{1em}\bodyfontlight\slshape\color{graytext} #1}}
|
2015-11-06 11:23:40 +00:00
|
|
|
\newcommand*{\entrylocationstyle}[1]{{\fontsize{9pt}{1em}\bodyfontlight\slshape\color{awesome} #1}}
|
2015-11-19 02:34:38 +00:00
|
|
|
\newcommand*{\descriptionstyle}[1]{{\fontsize{9pt}{1em}\bodyfontlight\upshape\color{text} #1}}
|
2015-05-07 11:25:13 +00:00
|
|
|
|
|
|
|
% For elements of subentry
|
2015-11-19 02:34:38 +00:00
|
|
|
\newcommand*{\subentrytitlestyle}[1]{{\fontsize{8pt}{1em}\bodyfont\mdseries\color{graytext} #1}}
|
|
|
|
\newcommand*{\subentrypositionstyle}[1]{{\fontsize{7pt}{1em}\bodyfont\scshape\color{graytext} #1}}
|
|
|
|
\newcommand*{\subentrydatestyle}[1]{{\fontsize{7pt}{1em}\bodyfontlight\slshape\color{graytext} #1}}
|
2015-11-06 11:23:40 +00:00
|
|
|
\newcommand*{\subentrylocationstyle}[1]{{\fontsize{7pt}{1em}\bodyfontlight\slshape\color{awesome} #1}}
|
2015-11-19 02:34:38 +00:00
|
|
|
\newcommand*{\subdescriptionstyle}[1]{{\fontsize{8pt}{1em}\bodyfontlight\upshape\color{text} #1}}
|
2015-05-07 11:25:13 +00:00
|
|
|
|
|
|
|
% For elements of honor
|
2015-11-19 02:34:38 +00:00
|
|
|
\newcommand*{\honortitlestyle}[1]{{\fontsize{9pt}{1em}\bodyfont\color{graytext} #1}}
|
|
|
|
\newcommand*{\honorpositionstyle}[1]{{\fontsize{9pt}{1em}\bodyfont\bfseries\color{darktext} #1}}
|
|
|
|
\newcommand*{\honordatestyle}[1]{{\fontsize{9pt}{1em}\bodyfont\color{graytext} #1}}
|
2015-11-06 11:23:40 +00:00
|
|
|
\newcommand*{\honorlocationstyle}[1]{{\fontsize{9pt}{1em}\bodyfontlight\slshape\color{awesome} #1}}
|
2015-05-07 11:25:13 +00:00
|
|
|
|
2015-11-19 02:34:38 +00:00
|
|
|
% For elements of skill
|
|
|
|
\newcommand*{\skilltypestyle}[1]{{\fontsize{10pt}{1em}\bodyfont\bfseries\color{darktext} #1}}
|
|
|
|
\newcommand*{\skillsetstyle}[1]{{\fontsize{9pt}{1em}\bodyfontlight\color{text} #1}}
|
|
|
|
|
2015-05-07 11:25:13 +00:00
|
|
|
|
|
|
|
%-------------------------------------------------------------------------------
|
|
|
|
% Commands for personal information
|
|
|
|
%-------------------------------------------------------------------------------
|
|
|
|
% Define writer's name
|
|
|
|
% Usage: \name{<firstname>}{<lastname>}
|
|
|
|
% Usage: \firstname{<firstname>}
|
|
|
|
% Usage: \lastname{<lastname>}
|
|
|
|
% Usage: \familyname{<familyname>}
|
|
|
|
\newcommand*{\name}[2]{\def\@firstname{#1}\def\@lastname{#2}}
|
|
|
|
\newcommand*{\firstname}[1]{\def\@firstname{#1}}
|
|
|
|
\newcommand*{\lastname}[1]{\def\@lastname{#1}}
|
|
|
|
\newcommand*{\familyname}[1]{\def\@lastname{#1}}
|
|
|
|
\def\@familyname{\@lastname}
|
|
|
|
|
|
|
|
% Define writer's address
|
|
|
|
% Usage: \address{<address>}
|
|
|
|
\newcommand*{\address}[1]{\def\@address{#1}}
|
|
|
|
|
|
|
|
% Define writer's position
|
|
|
|
% Usage: \name{<position>}
|
|
|
|
\newcommand*{\position}[1]{\def\@position{#1}}
|
|
|
|
|
|
|
|
% Defines writer's mobile (optional)
|
|
|
|
% Usage: \mobile{<mobile number>}
|
|
|
|
\newcommand*{\mobile}[1]{\def\@mobile{#1}}
|
|
|
|
|
|
|
|
% Defines writer's email (optional)
|
|
|
|
% Usage: \email{<email adress>}
|
|
|
|
\newcommand*{\email}[1]{\def\@email{#1}}
|
|
|
|
|
|
|
|
% Defines writer's homepage (optional)
|
|
|
|
% Usage: \homepage{<url>}
|
|
|
|
\newcommand*{\homepage}[1]{\def\@homepage{#1}}
|
|
|
|
|
|
|
|
% Defines writer's github (optional)
|
|
|
|
% Usage: \github{<github-nick>}
|
|
|
|
\newcommand*{\github}[1]{\def\@github{#1}}
|
|
|
|
|
|
|
|
% Defines writer's linked-in (optional)
|
|
|
|
% Usage: \linkedin{<linked-in-nick>}
|
|
|
|
\newcommand*{\linkedin}[1]{\def\@linkedin{#1}}
|
|
|
|
|
2015-12-09 13:56:22 +00:00
|
|
|
% Defines writer's stackoverflow profile (optional)
|
|
|
|
% Usage: \stackoverflow{<so userid>}{<so username>}
|
|
|
|
% e.g.https://stackoverflow.com/users/123456/sam-smith
|
|
|
|
% would be \stackoverflow{123456}{sam-smith}
|
|
|
|
\newcommand*{\stackoverflow}[2]{\def\@stackoverflowid{#1}\def\@stackoverflowname{#2}}
|
|
|
|
|
2015-11-13 14:51:58 +00:00
|
|
|
% Defines writer's skype (optional)
|
|
|
|
% Usage: \skype{<skype account>}
|
|
|
|
\newcommand*{\skype}[1]{\def\@skype{#1}}
|
|
|
|
|
|
|
|
% Defines writer's twitter (optional)
|
|
|
|
% Usage: \twitter{<twitter handle>}
|
|
|
|
\newcommand*{\twitter}[1]{\def\@twitter{#1}}
|
|
|
|
|
2015-05-07 11:25:13 +00:00
|
|
|
% Defines writer's quote (optional)
|
|
|
|
% Usage: \quote{<quote>}
|
|
|
|
\renewcommand*{\quote}[1]{\def\@quote{#1}}
|
|
|
|
|
|
|
|
|
2015-11-13 14:51:58 +00:00
|
|
|
%-------------------------------------------------------------------------------
|
|
|
|
% Commands for extra
|
|
|
|
%-------------------------------------------------------------------------------
|
|
|
|
% Define separator for social informations in header
|
|
|
|
% Usage: \headersocialsep{<separator>}
|
|
|
|
% Default: \quad\textbar\quad
|
|
|
|
\newcommand*{\headersocialsep}[1][\quad\textbar\quad]{\def\@headersocialsep{#1}}
|
|
|
|
\headersocialsep
|
|
|
|
|
|
|
|
|
2015-05-07 11:25:13 +00:00
|
|
|
%-------------------------------------------------------------------------------
|
|
|
|
% Commands for utilities
|
|
|
|
%-------------------------------------------------------------------------------
|
|
|
|
% Use to align an element of tabular table
|
|
|
|
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
|
|
|
|
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
|
|
|
|
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
|
|
|
|
|
|
|
|
% Use to draw horizontal line with specific tickness
|
|
|
|
\def\vhrulefill#1{\leavevmode\leaders\hrule\@height#1\hfill \kern\z@}
|
|
|
|
|
2015-11-19 06:47:07 +00:00
|
|
|
% Use to execute conditional statements by checking empty string
|
|
|
|
\newcommand*{\ifempty}[3]{\ifthenelse{\isempty{#1}}{#2}{#3}}
|
|
|
|
|
2015-11-06 11:23:40 +00:00
|
|
|
|
2015-05-07 11:25:13 +00:00
|
|
|
%-------------------------------------------------------------------------------
|
|
|
|
% Commands for elements of CV structure
|
|
|
|
%-------------------------------------------------------------------------------
|
|
|
|
% Define a header for CV
|
|
|
|
% Usage: \makecvheader
|
|
|
|
\newcommand*{\makecvheader}{
|
|
|
|
\begin{center}
|
2015-11-07 08:05:17 +00:00
|
|
|
\headerfirstnamestyle{
|
|
|
|
\@firstname
|
|
|
|
}\headerlastnamestyle{
|
|
|
|
\@lastname
|
|
|
|
}
|
|
|
|
\\
|
2015-11-21 05:29:45 +00:00
|
|
|
\vspace{0.4mm}
|
|
|
|
\ifthenelse{\isundefined{\@position}}{}{\headerpositionstyle{\@position\\}}
|
|
|
|
\vspace{0.4mm}
|
|
|
|
\ifthenelse{\isundefined{\@address}}{}{\headeraddressstyle{\@address\\}}
|
2015-05-07 11:25:13 +00:00
|
|
|
\vspace{-0.5mm}
|
|
|
|
\headersocialstyle{
|
2015-11-13 14:51:58 +00:00
|
|
|
\newbool{isstart}
|
|
|
|
\setbool{isstart}{true}
|
2015-05-07 11:25:13 +00:00
|
|
|
\ifthenelse{\isundefined{\@mobile}}
|
2015-11-13 08:29:38 +00:00
|
|
|
{}
|
2015-11-13 14:51:58 +00:00
|
|
|
{
|
|
|
|
\faMobile\ \@mobile
|
|
|
|
\setbool{isstart}{false}
|
|
|
|
}
|
2015-05-07 11:25:13 +00:00
|
|
|
\ifthenelse{\isundefined{\@email}}
|
2015-11-13 08:29:38 +00:00
|
|
|
{}
|
2015-11-13 14:51:58 +00:00
|
|
|
{
|
|
|
|
\ifbool{isstart}
|
|
|
|
{
|
|
|
|
\setbool{istart}{false}
|
|
|
|
}
|
|
|
|
{\@headersocialsep}
|
|
|
|
\href{mailto:\@email}{\faEnvelope\ \@email}
|
|
|
|
}
|
2015-05-07 11:25:13 +00:00
|
|
|
\ifthenelse{\isundefined{\@homepage}}
|
2015-11-13 08:29:38 +00:00
|
|
|
{}
|
2015-11-13 14:51:58 +00:00
|
|
|
{
|
|
|
|
\ifbool{isstart}
|
|
|
|
{
|
|
|
|
\setbool{istart}{false}
|
|
|
|
}
|
|
|
|
{\@headersocialsep}
|
|
|
|
\href{http://\@homepage}{\faHome\ \@homepage}
|
|
|
|
}
|
2015-05-07 11:25:13 +00:00
|
|
|
\ifthenelse{\isundefined{\@github}}
|
2015-11-13 08:29:38 +00:00
|
|
|
{}
|
2015-11-13 14:51:58 +00:00
|
|
|
{
|
|
|
|
\ifbool{isstart}
|
|
|
|
{
|
|
|
|
\setbool{istart}{false}
|
|
|
|
}
|
|
|
|
{\@headersocialsep}
|
2015-12-03 19:08:06 +00:00
|
|
|
\href{https://github.com/\@github}{\faGithubSquare\ \@github}
|
2015-11-13 14:51:58 +00:00
|
|
|
}
|
2015-12-05 21:05:24 +00:00
|
|
|
\ifthenelse{\isundefined{\@stackoverflowid}}
|
|
|
|
{}
|
|
|
|
{
|
|
|
|
\ifbool{isstart}
|
|
|
|
{
|
|
|
|
\setbool{istart}{false}
|
|
|
|
}
|
|
|
|
{\@headersocialsep}
|
|
|
|
\href{https://stackoverflow.com/users/\@stackoverflowid}{\faStackOverflow\ \@stackoverflowname}
|
|
|
|
}
|
2015-05-07 11:25:13 +00:00
|
|
|
\ifthenelse{\isundefined{\@linkedin}}
|
2015-11-13 08:29:38 +00:00
|
|
|
{}
|
2015-11-13 14:51:58 +00:00
|
|
|
{
|
|
|
|
\ifbool{isstart}
|
|
|
|
{
|
|
|
|
\setbool{istart}{false}
|
|
|
|
}
|
|
|
|
{\@headersocialsep}
|
2015-12-03 19:08:06 +00:00
|
|
|
\href{https://www.linkedin.com/in/\@linkedin}{\faLinkedinSquare\ \@linkedin}
|
2015-11-13 14:51:58 +00:00
|
|
|
}
|
|
|
|
\ifthenelse{\isundefined{\@twitter}}
|
|
|
|
{}
|
|
|
|
{
|
|
|
|
\ifbool{isstart}
|
|
|
|
{
|
|
|
|
\setbool{istart}{false}
|
|
|
|
}
|
|
|
|
{\@headersocialsep}
|
|
|
|
\href{https://twitter.com/\@twitter}{\faTwitter\ \@twitter}
|
|
|
|
}
|
|
|
|
\ifthenelse{\isundefined{\@skype}}
|
|
|
|
{}
|
|
|
|
{
|
|
|
|
\ifbool{isstart}
|
|
|
|
{
|
|
|
|
\setbool{istart}{false}
|
|
|
|
}
|
|
|
|
{\@headersocialsep}
|
|
|
|
\faSkype\ \@skype
|
|
|
|
}
|
2015-05-07 11:25:13 +00:00
|
|
|
} \\
|
2015-11-25 03:25:54 +00:00
|
|
|
\ifthenelse{\isundefined{\@quote}}
|
|
|
|
{}
|
|
|
|
{\vspace{6.0mm}\headerquotestyle{\@quote\\}\vspace{5.0mm}}
|
2015-05-07 11:25:13 +00:00
|
|
|
\end{center}
|
|
|
|
}
|
|
|
|
|
|
|
|
% Define a footer for CV
|
2015-11-26 05:00:03 +00:00
|
|
|
% Usage: \makecvfooter{<left>}{<center>}{<right>}
|
|
|
|
\newcommand*{\makecvfooter}[3]{
|
2015-05-07 11:25:13 +00:00
|
|
|
\fancyfoot{}
|
2015-11-26 05:00:03 +00:00
|
|
|
\fancyfoot[L]{
|
|
|
|
\footerstyle{#1}
|
|
|
|
}
|
2015-05-07 11:25:13 +00:00
|
|
|
\fancyfoot[C]{
|
2015-11-26 05:00:03 +00:00
|
|
|
\footerstyle{#2}
|
2015-05-07 11:25:13 +00:00
|
|
|
}
|
|
|
|
\fancyfoot[R]{
|
2015-11-26 05:00:03 +00:00
|
|
|
\footerstyle{#3}
|
2015-05-15 10:53:39 +00:00
|
|
|
}
|
2015-05-07 11:25:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
% Define a section for CV
|
|
|
|
% Usage: \cvsection{<section-title>}
|
|
|
|
\newcommand{\cvsection}[1]{
|
|
|
|
\par\addvspace{1.5ex}
|
|
|
|
\phantomsection{}
|
|
|
|
\sectionstyle{#1}
|
|
|
|
\color{gray}\vhrulefill{0.9pt}
|
|
|
|
\par\nobreak\addvspace{1ex}
|
|
|
|
}
|
|
|
|
|
|
|
|
% Define a subsection for CV
|
|
|
|
% Usage: \cvsubsection{<subsection-title>}
|
|
|
|
\newcommand{\cvsubsection}[1]{
|
|
|
|
\phantomsection{}
|
|
|
|
\subsectionstyle{#1}
|
|
|
|
}
|
|
|
|
|
|
|
|
% Define an environment for cventry
|
|
|
|
\newenvironment{cventries}{
|
|
|
|
\begin{center}
|
|
|
|
}{
|
|
|
|
\end{center}
|
|
|
|
}
|
|
|
|
% Define an entry of cv information
|
|
|
|
% Usage: \cventry{<position>}{<title>}{<location>}{<date>}{<description>}
|
|
|
|
\newcommand*{\cventry}[5]{
|
|
|
|
\setlength\tabcolsep{0pt}
|
|
|
|
\setlength{\extrarowheight}{0pt}
|
|
|
|
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} L{12.5cm} R{4.5cm}}
|
2015-11-19 06:47:07 +00:00
|
|
|
\ifempty{#2#3}
|
|
|
|
{\entrypositionstyle{#1} & \entrydatestyle{#4} \\}
|
|
|
|
{\entrytitlestyle{#2} & \entrylocationstyle{#3} \\
|
|
|
|
\entrypositionstyle{#1} & \entrydatestyle{#4} \\}
|
2015-05-07 11:25:13 +00:00
|
|
|
\multicolumn{2}{L{17cm}}{\descriptionstyle{#5}} \\
|
|
|
|
\end{tabular*}
|
|
|
|
}
|
|
|
|
|
|
|
|
% Define an environment for cvsubentry
|
|
|
|
\newenvironment{cvsubentries}{
|
|
|
|
\begin{center}
|
|
|
|
}{
|
|
|
|
\end{center}
|
|
|
|
}
|
|
|
|
% Define a subentry of cv information
|
|
|
|
% Usage: \cvsubentry{<position>}{<title>}{<date>}{<description>}
|
|
|
|
\newcommand*{\cvsubentry}[4]{
|
|
|
|
\setlength\tabcolsep{0pt}
|
|
|
|
\setlength{\extrarowheight}{0pt}
|
|
|
|
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} L{12.5cm} R{4.5cm}}
|
|
|
|
\setlength\leftskip{0.2cm}
|
|
|
|
\subentrytitlestyle{#2} & \ifthenelse{\equal{#1}{}}
|
|
|
|
{\subentrydatestyle{#3}}{}
|
|
|
|
\ifthenelse{\equal{#1}{}}
|
|
|
|
{}
|
|
|
|
{\subentrypositionstyle{#1} & \subentrydatestyle{#3} \\}
|
|
|
|
\ifthenelse{\equal{#4}{}}
|
|
|
|
{}
|
|
|
|
{\multicolumn{2}{L{17.0cm}}{\subdescriptionstyle{#4}} \\}
|
|
|
|
\end{tabular*}
|
|
|
|
}
|
|
|
|
|
|
|
|
% Define an environment for cvhonor
|
|
|
|
\newenvironment{cvhonors}{
|
|
|
|
\begin{center}
|
|
|
|
\setlength\tabcolsep{0pt}
|
|
|
|
\setlength{\extrarowheight}{0pt}
|
|
|
|
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} C{1.5cm} L{13.0cm} R{2.5cm}}
|
|
|
|
}{
|
|
|
|
\end{tabular*}
|
|
|
|
\end{center}
|
|
|
|
}
|
|
|
|
% Define a line of cv information(honor, award or something else)
|
|
|
|
% Usage: \cvhonor{<position>}{<title>}{<location>}{<date>}
|
|
|
|
\newcommand*{\cvhonor}[4]{
|
|
|
|
\honordatestyle{#4} & \honorpositionstyle{#1}, \honortitlestyle{#2} & \honorlocationstyle{#3}
|
|
|
|
\\
|
|
|
|
}
|
|
|
|
|
2015-11-19 02:34:38 +00:00
|
|
|
% Define an environment for cvskill
|
|
|
|
\newenvironment{cvskills}{
|
|
|
|
\begin{center}
|
|
|
|
\setlength\tabcolsep{1ex}
|
|
|
|
\setlength{\extrarowheight}{0pt}
|
|
|
|
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} r L{15.2cm}}
|
|
|
|
}{
|
|
|
|
\end{tabular*}
|
|
|
|
\end{center}
|
|
|
|
}
|
|
|
|
% Define a line of cv information(skill)
|
|
|
|
% Usage: \cvskill{<type>}{<skillset>}
|
|
|
|
\newcommand*{\cvskill}[2]{
|
|
|
|
\skilltypestyle{#1} & \skillsetstyle{#2}
|
|
|
|
\\
|
|
|
|
}
|
2015-05-07 11:25:13 +00:00
|
|
|
|
|
|
|
% Define an environment for cvitems(for cventry)
|
|
|
|
\newenvironment{cvitems}{
|
|
|
|
\vspace{-4mm}
|
|
|
|
\begin{justify}
|
|
|
|
\begin{itemize}[leftmargin=2ex, nosep, noitemsep]
|
|
|
|
\setlength{\parskip}{0pt}
|
|
|
|
\renewcommand{\labelitemi}{\bullet}
|
|
|
|
}{
|
|
|
|
\end{itemize}
|
|
|
|
\end{justify}
|
|
|
|
\vspace{-2mm}
|
2015-12-03 19:08:06 +00:00
|
|
|
}
|