IAM

OPENSOURCEFAN STUDYING
STUDYINGCOMPUTERSCIENCEANDMATH COMPUTERSCIENCE

Check out the latest superpixel benchmark — Superpixel Benchmark (2016) — and let me know your opinion! @david_stutz
26thNOVEMBER2016

SNIPPET

Simple, English letter with subject in LaTeX using the letter document class. The example is part of a collection of LaTeX snippets on GitHub.

english-letter.tex
\documentclass{letter}

\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{eurosym}
\renewcommand{\familydefault}{\sfdefault}
%\renewcommand{\familydefault}{\rmdefault}

\addtolength{\voffset}{-0.5in}
\addtolength{\hoffset}{-0.3in}
\addtolength{\textheight}{2cm}

\address{Sender\\Sender Address 1\\Sender Address 2\\Sender Address 3\\Phone\\Mail}

\begin{document}

\begin{letter}{Recipient\\Recipient Address 1\\Recipient Address 2\\Recipient Address 2}

\opening{\textbf{Subject Line}\\\\[9px]Dear Sir or Madam,}
 
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ac tellus odio. Aenean in ipsum gravida, maximus leo a, dapibus eros. Aliquam ante nisl, rutrum sed fermentum a, laoreet et eros. Donec eget justo ut sapien ornare suscipit vitae eget justo. Sed aliquam, risus non tempor aliquam, arcu lorem accumsan nisl, ut cursus purus mauris eu eros. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Sed ac semper libero. Quisque convallis libero leo, vel pretium diam convallis non. Donec tincidunt nibh iaculis iaculis viverra.

Best regards,
\vskip 2em
Sender Signature

\encl{Enclosure 1, enclosure 2}

\end{letter}
 
\end{document}
english-letter.pdf
english-letter

What is your opinion on the code snippet? Is it working? Let me know your thoughts in the comments below or using the following platforms: