refactor code for cover letter

This commit is contained in:
Posquit0.BJ 2015-12-14 15:59:20 +09:00
parent e087d3f792
commit 81e9d569e5
11 changed files with 122 additions and 32 deletions

View file

@ -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) ![alt tag](https://raw.githubusercontent.com/posquit0/Awesome-CV/master/examples/resume-1.png)
## Cover Letter ## 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 ## Quick Start

View file

@ -21,7 +21,7 @@
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
% Identification % 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} \NeedsTeXFormat{LaTeX2e}
@ -64,6 +64,8 @@
\RequirePackage{xifthen} \RequirePackage{xifthen}
% Needed to use a toolbox of programming tools % Needed to use a toolbox of programming tools
\RequirePackage{etoolbox} \RequirePackage{etoolbox}
% Needed to change line spacing in specific environment
\RequirePackage{setspace}
% Needed to manage fonts % Needed to manage fonts
\ifxetex \ifxetex
\RequirePackage[quiet]{fontspec} \RequirePackage[quiet]{fontspec}
@ -254,8 +256,15 @@
\newcommand*{\skillsetstyle}[1]{{\fontsize{9pt}{1em}\bodyfontlight\color{text} #1}} \newcommand*{\skillsetstyle}[1]{{\fontsize{9pt}{1em}\bodyfontlight\color{text} #1}}
% For elements of the cover letter % For elements of the cover letter
\newcommand*{\cvletteraddressstyle}[1]{{\fontsize{10pt}{1em}\bodyfont\scshape\color{graytext} #1}} \newcommand*{\paragraphstyle}[1]{{\fontsize{14pt}{1em}\bodyfont\bfseries\color{text}\@sectioncolor #1}}
\newcommand*{\cvlettertitelstyle}[1]{{\fontsize{11pt}{1em}\bodyfont\bfseries\color{darktext} #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 % Commands for personal information
@ -317,6 +326,39 @@
% Usage: \quote{<quote>} % Usage: \quote{<quote>}
\renewcommand*{\quote}[1]{\def\@quote{#1}} \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 % Commands for extra
@ -352,7 +394,7 @@
\begin{center} \begin{center}
\headerfirstnamestyle{ \headerfirstnamestyle{
\@firstname \@firstname
}\headerlastnamestyle{ } \headerlastnamestyle{
\@lastname \@lastname
} }
\\ \\
@ -576,23 +618,48 @@
%------------------------------------------------------------------------------- %-------------------------------------------------------------------------------
% Define an environment for cvletter % Define an environment for cvletter
\newenvironment{cvletter}{ \newenvironment{cvletter}{
\fontsize{11pt}{1.3em}\bodyfontlight\upshape\color{darktext}\selectfont \lettertextstyle
}{ }{
} }
% Define the header of the cover letter % Define a paragraph for cvletter
% Usage: \cvletterinfo {Name}{Street}{City}{Country}{JobTitle} % Usage: \cvparagraph{<paragraph-title>}
\newcommand*{\cvletterinfo}[5]{ \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\tabcolsep{0pt}
\setlength{\extrarowheight}{0pt} \setlength{\extrarowheight}{0pt}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} L{12.5cm} R{4.5cm}} \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} L{12.5cm} R{4.5cm}}
\vspace{0.5cm} \\ \recipienttitlestyle{\@recipientname} & \letterdatestyle{\@letterdate}
\cvletteraddressstyle{#1} \\
\cvletteraddressstyle{#2} \\
\cvletteraddressstyle{#3} \\
\cvletteraddressstyle{#4} \\
& \entrydatestyle{\today} \\
\\
\cvlettertitelstyle{#5} \\
\end{tabular*} \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

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

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

View file

@ -5,9 +5,9 @@
% This template has been downloaded from: % This template has been downloaded from:
% https://github.com/posquit0/Awesome-CV % https://github.com/posquit0/Awesome-CV
% %
% Author: % Authors:
% Claud D. Park <posquit0.bj@gmail.com> % Claud D. Park <posquit0.bj@gmail.com>
% http://www.posquit0.com % Lars Richter <mail@ayeks.de>
% %
% Template license: % Template license:
% CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/) % CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/)
@ -43,18 +43,11 @@
%\headersocialsep[\quad\textbar\quad] %\headersocialsep[\quad\textbar\quad]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 3rd party packages
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Needed to divide into several files
\usepackage{import}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Personal Data % Personal Data
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Essentials %%% 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} \address{246-1002, Gwangmyeongmayrouge Apt. 86, Cheongna lime-ro, Seo-gu, Incheon-si, 404-180, Rep. of KOREA}
\mobile{(+82) 10-9030-1843} \mobile{(+82) 10-9030-1843}
%%% Social %%% Social
@ -67,6 +60,19 @@
\quote{``Make the change that you want to see in the world."} \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 % Content
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@ -80,7 +86,23 @@
%%% Make a header for CV using personal data %%% Make a header for CV using personal data
\makecvheader \makecvheader
%%% Import contents %%% Make a title for Cover Letter using letter data
\import{\sectiondir}{cvletter.tex} \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} \end{document}

Binary file not shown.

View file

@ -54,7 +54,7 @@
% Personal Data % Personal Data
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Essentials %%% 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} \address{246-1002, Gwangmyeongmayrouge Apt. 86, Cheongna lime-ro, Seo-gu, Incheon-si, 22738, Rep. of KOREA}
\mobile{(+82) 10-9030-1843} \mobile{(+82) 10-9030-1843}
%%% Social %%% Social

Binary file not shown.

View file

@ -54,7 +54,7 @@
% Personal Data % Personal Data
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Essentials %%% 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} \address{246-1002, Gwangmyeongmayrouge Apt. 86, Cheongna lime-ro, Seo-gu, Incheon-si, 22738, Rep. of KOREA}
\mobile{(+82) 10-9030-1843} \mobile{(+82) 10-9030-1843}
%%% Social %%% Social