summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/templates-fenn/scrlttr2en.tex
blob: 6935251f50601ba9c012f40d84eb9146d9d741d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
%
% scrlttr2en.tex
%
% This file is published and distributed under the latest version of
% the LPPL. By Juergen Fenn.
% You can reach me at http://www.juergenfenn.de/ .
%
% scrlttr2en.tex provides a commented template for writing a letter with
% scrlttr2.cls from the KOMA-Script bundle by Markus Kohm. 
%
% Translated into English by Jan Beilicke (http://jotbe-fx.de)
%
%---------------------------------------------------------------------------
\documentclass%%
%---------------------------------------------------------------------------
  [fontsize=12pt,%%          Font size
%---------------------------------------------------------------------------
% Type area
   paper=a4,%%               Sheet size
   enlargefirstpage=on,%%    Enlarge the first page
   pagenumber=headright,%%   Page number on the top right of the header
%---------------------------------------------------------------------------
% Layout
   headsepline=on,%%         Line below the page number
   parskip=half,%%           Space between paragraphs
%---------------------------------------------------------------------------
% Letterhead and address
   fromalign=right,%%        Positioning of the letterhead
   fromphone=on,%%           Phone number in the sender's area
   fromrule=off,%%           Line below the sender's area (aftername, afteraddress)
   fromfax=off,%%            Fax number
   fromemail=off,%%          Mail address
   fromurl=off,%%            Homepage
   fromlogo=off,%%           Company logo
   addrfield=on,%%           Adress field for window envelopes
   backaddress=on,%%         ... with sender address
   subject=beforeopening,%%  Positioning of the subject
   locfield=narrow,%%        Additional field for the sender
   foldmarks=on,%%           Folding mark
   numericaldate=off,%%      Numerical date
   refline=narrow,%%         Spread of the reference line in the type area
%---------------------------------------------------------------------------
% Formatting
   draft=on%%                Draft mode
]{scrlttr2}
%---------------------------------------------------------------------------
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{url}
%---------------------------------------------------------------------------
% Fonts
\setkomafont{fromname}{\sffamily \LARGE}
\setkomafont{fromaddress}{\sffamily}%%    Instead of \small
\setkomafont{pagenumber}{\sffamily}
\setkomafont{subject}{\mdseries}
\setkomafont{backaddress}{\mdseries}
\usepackage{mathptmx}%%                   Font Times
%\usepackage{mathpazo}%%                  Font Palatino
%\setkomafont{fromname}{\LARGE}
%---------------------------------------------------------------------------
\begin{document}
%---------------------------------------------------------------------------
% Letter style and positioning of the letterhead
\LoadLetterOption{DIN} %% or: DINmtext, SN, SNleft, KOMAold.
\makeatletter
\@setplength{firstheadvpos}{20mm}
\@setplength{firstheadwidth}{\paperwidth}
\ifdim \useplength{toaddrhpos}>\z@
  \@addtoplength[-2]{firstheadwidth}{\useplength{toaddrhpos}}
\else
  \@addtoplength[2]{firstheadwidth}{\useplength{toaddrhpos}}
\fi
\@setplength{foldmarkhpos}{6.5mm}
\makeatother
%---------------------------------------------------------------------------
% Sender information
\setkomavar{fromname}{Sender name}
\setkomavar{fromaddress}{Street\\Postcode City\\Country}
\setkomavar{fromphone}{12345 678890}
\renewcommand{\phonename}{Phone}
%\setkomavar{fromemail}{sender.name@example.org}
\setkomavar{backaddressseparator}{. }
\setkomavar{signature}{(Name)}
%\setkomavar{frombank}{}
%\setkomavar{location}{\\[8ex]\raggedleft{\footnotesize{\usekomavar{fromaddress}\\
%      Phone:\ usekomavar{fromphone}}}}%% Beside the address field
%---------------------------------------------------------------------------
\firsthead{User-defined letterhead}
%---------------------------------------------------------------------------
%\firstfoot{Footer}
%---------------------------------------------------------------------------
% Fields of business line
%\setkomavar{place}{Place}
%\setkomavar{placeseparator}{, }
\setkomavar{date}{\today}
%\setkomavar{yourmail}{1. 1. 2009}%%  'Your writing ...'
%\setkomavar{yourref} {abcdefg}%%     'Your reference ...'
%\setkomavar{myref}{}%%               'Our reference ...'
%\setkomavar{invoice}{123}%%          'Invoice number ...'
%\setkomavar{phoneseparator}{}
%---------------------------------------------------------------------------
% Shipping notice
%\setkomavar{specialmail}{Recommand\'{e} avec avis de r\'{e}ception}
%---------------------------------------------------------------------------
% Redefine enclosure
\renewcommand{\enclname}{Enclosure}
\setkomavar{enclseparator}{: }
%---------------------------------------------------------------------------
% Page style
\pagestyle{plain}%% No header
%---------------------------------------------------------------------------
\begin{letter}{Recipient\\Street\\Postcode City\\Country}
%---------------------------------------------------------------------------
% Further options
\KOMAoptions{%%
}
%---------------------------------------------------------------------------
\setkomavar{subject}{Subject}
%---------------------------------------------------------------------------
\opening{Dear Sir or Madam,}


\closing{Yours sincerely}
%---------------------------------------------------------------------------
%\ps{PS:}
%\encl{}
%\cc{}
%---------------------------------------------------------------------------
\end{letter}
%---------------------------------------------------------------------------
\end{document}
%---------------------------------------------------------------------------
%
% end of file