|
1 |
% ----------------------------------------------------------
|
|
2 |
% letter.lco
|
|
3 |
% Steuerdatei Briefklasse f-tex
|
|
4 |
%
|
|
5 |
% Changelog: see gitlog
|
|
6 |
\newcommand{\ftLcoVTversion}{1.1-u (03.01.2012)}
|
|
7 |
%
|
|
8 |
% Lizenz
|
|
9 |
% http://www.gnu.de/licenses/gpl-3.0.html
|
|
10 |
%
|
|
11 |
% Siehe ./README
|
|
12 |
%
|
|
13 |
% Autor: Wulf Coulmann scripts_at_gpl.coulmann.de
|
|
14 |
%
|
|
15 |
%
|
|
16 |
% ----------------------------------------------------------
|
|
17 |
|
|
18 |
|
|
19 |
\begingroup
|
|
20 |
\makeatletter
|
|
21 |
\@latex@warning@no@line{ #### this is letter.lco \ftLcoVTversion #####}
|
|
22 |
\endgroup
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
\ProvidesFile{letter.lco}[%
|
|
27 |
2002/07/09 v0.9a LaTeX2e unsupported letter-class-option]
|
|
28 |
|
|
29 |
\KOMAoptions{foldmarks=false}
|
|
30 |
\usepackage{graphicx}
|
|
31 |
\usepackage[utf8]{inputenc}
|
|
32 |
\usepackage{ngerman}
|
|
33 |
\usepackage{lmodern}
|
|
34 |
\usepackage{xcolor}
|
|
35 |
\usepackage{watermark}
|
|
36 |
\usepackage{xifthen}
|
|
37 |
|
|
38 |
|
|
39 |
% ================== settings ==============================
|
|
40 |
|
|
41 |
% Name der pdf Datei die den Briefkopf enthaelt
|
|
42 |
\newcommand{\bgPdfName}{letter_head.pdf}
|
|
43 |
|
|
44 |
% Hintergrund pdf nur bei erster Dokumentseite [1|0]
|
|
45 |
\newcommand{\bgPdfFirstPageOnly}{1}
|
|
46 |
|
|
47 |
% Hintergrundpdf nur bei versand per email [1|0]
|
|
48 |
% (setze diesen Wert auf 1, wenn auf bereits Bedruktes Briefpapier ausgedruckt werden soll)
|
|
49 |
\newcommand{\bgPdfEmailOnly}{0}
|
|
50 |
|
|
51 |
% Trennlienie unter der Seitenkopfzeile ab Seite 2 ff.
|
|
52 |
\KOMAoptions{headsepline=on}
|
|
53 |
|
|
54 |
% der Abstand zu den Fusszeilen
|
|
55 |
\addtolength{\textheight}{23mm}
|
|
56 |
|
|
57 |
% zusaetzlicher Zwischenraum zur Fusszeile ab Seite 2 ff.
|
|
58 |
% (nur bei bgPdfFirstPageOnly = 1)
|
|
59 |
\addtolength{\footskip}{10mm}
|
|
60 |
|
|
61 |
|
|
62 |
% ================== end settings ==============================
|
|
63 |
|
|
64 |
|
|
65 |
|
|
66 |
\setkomavar{backaddress}{}
|
|
67 |
|
|
68 |
\setkomavar{fromname}{\MYfromname}
|
|
69 |
\newcommand\addrsecrow{\MYaddrsecrow}
|
|
70 |
\newcommand\rechtsform{\MYrechtsform}
|
|
71 |
\setkomavar{fromaddress}{\MYfromaddress}
|
|
72 |
\setkomavar{fromphone}{\MYfromphone}
|
|
73 |
\setkomavar{fromfax}{\MYfromfax}
|
|
74 |
\setkomavar{fromemail}{\MYfromemail}
|
|
75 |
\setkomavar{signature}{\MYsignature}
|
|
76 |
\newcommand\ustid{\MYustid}
|
|
77 |
\setkomavar{frombank}{\MYfrombank}
|
|
78 |
|
|
79 |
\renewcommand{\rmdefault}{cmss}
|
|
80 |
\newlength\entrytblsub
|
|
81 |
\setlength\entrytblsub{\dimexpr\tabcolsep+1.3mm+\arrayrulewidth\relax}
|
|
82 |
\setlength\textwidth{166mm}
|
|
83 |
\oddsidemargin -0.4mm
|
|
84 |
\KOMAoptions{headsepline=on}
|
|
85 |
|
|
86 |
\pagestyle{myheadings}
|
|
87 |
\@addtoplength{firstfootvpos}{18mm}
|
|
88 |
\@addtoplength{foldmarkhpos}{5mm}
|
|
89 |
\@setplength{firstheadvpos}{0mm}
|
|
90 |
\@setplength{firstheadwidth}{165mm}
|
|
91 |
\@setplength{firstfootwidth}{165mm}
|
|
92 |
\@setplength{toaddrhpos}{25mm}
|
|
93 |
\@setplength{toaddrvpos}{38mm}
|
|
94 |
\@setplength{refhpos}{26mm}
|
|
95 |
\@addtoplength{refvpos}{-18mm}
|
|
96 |
|
|
97 |
\font\mainfont=cmss9
|
|
98 |
|
|
99 |
|
|
100 |
|
|
101 |
\ifthenelse{\bgPdfFirstPageOnly = 0 }{
|
|
102 |
\addtolength{\headheight}{50mm}
|
|
103 |
\watermark{
|
|
104 |
\setlength{\unitlength}{1mm}
|
|
105 |
\put(-22,-226){
|
|
106 |
\includegraphics[width=210mm]{\bgPdfName}
|
|
107 |
}
|
|
108 |
}
|
|
109 |
}{}
|
|
110 |
|
|
111 |
\firsthead{
|
|
112 |
\ifthenelse{\bgPdfFirstPageOnly = 1 }{
|
|
113 |
\put(-69,0){ % Mit diesem put-Befehl wird die Position des Logos bestimmt.
|
|
114 |
\includegraphics[width=210mm]{\bgPdfName}
|
|
115 |
}
|
|
116 |
}{}
|
|
117 |
}
|
|
118 |
|
|
119 |
|
|
120 |
|
|
121 |
|
|
122 |
\firstfoot{%
|
|
123 |
}
|
|
124 |
|
|
125 |
\nextfoot{%
|
|
126 |
\parbox{\useplength{firstfootwidth}}{
|
|
127 |
\hspace{-\entrytblsub}
|
|
128 |
\begin{tabular}{l}
|
|
129 |
\usekomavar{fromname}
|
|
130 |
\end{tabular}\hfill
|
|
131 |
\begin{tabular}{r}
|
|
132 |
\thepage
|
|
133 |
\end{tabular}
|
|
134 |
\hspace{-\entrytblsub}
|
|
135 |
}
|
|
136 |
\vspace{10mm}
|
|
137 |
}
|
|
138 |
|
|
139 |
|
|
140 |
|
|
141 |
\endinput
|
|
142 |
% vim: set filetype=tex :EOF
|
Neues kivitendo Design Aenderungen in templates/print/f-tex/..