res.cls
is really old. Originally it was a LaTeX 2.09 document style, it has been modified to work with LaTeX2e, the last update was 2001, i.e. nearly 12 years ago. Today there are more choices, have a look at: LaTeX template for resume/curriculum vitae. Old doesn't mean bad, but generally development goes on.
letter
is a standard class, but also here be aware that there are very flexible alternative letter classes, such as scrlttr2.
No matter which classes you will finally combine, I would not try to match the design of one with means of the other.
You could use absolute positioning on the page in both classes using textpos
, eso-pic
, atbegshi
, everyshi
, or TikZ.
My preferred way was using scrlttr2
, with a nicely designed header and footer, creating also an empty letter with it (just header and footer), and using eso-pic
or one of the other packages above to include it as "background" for my resume and included certicficates, to have a consistent header/footer layout with different classes.
Sometimes you may have to cheat a little...
Below I set the date as part of the address, leaving the date
empty:
\documentclass{scrlttr2}
%\usepackage{fontspec} % Allows font customization
%\usepackage{marvosym} % Allows the use of symbols
\usepackage[english]{babel} % Required to compile in Windows
\usepackage{graphicx}
\setlength\parindent{0pt} % Removes all indentation from paragraphs
%\defaultfontfeatures{Mapping=tex-text}
%\setmainfont {Adobe Garamond Pro} % Main document font
%\setsansfont {Cambria} % Used in the from address line above the to address
\renewcommand{\normalsize}{\fontsize{11.5}{12}\selectfont} % Sets the font size and leading
%\setkomavar{date}{\flushleft\vspace{-\baselineskip}\today\par}
\setkomavar{date}{\vspace*{-\baselineskip}}
%-------------------------------------------------------------------------------------- --
% HEADER SECTION
%----------------------------------------------------------------------------------------
\setkomavar{firsthead}{
\centering
{%\addfontfeature{LetterSpace=20.0}
\fontsize{36}{36}\selectfont\scshape Peter Maguire}\\[5mm]
\fontsize{21}{21}\selectfont\scshape My Job \\ My Institution } % Your current job title
\begin{document}
%----------------------------------------------------------------------------------------
% COVER LETTER CONTENTS
%-------------------------------------------------------------------------------------- --
\begin{letter}{ % Address of the company you are applying to
\today \par \vspace*{2\baselineskip}
Biotech Company \\
123 Street Street \\
Washington, CA 12345
}
\opening{Biotech Company HR Manager,}
\begin{sloppypar}
Main section here \\
\end{sloppypar}
Sincerely, \\
Peter Maguire
%-------------------------------------------------------------------------------------- --
\end{letter}
\end{document}
Best Answer
I didn't find any hint in the
newlfm
documentation about that particular placement for the date; the only available options areleft
(the default) andright
, but none of those will place the date aligned with the\namefrom
block; one possible solution would be to use thedateno
class option to suppress the date that is automatically included and then, include it manually using the\namefrom
block:and then: