HIT Letter of Recommendation Template
Author
MincooLee
Last Updated
3年前
License
Creative Commons CC BY 4.0
Abstract
哈工大推荐信模板
哈工大推荐信模板
% HITletter_example.tex - an example latex file to illustrate HITletter.cls
%
% Template by Brian Wood (brian.wood@oregonstate.edu). Please feel free to send suggestions for changes; this template/cls is not exactly elegantly done!
% Modified by MincooLee (mincoolee@gmail.com) to fit the need of HIT students based on the NJU version modified by Luyi Li (owenliluyi@gmail.com).
\documentclass[12pt]{HITletter}
\usepackage{fontspec}
\usepackage{tikz}
\usepackage{xcolor}
\definecolor{HITblue}{RGB}{38, 113, 142}
\usepackage{lipsum}
\usepackage{fancyhdr}
\usepackage{lastpage}
\usepackage{eso-pic}
\usepackage[base]{babel}
%
% 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=.07] at (current page.center)
{\includegraphics[width=0.6\textwidth]{HIT_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}
% Save the upper right corner
\pgf@xc=\pgf@x%
\pgf@yc=\pgf@y%
% save the lower left corner
\pgfpointanchor{current page}{south west}
\pgf@xb=\pgf@x%
\pgf@yb=\pgf@y%
% Transform to the correct placement
\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
%
%
%%%%%%%%%%% Put Personal Information Here %%%%%%%%%%%
%
\def\name{Name,\\
Position,\\
School of Computing, Harbin Institute of Technology
}
%
% List your degree(s), licences, etc. here if you like.
%\def\What{, Your degrees, etc.}
%
% Set the name of your Department or School here
% I honestly don't know why the negative spacing is necessary to get the alignment of the first line correct. This must be a ``\tikz'' thing.
%%%%%%%%%%%%%%%%%% School or Department %%%%%%%%%%%%%%%
\def\Where{\hspace{-1.2mm}\textbf{\color{HITblue}
School of Computing,\\ Harbin Institute of Technology
}}
%%%%%%%%%%%% Additional Contact Information %%%%%%%%%%%
%
% Set your preferred primary contact address here.
\def\Address{No.92, Xidazhi Street,\\
Nangang District,}
%
\def\CityZip{Harbin, Heilongjiang, 150001}
%
% Set your HIT e-mail here
\def\Email{\textbf{\color{HITblue}E-mail}: xxx@hit.edu.cn}
%
% Set your preferred contact number here
\def\TEL{\textbf{\color{HITblue}Phone}: 86-xxxx-xxxxxxxx}
%
% Set your department or personal website here
\def\URL{\textbf{\color{HITblue}URL}: http://homepage.hit.edu.cn/XXX}
%
%%%%%%%%%%%%%%%% 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{
HIT $\cdot$
~School of Computing $\cdot$
~No.92, Xidazhi Street $\cdot$
~Harbin, China P.R} }
% \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=0.40]{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}{
Some University\\
Some Addresss\\
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{}{}{}
% The ``\lipsum[1-8]" command just fills the letter with 8 paragraphs of Latin for the purposes of filler. Unless you really want to send filler Latin to someone, you will replace this command with actual text. Do that here:
%
% \lipsum[1-5]
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue eu neque. Pellentesque habitant morbitristique senectus et netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra metusrhoncus sem. Nulla et lectus vestibulum urna fringilla ultrices. Phasellus eu tellus sit amet tortor gravida placerat. Integer sapien est, iaculis in, pretium quis, viverra ac, nunc. Praesent eget semvel leo ultrices bibendum. Aenean faucibus. Morbi dolor nulla, malesuada eu, pulvinar at, mollisac, nulla. Curabitur auctor semper nulla. Donec varius orci eget risus. Duis nibh mi, congue eu, accumsan eleifend, sagittis quis, diam. Duis eget orci sit amet orci dignissim rutrum.
Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, wisi. Morbi auctor lorem nonjusto. Nam lacus libero, pretium at, lobortis vitae, ultricies et, tellus. Donec aliquet, tortor sed accumsan bibendum, erat ligula aliquet magna, vitae ornare odio metus a mi. Morbi ac orci et nisl hendrerit mollis. Suspendisse ut massa. Cras nec ante. Pellentesque a nulla. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aliquam tincidunt urna. Nulla ullamcorper vestibulum turpis. Pellentesque cursus luctus mauris.
Nulla malesuada porttitor diam. Donec felis erat, congue non, volutpat at, tincidunt tristique, libero. Vivamus viverra fermentum felis. Donec nonummy pellentesque ante. Phasellus adipiscing semper elit. Proin fermentum massa ac quam. Sed diam turpis, molestie vitae, placerat a, molestie nec, leo. Maecenas lacinia. Nam ipsum ligula, eleifend at, accumsan nec, suscipit a, ipsum. Morbi blandit ligula feugiat magna. Nunc eleifend consequat lorem. Sed lacinia nulla vitae enim. Pellentesque tincidunt purus vel magna. Integer non enim. Praesent euismod nunc eu purus. Donec bibendum quam in tellus. Nullam cursus pulvinar lectus. Donec et mi. Nam vulputate metus eu enim. Vestibulum pellentesque felis eu massa.
Quisque ullamcorper placerat ipsum. Cras nibh. Morbi vel justo vitae lacus tincidunt ultrices. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. In hac habitasse platea dictumst. Integer tempus convallis augue. Etiam facilisis. Nunc elementum fermentum wisi. Aenean placerat. Ut imperdiet, enim sed gravida sollicitudin, felis odio placerat quam, ac pulvinar elit purus eget enim. Nunc vitae tortor. Proin tempus nibh sit amet nisl. Vivamus quis tortor vitae risus porta vehicula.
Fusce mauris. Vestibulum luctus nibh at lectus. Sed bibendum, nulla a faucibus semper, leo velit ultricies tellus, ac venenatis arcu wisi vel nisl. Vestibulum diam. Aliquam pellentesque, augue quis sagittis posuere, turpis lacus congue quam, in hendrerit risus eros eget felis. Maecenas eget erat in sapien mattis porttitor. Vestibulum porttitor. Nulla facilisi. Sed a turpis eu lacus commodo facilisis. Morbi fringilla, wisi in dignissim interdum, justo lectus sagittis dui, et vehicula libero dui cursus dui. Mauris tempor ligula sed lacus. Duis cursus enim ut augue. Cras ac magna. Cras nulla. Nulla egestas. Curabitur a leo. Quisque egestas wisi eget nunc. Nam feugiat lacus vel est. Curabitur consectetuer.
%%%%%%% ``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}