CUHK Letter
Author
Jen-tse Huang
Last Updated
7ヶ月前
License
Creative Commons CC BY 4.0
Abstract
CUHK template letter. Used for cover letter, recommendation letter, etc.
% Template by Brian Wood (brian.wood@oregonstate.edu).
% Please feel free to send suggestions for changes; this template/cls is not exactly elegantly done!
\documentclass[12pt]{CUHKletter}
\usepackage{fontspec}
\usepackage{tikz}
\usepackage{xcolor}
\definecolor{mycolor}{RGB}{106,36,105}
\usepackage{lipsum}
\usepackage{fancyhdr}
\usepackage{lastpage}
\usepackage{eso-pic}
% This section is just a bunch of busywork so that the second and following pages read ``Page X of Y''
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\rhead{Page \thepage \hspace{1pt} of \pageref{LastPage}}
% Set custom font here. Comment this line out if you do not have a Cambria font (originally included with this template) installed; computer modern (or whatever your current default font is) will be substituted.
% \setmainfont{[Cambria.ttf]}[BoldFont = [CambriaBold.ttf], ItalicFont = [CambriaItalic.ttf], BoldItalicFont = [CambriaBoldItalic.ttf] ]
\newcommand{\watermark}[3]{\AddToShipoutPictureBG{
\parbox[b][\paperheight]{\paperwidth}{
\vfill
\centering
\begin{tikzpicture}
\path (0,0) -- (\paperwidth,\paperheight);
\node[opacity=.06] at (current page.center)
{\includegraphics[width=0.70\textwidth]{img/background.png}};
\end{tikzpicture}
\vfill}}}
% The material below is a whole big dang thing whose purpose is just to set up a fixed coordinate system for \tikz so that you can put the Department or School address in the upper right-hand side without it moving all around every time you change something in the page. I think it works.
% Defining a new coordinate system for the page:
%
% --------------------------
% |(-1,1) (0,1) (1,1)|
% | |
% |(-1,0) (0,0) (1,0)|
% | |
% |(-1,-1) (0,-1) (1,-1)|
% --------------------------
\makeatletter
\def\parsecomma#1,#2\endparsecomma{\def\page@x{#1}\def\page@y{#2}}
\tikzdeclarecoordinatesystem{page}{
\parsecomma#1\endparsecomma
\pgfpointanchor{current page}{north east}
\pgf@xc=\pgf@x
\pgf@yc=\pgf@y
\pgfpointanchor{current page}{south west}
\pgf@xb=\pgf@x
\pgf@yb=\pgf@y
\pgfmathparse{(\pgf@xc-\pgf@xb)/2.*\page@x+(\pgf@xc+\pgf@xb)/2.}
\expandafter\pgf@x\expandafter=\pgfmathresult pt
\pgfmathparse{(\pgf@yc-\pgf@yb)/2.*\page@y+(\pgf@yc+\pgf@yb)/2.}
\expandafter\pgf@y\expandafter=\pgfmathresult pt
}
\makeatother
%%%%%%%%%%%%%%%%% Personal Information %%%%%%%%%%%%%%%%%
\def\name{SomeName,\\
SomeTitle,\\
Department of Computer Science and Engineering, The Chinese University of Hong Kong
}
% List your degree(s), licences, etc. here if you like.
% \def\What{, Your degrees, etc.}
%%%%%%%%%%%%%%%%%% School or Department %%%%%%%%%%%%%%%
\def\Where{\hspace{-1.2mm}\textbf{\color{mycolor}
Department of Computer Science and Engineering,\\ The Chinese University of Hong Kong
}}
%%%%%%%%%%%% Additional Contact Information %%%%%%%%%%%
\def\Address{Sha Tin, New Territories}
\def\CityZip{Hong Kong SAR}
\def\Email{\textbf{\color{mycolor}E-mail}: someaddress@cse.cuhk.edu.hk}
\def\TEL{\textbf{\color{mycolor}Phone}: +852 6066 6606}
\def\URL{\textbf{\color{mycolor}URL}: https://somepage.github.io/}
%%%%%%%%%%%%%%%% Footer information %%%%%%%%%%%%%%%%%%
% The next line is for your college, used as a footer. If you prefer not to have this, just comment out these lines in favor of the line labeled "[[Alternate]]" below
\def\school{\small{
~Department of Computer Science $\cdot$
~Sha Tin, New Territories $\cdot$
~Hong Kong SAR} }
% \def\school{~} % [[Alternate]]
%%%%%%%%%%%%%%%%%%%%% Signature line %%%%%%%%%%%%%%%%%%%%%
% Set your signature line here.
% One can add a signature image in a PDF file using the following code; this requires a file called "signature_block.pdf" to be installed in the same folder as the .tex file. The vertical spacing (\vspace) and the scaling will have to be adjusted to get things to look correct for your particular signature image. Alternatively, comment out the following line in favor of the one labeled "[[Alternate]]" if you want to sign a paper copy of the letter.
\signature{
\vspace{-12mm}\includegraphics[scale=1.0]{img/signature_block.pdf}\\\vspace{-2mm}
\name}
% \signature{\name} % [[Alternate]]
% This block sets up the address on the right-hand side of the header.
% The following lines just compile the information you set up into the LaTex letter variable "address" for later use.
% The following command "clears out" the default address so that it can be better set using \tikz
\address{}
\def\newaddress{
\Where\\
\Address\\
\CityZip\\
\TEL\\
\Email\\
\URL
}
%%%%%%%%%%% DATE %%%%%%%%%%%%%%%%%%%%%%%%%
% If you want a date different from the current date, comment out the next line in favor of the line labeled "[[Alternate]]". The ``\vspace{10mm}'' just moves the date down a tiny bit so it doesn't interfere with the header. This can be adjusted to your preference.
\date{\vspace{10mm} \today}
% \date{\vspace{10mm} 20 September 2020} %[[Alternate]]
%%%%%%%%%%% Set the subject here if there is one %%%%
% \subject{Stuff} % optional subject line
\begin{document}
%%%%%%%% The "To" address goes here.
\begin{letter}
{
Target University\\
SomeAddresss\\
SomeTown, SomeState~~SomeZip
}
% This line sets up the return address to the right-side of the OSU logo. The location is set with absolute node addresses using ``\tikz''. It can still be a bit fussy, and you may need to alter this a little to get things to look right. The bit that changes the position are the numbers in parentheses ``at (14.2,2.7)''
\begin{tikzpicture}[remember picture,overlay,,every node/.style={anchor=center}]
\node[text width=7cm] at (page cs:0.5,0.73){\small \newaddress};
\end{tikzpicture}
%%%%%% The ``opening'' is just the method of address you would like to use at the start of the letter.
\opening{Dear Application Committee,}
%%%%%%%%%% Body of letter %%%%%%%%%%%%%%
% Remove it if you do not want watermark
\watermark{}{}{}
%%%%%%%%%%% Text %%%%%%%%%%%%%%
PARAGRAPH ONE (Introduction): Start with a strong opening sentence that grabs attention. Briefly introduce yourself and mention the position you are applying for. You can also include how you found out about the job opening.
PARAGRAPH TWO (Why you are interested and your relevant experience and skills): Explain why you are interested in the job and the company. Show that you have researched the company and relate your skills and interests to its mission and needs. Detail your relevant experience and skills, using specific examples to demonstrate how you have successfully used these in the past. Tailor this section to the job description, focusing on how you can meet the company’s needs and contribute to its success.
PARAGRAPH THREE (Conclusion): Conclude by reiterating your interest in the position and expressing your desire to discuss further how you can contribute to the company. Thank the employer for considering your application and suggest a follow-up action, like an interview.
%%%%%%% ``closing'' sets the sign-off line.
\closing{Sincerely,}
% Comment out/in the lines below as necessary
% \encl{If an enclosure is provided, let them know what it is.}
% \ps{A postscript if that is a thing you do.}
% \cc{Someone Who Cares (and is copied).}
\end{letter}
\end{document}