Creating Let­ters Ac­cord­ing to DIN with Latex

I have been using Latex for several years as a substitute for Microsoft Word or Libre-Office. As everyone may know, we have to write infinite letters to different – external or internal – addressees. There was a moment in the past when I was fed up with the whole ‘writing a letter’-process. Why? Because starting Word, formatting all the different parts of the letter, seems to be more time consuming than writing the content itself.

Since I have gathered enough experience with Latex from several seminar thesis and diploma submission during my studies, I started to search weather there is a German document class which I am able to use to my correspondences. And I found a very cool _Latex_document class called dinbrief1.

The dinbrief document class enhanced and accelerated greatly the entire ‘writing a letter’-process.

TeX Live document production system

I assume that you have already installed a working TeX Live version on your system. Ubuntu users can install the required packages with:

Terminal window
sudo apt-get install texlive texlive-lang-german texlive-doc-de texlive-latex-extra
Gummi, a simple LaTeX editor

I recommend [Gummi]2 to everyone who wants to work with LaTeX. It is simple to use and shows an automatically generated preview of your document as you work.

Simple Letter Template

I use this template for all letters I write:

letter.tex
\documentclass[a4paper, 11pt]{dinbrief}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{ae}
\usepackage{textcomp}
\address{Your name \\ Your Street \\ Your city}
\backaddress{Back-Your name \\ Back-Your Street \\ Back-City}
\centeraddress
\signature{Your Signature}
\place{Your-Date-Place}
\subject{Letter-Subject}
\begin{document}
\begin{letter}{Addressee Name \\ Addressee Street \\ Addressee City}
\opening{Sehr geehrte Damen und Herren,}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
erat, sed diam voluptua. At vero eos et accusam et justo duo dolores
et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est
Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur
sadipscing
elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore
magna aliquyam erat, sed diam voluptua. At vero eos et accusam et
justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea
takimata sanctus est Lorem ipsum dolor sit amet.
\closing{Dankend erwarteten wir Ihre Antwort und verbleiben mit
freundlichen Grüßen}
\end{letter}
\end{document}

And the result looks like that:

blog creating letter according din latex 000.png

Additional Commands

The dinbrief  has some more commands which I want to mention. I like these commands especially when I write letters to authorities and I just want to avoid any mistakes regarding what my letter is referring to. For this purpose the creators of the document class provides some additional commands:

CommandDescription
phoneSets the area code and phone number of the sender.
yourmailAdds a sender-provided process or document identifier to show what the response refers to.
writerThe clerk’s name who handled your issue.
signThe sender’s signature, if available.

Just for the demonstration purposes I adjusted the above template and add some of the described commands:

letter.tex
\documentclass[a4paper, 11pt]{dinbrief}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{ae}
\usepackage{textcomp}
\address{Your name \\ Your Street \\ Your city}
\backaddress{Back-Your name \\ Back-Your Street \\ Back-City}
\centeraddress
\signature{Your Signature}
\place{Your-Date-Place}
\yourmail{01.04.93}
\sign{My-Sign}
\yourmail{Your-Sign}
\phone{040}{123456}
\subject{Letter-Subject}
\begin{document}
\begin{letter}{Addressee Name \\ Addressee Street \\ Addressee City}
\opening{Sehr geehrte Damen und Herren,}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
erat, sed diam voluptua. At vero eos et accusam et justo duo dolores
et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est
Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur
sadipscing
elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore
magna aliquyam erat, sed diam voluptua. At vero eos et accusam et
justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea
takimata sanctus est Lorem ipsum dolor sit amet.
\closing{Dankend erwarteten wir Ihre Antwort und verbleiben mit
freundlichen Grüßen}
\end{letter}
\end{document}

And the final document:

blog creating letter according din latex 001.png

Footnotes

  1. dinbrief – German letter DIN style. CTAN Comprehensive TeX Archive Network. Published November 12, 2017. Accessed November 12, 2017. ↩

  2. Gummi Contributors. Gummi. GitHub. Published November 12, 2017. Accessed November 12, 2017. ↩