IAM

OPENSOURCEFAN STUDYING
STUDYINGCOMPUTERSCIENCEANDMATH COMPUTERSCIENCE

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

SNIPPET

Minimal LaTeX letter using the scrlttr2 document class. The example is part of a repository on GitHub containing more or less useful LaTeX snippets.

letter.tex
\documentclass[%
	backaddress=off,
	fromalign=locationright,
	fromname,
	fromaddress,
	fromphone,
	fromemail,
]{scrlttr2}

\usepackage{lipsum}

\setkomavar{fromname}{Sender Name}
\setkomavar{fromaddress}{Sender Street\\Sender City}
\setkomavar{fromphone}{Sender Phone}
\setkomavar{fromemail}{Sender E-Mail}

\begin{document}
\begin{letter}{%
	Recipient Name\\
	Recipient Street\\
	Recipient City
}
\opening{Dear Sir or Madam,}


\lipsum[1]

\setkomavar{subject}{Subject}
\closing{Best Regards,}

\ps PS: Lorem ipsum dolor sit amet, consectetur adipiscing elit. In interdum, dolor non sollicitudin viverra, odio tellus pretium lectus, sed vestibulum libero lorem a tellus. Pellentesque.
\encl{Wikipedia.}

\end{letter}
\end{document}
letter.pdf
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: