summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/koma-script-SFS/SFSesim.tex
blob: 89985d6bf5fda025cc35f3355da2760aa9fe13d9 (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
%%
%% SFSesim.lco
%%
%% Copyright (c) Hannu Väisänen  2005
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2003/12/01 or later.
%%
%% This work has the LPPL maintenance status "maintained".
%% Maintainer is Hannu Väisänen <hvaisane@joyx.joensuu.fi>
%%
%% This work consists of the file SFS.lco and SFSesim.tex.
%%
\documentclass{scrlttr2}
\usepackage[latin9]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[finnish]{babel}


% Jos haluat kappaleet sisennettyinä, kommentoi seuraavat kaksi riviä.
\setlength{\parindent}{0pt}
\setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}


\LoadLetterOption{SFS}


% Kappale 6.4.1, sivu 154.
%
\setkomavar{fromname}{Liisa Lähettäjä}
\setkomavar{fromaddress}{Asuntokatu 456 \\ 12345 Olematon}
\setkomavar{fromphone}{123 456 789}
\setkomavar{fromfax}{987 654 321}
\setkomavar{fromemail}{Etunimi.Sukunimi@osoite.fi}
\setkomavar{fromurl}{www.yritys.osoite.fi}
\KOMAoptions{foldmarks=false}
%\KOMAoptions{fromphone,fromemail,fromurl}


% Lähettäjän tiedot kirjeen alareunaan.
\firstfoot{%
  \parbox[t]{\textwidth}{
    \begin{tabular}[t]{llll}
       Liisa Lähettäjä  & Puhelin & Faksi& Sähköposti \\
       Asuntokatu 4456  & \usekomavar{fromphone}
                             & \usekomavar{fromfax}
                            & \usekomavar{fromemail} \\
       12345 Olematon
    \end{tabular}%
  }
}


\begin{document}
\begin{letter}{Ville Vastaanottaja \\
Asuntokatu 123 \\
12345 Olematon}


\opening{Aloitusfraasi tulee tähän}

\C{0}

Otsikko alkaa sarakkeesta 0

\C{2}

Leipäteksti alkaa sarakkeesta 2.

Tämä kirje on esimerkki SFS-standardin mukaisesta kirjeestä.

Kirje käyttää \KOMAScript'in scrlttr2-pakettia, johon on
määritelty konfigurointitiedosto SFS.lco. Enemmän kommentteja
on sen alussa.

\C{0}

Toinen otsikko

\C{2}

Sarakkeet määritellään komennolla \verb=\C{n}=,
missä n voi olla 0, 1, 2, 3, 4, 5, 6, 7 tai 8.

\verb=\C{0}= on sama kuin vasen marginaali, ja
\verb=\C{8}= on sama kuin oikea marginaali.

\C{0}


%\cc{Huu Haa Hoo}
%\encl{Juupa joo.}

\closing{Lopetusfraasi tulee tähän}
\end{letter}
\end{document}