texblog

Writing a letter in Latex

Letters are still rarely written in Latex, even though its so simple and straight forward. With this post we hope to convince at least some people to write letters using Latex. The advantages are obvious, you get a standard layout (which can be changed if necessary), the output is in PDF-format and last but not least, Latex is fun!

The following is a sample code, which can be used for writing a letter in Latex.

\documentclass{letter}
\signature{Your name}
\address{Street \\ City \\ Country}
\begin{document}
\begin{letter}{Company name \\ Street\\ City\\ Country}
\opening{Dear Sir or Madam:}
\dots
\closing{Yours Faithfully,}
\ps{P.S. Here goes your ps.}
\encl{Enclosures.}
\end{letter}
\end{document}

 
Example output

For more space before or after paragraphs, openings or closings use \vspace{1cm}.

For a complete list of available commands or if you need to change margins, have a look at the letter style file (letter.sty)

Exit mobile version