forked from mirrors/Awesome-CV
refactor code for cover letter
This commit is contained in:
parent
e087d3f792
commit
81e9d569e5
11 changed files with 122 additions and 32 deletions
|
@ -11,9 +11,10 @@ You can see [PDF](https://raw.githubusercontent.com/posquit0/Awesome-CV/master/e
|
|||
![alt tag](https://raw.githubusercontent.com/posquit0/Awesome-CV/master/examples/resume-1.png)
|
||||
|
||||
## Cover Letter
|
||||
You can see [PDF](https://github.com/ayeks/Awesome-CV/raw/cover-letter/examples/coverletter.pdf)
|
||||
You can see [PDF](https://raw.githubusercontent.com/posquit0/Awesome-CV/master/examples/coverletter.pdf)
|
||||
|
||||
![alt tag](https://github.com/ayeks/Awesome-CV/raw/cover-letter/examples/coverletter.png)
|
||||
![alt tag](https://raw.githubusercontent.com/posquit0/Awesome-CV/master/examples/coverletter-0.png)
|
||||
![alt tag](https://raw.githubusercontent.com/posquit0/Awesome-CV/master/examples/coverletter-1.png)
|
||||
|
||||
## Quick Start
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
%-------------------------------------------------------------------------------
|
||||
% Identification
|
||||
%-------------------------------------------------------------------------------
|
||||
\ProvidesClass{awesome-cv}[2015/12/10 v1.2 Awesome Curriculum Vitae Class]
|
||||
\ProvidesClass{awesome-cv}[2015/12/14 v1.3 Awesome Curriculum Vitae Class]
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
|
||||
|
||||
|
@ -64,6 +64,8 @@
|
|||
\RequirePackage{xifthen}
|
||||
% Needed to use a toolbox of programming tools
|
||||
\RequirePackage{etoolbox}
|
||||
% Needed to change line spacing in specific environment
|
||||
\RequirePackage{setspace}
|
||||
% Needed to manage fonts
|
||||
\ifxetex
|
||||
\RequirePackage[quiet]{fontspec}
|
||||
|
@ -254,8 +256,15 @@
|
|||
\newcommand*{\skillsetstyle}[1]{{\fontsize{9pt}{1em}\bodyfontlight\color{text} #1}}
|
||||
|
||||
% For elements of the cover letter
|
||||
\newcommand*{\cvletteraddressstyle}[1]{{\fontsize{10pt}{1em}\bodyfont\scshape\color{graytext} #1}}
|
||||
\newcommand*{\cvlettertitelstyle}[1]{{\fontsize{11pt}{1em}\bodyfont\bfseries\color{darktext} #1}}
|
||||
\newcommand*{\paragraphstyle}[1]{{\fontsize{14pt}{1em}\bodyfont\bfseries\color{text}\@sectioncolor #1}}
|
||||
\newcommand*{\recipientaddressstyle}[1]{{\fontsize{9pt}{1em}\bodyfont\scshape\color{graytext} #1}}
|
||||
\newcommand*{\recipienttitlestyle}[1]{{\fontsize{11pt}{1em}\bodyfont\bfseries\color{darktext} #1}}
|
||||
\newcommand*{\lettertitlestyle}[1]{{\fontsize{10pt}{1em}\bodyfontlight\bfseries\color{darktext} \underline{#1}}}
|
||||
\newcommand*{\letterdatestyle}[1]{{\fontsize{9pt}{1em}\bodyfontlight\slshape\color{graytext} #1}}
|
||||
\newcommand*{\lettertextstyle}{\fontsize{10pt}{1.4em}\bodyfontlight\upshape\color{graytext}}
|
||||
\newcommand*{\letternamestyle}[1]{{\fontsize{10pt}{1em}\bodyfont\bfseries\color{darktext} #1}}
|
||||
\newcommand*{\letterenclosurestyle}[1]{{\fontsize{10pt}{1em}\bodyfontlight\slshape\color{lighttext} #1}}
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% Commands for personal information
|
||||
|
@ -317,6 +326,39 @@
|
|||
% Usage: \quote{<quote>}
|
||||
\renewcommand*{\quote}[1]{\def\@quote{#1}}
|
||||
|
||||
% Defines recipient's information (cover letter only)
|
||||
% Usage: \recipient{<recipient name>}{<recipient address>}
|
||||
% Usage: \recipientname{<recipient name>}
|
||||
% Usage: \recipientaddress{<recipient address>}
|
||||
\newcommand*{\recipient}[2]{\def\@recipientname{#1}\def\@recipientaddress{#2}}
|
||||
\newcommand*{\recipientname}[1]{\def\@recipientname{#1}}
|
||||
\newcommand*{\recipientaddress}[1]{\def\@recipientaddress{#1}}
|
||||
|
||||
% Defines the title for letter (cover letter only, optional)
|
||||
% Usage: \lettertitle{<title>}
|
||||
\newcommand*{\lettertitle}[1]{\def\@lettertitle{#1}}
|
||||
|
||||
% Defines the date for letter (cover letter only)
|
||||
% Usage: \letterdate{<date>}
|
||||
\newcommand*{\letterdate}[1]{\def\@letterdate{#1}}
|
||||
|
||||
% Defines a message of opening for letter (cover letter only)
|
||||
% Usage: \letteropening{<message>}
|
||||
\newcommand*{\letteropening}[1]{\def\@letteropening{#1}}
|
||||
|
||||
% Defines a message of closing for letter (cover letter only)
|
||||
% Usage: \letterclosing{<message>}
|
||||
\newcommand*{\letterclosing}[1]{\def\@letterclosing{#1}}
|
||||
|
||||
% Defines an enclosure for letter (cover letter only, optional)
|
||||
% Usage: \letterenclosure[<enclosure name>]{<enclosure>}
|
||||
\newcommand*{\letterenclname}[1][Enclosure]{\def\@letterenclname{#1}}
|
||||
\newcommand*{\letterenclosure}[2][]{
|
||||
% if an optional argument is provided, use it to redefine \enclname
|
||||
\ifthenelse{\equal{#1}{}}{}{\def\@letterenclname{#1}}
|
||||
\def\@letterenclosure{#2}
|
||||
}
|
||||
|
||||
|
||||
%-------------------------------------------------------------------------------
|
||||
% Commands for extra
|
||||
|
@ -352,7 +394,7 @@
|
|||
\begin{center}
|
||||
\headerfirstnamestyle{
|
||||
\@firstname
|
||||
}\headerlastnamestyle{
|
||||
} \headerlastnamestyle{
|
||||
\@lastname
|
||||
}
|
||||
\\
|
||||
|
@ -576,23 +618,48 @@
|
|||
%-------------------------------------------------------------------------------
|
||||
% Define an environment for cvletter
|
||||
\newenvironment{cvletter}{
|
||||
\fontsize{11pt}{1.3em}\bodyfontlight\upshape\color{darktext}\selectfont
|
||||
\lettertextstyle
|
||||
}{
|
||||
}
|
||||
|
||||
% Define the header of the cover letter
|
||||
% Usage: \cvletterinfo {Name}{Street}{City}{Country}{JobTitle}
|
||||
\newcommand*{\cvletterinfo}[5]{
|
||||
% Define a paragraph for cvletter
|
||||
% Usage: \cvparagraph{<paragraph-title>}
|
||||
\newcommand{\cvparagraph}[1]{
|
||||
\par\addvspace{2.5ex}
|
||||
\phantomsection{}
|
||||
\paragraphstyle{#1}
|
||||
\color{gray}\vhrulefill{0.9pt}
|
||||
\par\nobreak\addvspace{0.4ex}
|
||||
}
|
||||
|
||||
% Define a title of the cover letter
|
||||
% Usage: \makelettertitle
|
||||
\newcommand*{\makelettertitle}{
|
||||
\vspace{8.4mm}
|
||||
\setlength\tabcolsep{0pt}
|
||||
\setlength{\extrarowheight}{0pt}
|
||||
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} L{12.5cm} R{4.5cm}}
|
||||
\vspace{0.5cm} \\
|
||||
\cvletteraddressstyle{#1} \\
|
||||
\cvletteraddressstyle{#2} \\
|
||||
\cvletteraddressstyle{#3} \\
|
||||
\cvletteraddressstyle{#4} \\
|
||||
& \entrydatestyle{\today} \\
|
||||
\\
|
||||
\cvlettertitelstyle{#5} \\
|
||||
\recipienttitlestyle{\@recipientname} & \letterdatestyle{\@letterdate}
|
||||
\end{tabular*}
|
||||
\begin{singlespace}
|
||||
\recipientaddressstyle{\@recipientaddress} \\\\
|
||||
\end{singlespace}
|
||||
\ifthenelse{\isundefined{\@lettertitle}}
|
||||
{}
|
||||
{\lettertitlestyle{\@lettertitle} \\}
|
||||
\lettertextstyle{\@letteropening}
|
||||
}
|
||||
|
||||
% Define a closing of the cover letter
|
||||
% Usage: \makeletterclosing
|
||||
\newcommand*{\makeletterclosing}{
|
||||
\vspace{3.4mm}
|
||||
\lettertextstyle{\@letterclosing} \\\\
|
||||
\letternamestyle{\@firstname \@lastname}
|
||||
\ifthenelse{\isundefined{\@letterenclosure}}
|
||||
{\\}
|
||||
{
|
||||
\\\\\\
|
||||
\letterenclosurestyle{\@letterenclname: \@letterenclosure} \\
|
||||
}
|
||||
}
|
||||
|
|
BIN
examples/coverletter-0.png
Normal file
BIN
examples/coverletter-0.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 110 KiB |
BIN
examples/coverletter-1.png
Normal file
BIN
examples/coverletter-1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 126 KiB |
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 142 KiB |
|
@ -5,9 +5,9 @@
|
|||
% This template has been downloaded from:
|
||||
% https://github.com/posquit0/Awesome-CV
|
||||
%
|
||||
% Author:
|
||||
% Authors:
|
||||
% Claud D. Park <posquit0.bj@gmail.com>
|
||||
% http://www.posquit0.com
|
||||
% Lars Richter <mail@ayeks.de>
|
||||
%
|
||||
% Template license:
|
||||
% CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/)
|
||||
|
@ -43,18 +43,11 @@
|
|||
%\headersocialsep[\quad\textbar\quad]
|
||||
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% 3rd party packages
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%%% Needed to divide into several files
|
||||
\usepackage{import}
|
||||
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Personal Data
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%%% Essentials
|
||||
\name{Claud D. }{Park}
|
||||
\name{Claud D.}{Park}
|
||||
\address{246-1002, Gwangmyeongmayrouge Apt. 86, Cheongna lime-ro, Seo-gu, Incheon-si, 404-180, Rep. of KOREA}
|
||||
\mobile{(+82) 10-9030-1843}
|
||||
%%% Social
|
||||
|
@ -67,6 +60,19 @@
|
|||
\quote{``Make the change that you want to see in the world."}
|
||||
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Letter Data (Cover Letter)
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\recipient
|
||||
{Company Recruitment Team}
|
||||
{Google Inc.\\1600 Amphitheatre Parkway\\Mountain View, CA 94043}
|
||||
\letterdate{\today}
|
||||
\lettertitle{Job Application for Software Engineer}
|
||||
\letteropening{Dear Mr./Ms./Dr. LastName,}
|
||||
\letterclosing{Sincerely,}
|
||||
\letterenclosure[Attached]{Curriculum Vitae}
|
||||
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Content
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
@ -80,7 +86,23 @@
|
|||
%%% Make a header for CV using personal data
|
||||
\makecvheader
|
||||
|
||||
%%% Import contents
|
||||
\import{\sectiondir}{cvletter.tex}
|
||||
%%% Make a title for Cover Letter using letter data
|
||||
\makelettertitle
|
||||
|
||||
%%% Write content for your cover letter
|
||||
\begin{cvletter}
|
||||
\cvparagraph{About Me}
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ullamcorper neque sit amet lectus facilisis sed luctus nisl iaculis. Vivamus at neque arcu, sed tempor quam. Curabitur pharetra tincidunt tincidunt. Morbi volutpat feugiat mauris, quis tempor neque vehicula volutpat. Duis tristique justo vel massa fermentum accumsan. Mauris ante elit, feugiat vestibulum tempor eget, eleifend ac ipsum. Donec scelerisque lobortis ipsum eu vestibulum. Pellentesque vel massa at felis accumsan rhoncus.
|
||||
|
||||
\cvparagraph{Why Google?}
|
||||
Suspendisse commodo, massa eu congue tincidunt, elit mauris pellentesque orci, cursus tempor odio nisl euismod augue. Aliquam adipiscing nibh ut odio sodales et pulvinar tortor laoreet. Mauris a accumsan ligula. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Suspendisse vulputate sem vehicula ipsum varius nec tempus dui dapibus. Phasellus et est urna, ut auctor erat. Sed tincidunt odio id odio aliquam mattis. Donec sapien nulla, feugiat eget adipiscing sit amet, lacinia ut dolor. Phasellus tincidunt, leo a fringilla consectetur, felis diam aliquam urna, vitae aliquet lectus orci nec velit. Vivamus dapibus varius blandit.
|
||||
|
||||
\cvparagraph{Why Me?}
|
||||
Duis sit amet magna ante, at sodales diam. Aenean consectetur porta risus et sagittis. Ut interdum, enim varius pellentesque tincidunt, magna libero sodales tortor, ut fermentum nunc metus a ante. Vivamus odio leo, tincidunt eu luctus ut, sollicitudin sit amet metus. Nunc sed orci lectus. Ut sodales magna sed velit volutpat sit amet pulvinar diam venenatis.
|
||||
|
||||
\end{cvletter}
|
||||
|
||||
%%% Make a closing for Cover Letter using letter data
|
||||
\makeletterclosing
|
||||
|
||||
\end{document}
|
||||
|
|
BIN
examples/cv.pdf
BIN
examples/cv.pdf
Binary file not shown.
|
@ -54,7 +54,7 @@
|
|||
% Personal Data
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%%% Essentials
|
||||
\name{Claud D. }{Park}
|
||||
\name{Claud D.}{Park}
|
||||
\address{246-1002, Gwangmyeongmayrouge Apt. 86, Cheongna lime-ro, Seo-gu, Incheon-si, 22738, Rep. of KOREA}
|
||||
\mobile{(+82) 10-9030-1843}
|
||||
%%% Social
|
||||
|
|
Binary file not shown.
|
@ -54,7 +54,7 @@
|
|||
% Personal Data
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%%% Essentials
|
||||
\name{Claud D. }{Park}
|
||||
\name{Claud D.}{Park}
|
||||
\address{246-1002, Gwangmyeongmayrouge Apt. 86, Cheongna lime-ro, Seo-gu, Incheon-si, 22738, Rep. of KOREA}
|
||||
\mobile{(+82) 10-9030-1843}
|
||||
%%% Social
|
||||
|
|
Loading…
Reference in a new issue