forked from momu/xetex-briefvorlage-internetmarke
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mm
committed
Jul 6, 2013
1 parent
7972f64
commit ec58ac2
Showing
7 changed files
with
355 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.aux | ||
*.log | ||
brief_org.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,24 @@ | ||
xetex-briefvorlage-internetmarke | ||
================================ | ||
|
||
Eine Xetex Briefvorlage, die die Internetmarke der Deutschen Post im Adressfeld einbindet. | ||
Eine XeTex Briefvorlage, die die Internetmarke der Deutschen Post - | ||
https://internetmarke.deutschepost.de - im Adressfeld einbindet. | ||
|
||
Dateien | ||
-------------------- | ||
### brief.tex | ||
Die Briefvorlage kompilierbar mit XeTex. | ||
|
||
### letter_options.lco | ||
Die Letter Options (Absenderdaten usw.) die im Brief verwendet werden. | ||
|
||
### din5008frame.tex | ||
Rahmen und Hilfslinien nach Din 5008 von @Stefanqn. Die Datei kann im Brief eingebunden | ||
werden, um das Layout zu überprüfen. | ||
|
||
### internetmarke.pdf | ||
Das PDF mit der Internetmarke. Muss auf https://internetmarke.deutschepost.de mit der Option | ||
„Adresse hinzufügen“ generiert werden. Die Adressen selbst können leer sein. | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
%% | ||
% (German) XeTex letter template based on the template | ||
% from Jan-Philip Gehrcke | ||
% http://gehrcke.de -- [email protected] -- November 2009 | ||
% | ||
% Source: http://gehrcke.de/2009/12/latex-briefvorlage/ | ||
%% | ||
|
||
% DIV and BCOR settings result in smaller/wider side margins | ||
% see scrguide @ | ||
% http://www.tex.ac.uk/tex-archive/macros/latex/contrib/koma-script/scrguide.pdf | ||
|
||
% so ist der brief nicht strikt nach din 5008 | ||
% mit den werten für {geometry} wird er zu einem din 5008 typ b brief (der satzspiegel (ränder)) ändern sich | ||
% das ist aber für private briefe nciht zwingend vorgeschrieben und sieht laut latexexperten auch | ||
% typographisch falsch aus | ||
% | ||
|
||
\documentclass[% | ||
%nonsymm, | ||
fontsize=11pt, %Schriftgroesse (12pt default) | ||
paper=a4, %Papierformat (A4 default) | ||
%DIV=12, %Seitenaufteilung (12 default -- siehe scrguide.pdf), hat einfluss auf die ränder | ||
% BCOR=5mm, %Zusaetzlicher Rand auf der Innenseite zur Bindekorrektur | ||
parskip=half*, %Absatz statt Einzug | ||
%draft, %Draftmodus zum Debugging | ||
%moretext, %DINmtext statt DIN | ||
%DINfalse, %Satzspiegel scrlttr2-Standard, aber nicht strikt DIN5008-konform! | ||
% nonsymm, %historisch :) | ||
% nonexthead, %leerer nexthead auf den Folgeseiten | ||
ngerman, %Briefsprache Deutsch | ||
% english, %Briefsprache Englisch | ||
version=last, | ||
fromlogo, | ||
]{scrlttr2} | ||
\LoadLetterOption{letter_options} | ||
\usepackage{xltxtra} | ||
|
||
\usepackage{polyglossia} | ||
\usepackage{fontspec} | ||
|
||
\setmainlanguage[latesthyphen=true,babelshorthands=true]{german} | ||
\usepackage{adjustbox} | ||
\usepackage[absolute]{textpos} | ||
|
||
\defaultfontfeatures{Mapping=tex-text} | ||
%\setromanfont{Linux Libertine O} | ||
%\setsansfont{Linux Biolinum O} | ||
\setmainfont{Vollkorn} | ||
% overall sans serif font | ||
%\renewcommand{\familydefault}{\sfdefault} | ||
|
||
%\enlargethispage{\baselineskip} % alles ein wenig quetschen, damit es auf eine seite passt | ||
|
||
% enable to get din5008 outlines | ||
%\input{din5008frame.tex} | ||
|
||
\begin{document} | ||
|
||
\setkomavar{fromlogo}{% | ||
\setlength{\unitlength}{1mm} | ||
\begin{picture}(0,0) | ||
\put(42,-17){ | ||
\adjincludegraphics[trim=50mm 247mm 122mm 38mm,clip,]{internetmarke.pdf} | ||
} | ||
\end{picture} | ||
} | ||
|
||
\setkomavar{subject}{Ihr Schreiben vom ...} | ||
\setkomavar{date}{\today} | ||
\setkomavar{place}{Stadt} | ||
% German address | ||
\begin{letter}{ | ||
|
||
Empfänger\\ | ||
Straße 1\\ | ||
12345 Stadt | ||
} | ||
|
||
\opening{Sehr geehrte Damen und Herren,} | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauris. | ||
Maecenas congue ligula ac quam viverra nec consectetur ante hendrerit. Donec et mollis dolor. | ||
Praesent et diam eget libero egestas mattis sit amet vitae augue. | ||
|
||
Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu | ||
vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Aenean ut gravida lorem. Ut turpis felis, pulvinar a semper sed, adipiscing id dolor. Pellentesque auctor | ||
nisi id magna consequat sagittis. Curabitur dapibus enim sit amet elit pharetra tincidunt feugiat nisl imperdiet. | ||
Ut convallis libero in urna ultrices accumsan. Donec sed odio eros. Donec viverra mi quis quam pulvinar at | ||
malesuada arcu rhoncus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. | ||
In rutrum accumsan ultricies. Mauris vitae nisi at sem facilisis semper ac in est. | ||
|
||
|
||
%\nopagebreak[3] | ||
\closing{Mit freundlichen Grüßen} | ||
%\hspace{-2cm} %hochschieben | ||
%\includegraphics[width=0.3\textwidth]{../unterschrift.jpg} | ||
%\hspace{2cm} % wieder runter | ||
|
||
%\begin{textblock}{5}(1,11.6) % zweite Zahl in der zweiten Klammer verändert die vertikale Position der Unterschrift | ||
% \includegraphics[width=5.5cm]{../unterschrift.jpg} | ||
%\end{textblock} | ||
|
||
\setkomavar*{enclseparator}{Anlage}% | ||
\encl{Anlage I\\Anlage II}% | ||
%\cc{Medea Mittel, Willi Weg} | ||
%\ps{Nicht persönlich nehmen!} | ||
\end{letter} | ||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
% Source: https://github.com/Stefanqn/Bewerbung/blob/master/DIN5008/din5008frame.tex | ||
% | ||
% DIN 5008 nach dem Stand vom April 2011. | ||
% A für Geschaeftsbriefe mit kleinem Briefkopf | ||
% B für Geschaeftsbriefe mit erweitertem Briefkopf | ||
|
||
% Links: | ||
% http://www.luk-korbmacher.de/Schule/Text/din676.htm <-- ref | ||
% http://www.din5008.de/p0400140.htm <-- genauer? | ||
% http://www.helmol.de/din/03_briefb.htm <-- DIN 5008-B-A4-IB | ||
% http://www.druckeselbst.de/briefbogen/din676.php | ||
% DIN 676 ??? | ||
|
||
\usepackage{picture,eso-pic,etoolbox,tikz} %xstring | ||
\AddToShipoutPicture{% | ||
\setlength\fboxsep{0pt} %framebox border 0pt | ||
% | ||
% === Switch-Defs === | ||
\newtoggle{printN}% | ||
\newtoggle{printA}% | ||
\newtoggle{printB}% | ||
\newtoggle{printX}% | ||
\newtoggle{printT}% | ||
\newtoggle{letter} | ||
|
||
% === Switches === % toggletrue togglefalse | <<< Hier editieren >>> | ||
\toggletrue{printN} % zeigt Gemeinsamkeiten | ||
\togglefalse{printA} % zeige DIN 5008 A ? | ||
\toggletrue{printB}% zeige DIN 5008 B ? | ||
\toggletrue{printX} % zeigt extras | ||
\toggletrue{printT}% Spielwiese | ||
\toggletrue{letter} | ||
|
||
% === Color-Defs === | ||
\newcommand \colorN {gray} % normal / gemeinsam | ||
\newcommand \colorA {green} % A | ||
\newcommand \colorB {cyan} % B | ||
\newcommand \colorX {orange} % extras | ||
\newcommand \colorT {red} % Tests, obsolet | ||
|
||
% === Guards & Color === | ||
\newcommand \printN [1]{\ifhmode\unskip\fi\iftoggle{printN}{{\color{\colorN}{#1}}}{}\ignorespaces}% | ||
\newcommand \printA [1]{\ifhmode\unskip\fi\iftoggle{printA}{{\color{\colorA}{#1}}}{}\ignorespaces}% | ||
\newcommand \printB [1]{\ifhmode\unskip\fi\iftoggle{printB}{{\color{\colorB}{#1}}}{}\ignorespaces}% | ||
\newcommand \printX [1]{\ifhmode\unskip\fi\iftoggle{printX}{{\color{\colorX}{#1}}}{}\ignorespaces}% | ||
\newcommand \printT [1]{\ifhmode\unskip\fi\iftoggle{printT}{{\color{\colorT}{#1}}}{}\ignorespaces}% | ||
|
||
% === Box-Defs === | ||
\def \qBox(#1,#2)(#3,#4)[#5]#6{\put(#1,#2){\color{gray}\colorbox{#5!10}{\framebox(#3,#4){\parbox[t][#4][t]{#3}{#6}}}}} % 2 following rows with color break X coord. | ||
\def \boxN(#1,#2)(#3,#4)#5{\iftoggle{printN}{\qBox(#1,#2)(#3,#4)[\colorN]{#5}}{}}% | ||
\def \boxA(#1,#2)(#3,#4)#5{\iftoggle{printA}{\qBox(#1,#2)(#3,#4)[\colorA]{#5}}{}}% | ||
\def \boxB(#1,#2)(#3,#4)#5{\iftoggle{printB}{\qBox(#1,#2)(#3,#4)[\colorB]{#5}}{}}% | ||
\def \boxX(#1,#2)(#3,#4)#5{\iftoggle{printX}{\qBox(#1,#2)(#3,#4)[\colorX]{#5}}{}}% | ||
\def \boxT(#1,#2)(#3,#4)#5{\iftoggle{printT}{\qBox(#1,#2)(#3,#4)[\colorT]{#5}}{}}% | ||
|
||
% === Marker-Defs === | ||
\def \markerPriv(#1,#2){\put(#1,#2){\line(0,-1){2mm}}\put(#1,#2){\line(1,0){2mm}}}% | ||
\def \markN(#1,#2){\ifhmode\unskip\fi\iftoggle{printN}{\color{\colorN}\markerPriv(#1,#2)}{}\ignorespaces} %norm | ||
\def \markA(#1,#2){\ifhmode\unskip\fi\iftoggle{printA}{\color{\colorA}\markerPriv(#1,#2)}{}\ignorespaces} %norm | ||
\def \markB(#1,#2){\ifhmode\unskip\fi\iftoggle{printB}{\color{\colorB}\markerPriv(#1,#2)}{}\ignorespaces} %norm | ||
\def \markC(#1,#2){\ifhmode\unskip\fi\iftoggle{printX}{\color{\colorX}\markerPriv(#1,#2)}{}\ignorespaces} %norm | ||
\def \markD(#1,#2){\ifhmode\unskip\fi\iftoggle{printT}{\color{\colorT}\markerPriv(#1,#2)}{}\ignorespaces} %norm | ||
|
||
\iftoggle{letter}{% | ||
\AtTextCenter{% Farb Legende | ||
\makebox(0,0)[c]{\rotatebox{45}{\color{gray}{% | ||
\Huge \printN{DIN 5008}}% | ||
\printA{ A}% | ||
\printB{ B}% | ||
\printX{ X}% | ||
\printT{ T}% | ||
}}% | ||
}% | ||
}{}% | ||
|
||
|
||
\newcommand \linksKopf {20mm} % normaler Abstand links Kopf | ||
\newcommand \linksStd {25mm} % normaler Abstand links | ||
\AtPageUpperLeft{% | ||
% == Fluchtlinien == | ||
%\multiput(\linksKopf,0)(0,-.01\paperheight){100}{\line(0,-1){.005\paperheight}} | ||
\printN{\multiput(\linksKopf,0)(0,-.01\paperheight){100}{\line(0,-1){.005\paperheight}}} % Anschriftsfeld: 20 mm vom linken Blattrand | ||
\printN{\multiput(\linksStd,0)(0,-.01\paperheight){100}{\line(0,-1){.005\paperheight}}} % Fluchtlinie: 25 mm vom linken Blattrand | ||
\put(\paperwidth,0){% von rechts nach links negative vektoren verwenden | ||
\printN{\multiput(-10mm,0)(0,-.01\paperheight){100}{\line(0,-1){.005\paperheight}}}% % Zeilenende: 10 mm vom rechten Blattrand | ||
\printX{\multiput(-\linksStd,0)(0,-.01\paperheight){100}{\line(0,-1){.005\paperheight}}}% sym. Bsp | ||
\printX{\multiput(-20mm,0)(0,-.01\paperheight){100}{\line(0,-1){.005\paperheight}}}% sym. Bsp | ||
}% | ||
|
||
% == Briefkopf == [A] 27 mm bzw. [B] 45 mm vom oberen Blattrand | ||
\printX{\multiput(0,-16.9mm)(.01\paperwidth,0){100}{\line(1,0){.005\paperwidth}}}% | ||
\printA{\multiput(0,-27mm)(.01\paperwidth,0){100}{\line(1,0){.005\paperwidth}}}% | ||
\printB{\multiput(0,-45mm)(.01\paperwidth,0){100}{\line(1,0){.005\paperwidth}}}% | ||
|
||
% == Anschrift == | ||
\newcommand \anschrift {% | ||
Anschrift-1. Zeilen dritte Zeile ZV. o L\\ | ||
2. Zeile zweite Zeile Zusatzvermerke oder leer\\ | ||
3. Zeile erste Zeile Zusatzvermerke oder leer\\ | ||
4. Zeile Name bzw. Firma\\ | ||
5. Namenszusatz oder Str/Hausnummer\\ | ||
6. Str/Hausnummer(Postfach) oder PLZ/Ort\\ | ||
7. PLZ/Ort oder Länderangabe bzw. leer\\ | ||
8. Länderangabe bzw. leer\\ | ||
% 9. Zeile leer | ||
} | ||
\iftoggle{letter}{% | ||
\boxA(\linksKopf,-33.9mm-40mm-5mm)(85mm,40mm){\anschrift} | ||
\boxA(\linksKopf,-33.9mm-5mm)(85mm,5mm){AnschriftAbsender} | ||
%\boxB(\linksKopf,-50.9mm-45mm)(85mm,45mm){} | ||
\boxB(\linksKopf,-50.9mm-40mm-5mm)(85mm,40mm){\anschrift} | ||
\boxB(\linksKopf,-50.9mm-5mm)(85mm,5mm){AnschriftAbsender} | ||
%8,46 mm Abstand zwischen dem Anschriftenfeld bzw. dem Informationsblock und den Leitwoertern der Bezugszeichenzeile (2 Leerzeilen) | ||
|
||
|
||
% ==Informationsblock== | ||
\boxA(\paperwidth-10mm-75mm,-33.9mm-40mm)(75mm,40mm){Informationsblock} % Informationsblock mindestens 40 mm hoch (variabel), 75 mm breit | ||
\boxB(\paperwidth-10mm-75mm,-50.8mm-40mm)(75mm,40mm){Informationsblock} % Informationsblock mindestens 40 mm hoch (variabel), 75 mm breit | ||
%\printA{\multiput(125mm,0)(0,-.01\paperheight){25}{\line(0,-1){.005\paperheight}}} % Beginn Infoblock | ||
|
||
|
||
% ---------------- Marken (nach/ueber Boxen) ---------------- | ||
% == Kommunikationszeile / Absender, Datum etc. == | ||
% -- Leitwoerter der Kommunikationszeile -- | ||
\markA(\linksKopf,-63.5mm) | ||
\markB(\linksKopf,-80.4mm) | ||
% -- Text der Kommunikationszeile -- | ||
\markA(\linksKopf,-67.7mm) | ||
\markB(\linksKopf,-84.7mm) | ||
|
||
% == Bezugszeichenzeile == | ||
\markA(\linksStd,-80.4mm) % Leitwoerter der Bezugszeichenzeile | ||
\markA(175mm,-80.4mm) % Datum | ||
% Datum hier als Teil der Bezugszeichenzeile - sonst eine Zeile unter Empfaengerangaben als Teil des Infoblocks linksbuendig | ||
\printA{\put(175mm,-80.4mm-\baselineskip){\parbox[b][\baselineskip][t]{75mm}{Datum}}} | ||
\markB(\linksStd,-97.4mm) % Leitwoerter der Bezugszeichenzeile | ||
\markB(175mm,-97.4mm) % Datum | ||
\printB{\put(175mm,-97.4mm-\baselineskip){\parbox[b][\baselineskip][t]{75mm}{Datum}}} | ||
% -- Text der Bezugszeichenzeile -- | ||
\markA(\linksStd,-84.7mm) | ||
\markB(\linksStd,-101.6mm) | ||
|
||
% == Betreff == (bei einer Textzeile in der Bezugszeichenzeile) | ||
\markA(\linksStd,-97.4mm) | ||
\printA{\put(\linksStd,-97.4mm-5mm){\parbox[b][5mm][t]{30mm}{Betreff}}} | ||
\markB(\linksStd,-114.3mm) | ||
\printB{\put(\linksStd,-114.3mm-5mm){\parbox[b][5mm][t]{30mm}{Betreff}}} | ||
% Dem Betreffvermerk folgen zwei Leerzeilen. | ||
% Der Anrede folgt eine Leerzeile. | ||
}{} | ||
\printX{\multiput(0,-267mm)(.01\paperwidth,0){100}{\line(1,0){.005\paperwidth}}}% vorgeschlagene letzte Zeile | ||
}%DINmtext | ||
|
||
\AtPageLowerLeft{% | ||
\printN{\multiput(0,16.9mm)(.01\paperwidth,0){100}{\line(1,0){.005\paperwidth}}}% max letzte Zeile | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
%% | ||
% (German) letter template by Jan-Philip Gehrcke | ||
% http://gehrcke.de -- [email protected] -- November 2009 | ||
% Source: http://gehrcke.de/2009/12/latex-briefvorlage/ | ||
%% | ||
|
||
\ProvidesFile{letter_options.lco}[letter-class-option file] | ||
%% strikt DIN 5008: | ||
%\RequirePackage[left=24.1mm,% | ||
%right=24.1mm,% | ||
%bottom=4.5cm% | ||
%]{geometry} | ||
|
||
% symbols: (cell)phone, email | ||
\RequirePackage{marvosym} | ||
% for gray color in header | ||
\RequirePackage{color} | ||
|
||
% for explanation and more options see scrguide @ | ||
% http://www.tex.ac.uk/tex-archive/macros/latex/contrib/koma-script/scrguide.pdf | ||
% comment out, what you don't want (e.g. `fromphone`). | ||
\KOMAoptions{ | ||
foldmarks=true, | ||
foldmarks=BlmTP, | ||
%fromurl=true, | ||
fromemail=true, | ||
fromphone=true, | ||
fromalign=right, | ||
fromrule=aftername, | ||
%fromemail=true, | ||
footsepline=off | ||
} | ||
|
||
% The header (sender) can be styled with `fromrule` (above) | ||
% and with custom colors (e.g. see below) and with special font styles | ||
% set by `\setkomafont` (e.g. see below, too) | ||
|
||
% define gray for header | ||
%\definecolor{mygray}{gray}{.55} | ||
% define blue for address | ||
%\definecolor{myblue}{rgb}{0.25,0.45,0.75} | ||
|
||
\setkomavar{fromname}{Foo Bar} | ||
\setkomafont{fromname}{\bfseries\LARGE} | ||
%\setkomafont{fromrule}{\color{mygray}} | ||
%\setkomafont{fromname}{\bfseries\color{mygray}\LARGE} | ||
%\setkomafont{fromrule}{\color{mygray}} | ||
%\setkomafont{addressee}{\small} | ||
|
||
\setkomavar{fromaddress}{Straße 1\\12345 Stadt} | ||
\setkomavar{fromphone}[Telefon: ]{+49\,123\,1234567} | ||
\setkomavar{fromemail}{[email protected]} | ||
%\setkomavar{fromurl}[]{http://url.de} | ||
%\setkomafont{fromaddress}{\small\rmfamily\mdseries\slshape\color{myblue}} | ||
|
||
\setkomavar{backaddress}{Foo Bar, Straße 1, 12345 Stadt} | ||
|
||
\setkomavar{signature}{Foo Bar} | ||
% signature same indention level as rest | ||
\renewcommand*{\raggedsignature}{\raggedright} | ||
% space for signature | ||
%\@setplength{sigbeforevskip}{1.7cm} | ||
%\@setplength{sigbeforevskip}{11pt} | ||
\@setplength{firstheadvpos}{17mm} % Abstand des Absenderfeldes vom Top | ||
\endinput |