Debian Codegraph @

texmf-dist/tex/latex/koma-script/DIN5008A.lco

raw
1 %%
2 %% This is file `DIN5008A.lco',
3 %% generated with the docstrip utility, extended by scrdocstrip.
4 %%
5 %% The original source files were:
6 %%
7 %% scrkernel-version.dtx (with options: `trace')
8 %% scrkernel-letterclassoptions.dtx (with options: `lco,5008,A,head')
9 %% scrkernel-letterclassoptions.dtx (with options: `lco,5008,A,body')
10 %%
11 %% Copyright (c) 1994-2026 Markus Kohm [komascript at gmx info]
12 %%
13 %% This file was generated from file(s) of the KOMA-Script bundle.
14 %% ---------------------------------------------------------------
15 %%
16 %% It may be distributed under the conditions of the
17 %% LaTeX Project Public License in the version distributed together
18 %% with KOMA-Script, see file `lppl.txt' or `lppl-de.txt'.
19 %%
20 %% This file may only be distributed together with a copy of the
21 %% KOMA-Script bundle. You may however distribute the
22 %% KOMA-Script bundle without all such generated files. See also
23 %% `lppl.txt' or `lppl-de.txt' for additional information.
24 %%
25 %% The list of files belonging to KOMA-Script distribution is given in
26 %% the file `MANIFEST.md'. See also `lppl.txt' or `lppl-de.txt' for
27 %% additional information.
28 %%
29 %% If this file is a beta version, you may not be allowed to distribute
30 %% it. Look at the comments below to see if this is the case.
31 %%
32 %% English and German manuals are part of KOMA-Script bundle.
33 %% ----------------------------------------------------------
34 %%
35 %% See `README'.
36 %%
37 %% The KOMA-Script bundle (but maybe not this file) was based upon the
38 %% LaTeX 2.09 Script family created by Frank Neukam 1993 and the LaTeX2e
39 %% standard classes created by The LaTeX3 Project 1994-1996. You can
40 %% find a complete unmodified copy of LaTeX2e at
41 %% <http://mirror.ctan.org/tex-archive/macros/latex/base/>.
42 %%
43 %%% From File: $Id: scrkernel-version.dtx 4261 2026-02-02 09:02:14Z kohm $
44 \@CheckKOMAScriptVersion{2026/02/02 v3.49.2 KOMA-Script}%
45 %%% From File: $Id: scrkernel-letterclassoptions.dtx 4197 2025-08-15 09:13:30Z kohm $
46 %%% (run: head)
47 \ProvidesFile{%
48 5008%
49 A%
50 .lco}[\KOMAScriptVersion\space letter-class-option]
51 \LoadLetterOption{%
52 DINmtext%
53 }
54 %%% From File: $Id: scrkernel-letterclassoptions.dtx 4197 2025-08-15 09:13:30Z kohm $
55 %%% (run: body)
56 \setplength{toaddrindent}{%
57 5mm}
58 \setplength{specialmailindent}{\useplength{toaddrindent}}
59 \setplength{specialmailrightindent}{\z@}
60 \setplength{locvpos}{%
61 \dimexpr\useplength{toaddrvpos}+\useplength{backaddrheight}}
62 \setplength{locwidth}{%
63 75mm}
64 \setplength{lochpos}{10mm}
65 \setplength{firstheadhpos}{%
66 \dimexpr \useplength{toaddrhpos}+\useplength{toaddrindent}}
67 \setplength{firstheadwidth}{%
68 \dimexpr 125mm-\useplength{firstheadhpos}}
69 \setplength{firstfoothpos}{%
70 \dimexpr\useplength{toaddrhpos}+\useplength{toaddrindent}}%
71 \setplength{firstfootwidth}{%
72 \dimexpr \paperwidth-\useplength{toaddrhpos}-\useplength{firstfoothpos}}%
73 \setplength{firstfootvpos}{\paperheight}
74 \addtoplength{firstfootvpos}{-16mm}
75 \scr@ifundefinedorrelax{scr@v@is@le}{}{%
76 \expandafter\ifnum \scr@v@is@le{2.9t}\relax\else
77 \setplength{firstfootvpos}{1in}%
78 \addtoplength{firstfootvpos}{\topmargin}%
79 \addtoplength{firstfootvpos}{\headheight}%
80 \addtoplength{firstfootvpos}{\headsep}%
81 \addtoplength{firstfootvpos}{\textheight}%
82 \addtoplength{firstfootvpos}{\footskip}%
83 \fi
84 }%
85 \setplength{refvpos}{%
86 79.4mm}
87 \setplength{refaftervskip}{%
88 8.46mm}
89 \newplength{specialmailheight}
90 \setplength{specialmailheight}{12.7mm}
91 \areaset[5mm]{165mm}{233mm}
92 \KOMAoptions{%
93 fromalign=locationleft,
94 addrfield=topaligned,
95 refline=narrow,
96 parskip=full
97 }
98 \l@addto@macro\@PapersizeWarning{%
99 \begingroup
100 \@tempswafalse
101 \ifdim\oddsidemargin<\dimexpr 25mm-1in-1pt\relax\@tempswatrue\else
102 \ifdim\oddsidemargin>\dimexpr 25mm-1in+1pt\relax\@tempswatrue\fi\fi
103 \ifdim\textwidth<\dimexpr \paperwidth-45mm-1pt\relax\@tempswatrue\else
104 \ifdim\textwidth>\dimexpr \paperwidth-45mm+1pt\relax\@tempswatrue\fi\fi
105 \if@tempswa
106 \LCOWarning{DIN5008%
107 A%
108 }{%
109 DIN5008 orders exact margins and text\MessageBreak
110 width. Without following these values,\MessageBreak
111 your document does not conform DIN5008.\MessageBreak
112 You should use, e.g.,\MessageBreak
113 \space\string\areaset[5mm]{%
114 \the\dimexpr \paperwidth-45mm\relax}{%
115 \the\dimexpr 1.414\dimexpr \paperwidth-45mm\relax\relax}\MessageBreak
116 to follow the norm%
117 }%
118 \fi
119 \ifdim \dimexpr\parskip\relax=\dimexpr\baselineskip\relax\else
120 \LCOWarning{DIN5008%
121 A%
122 }{%
123 DIN5008 orders paragraph separation by\MessageBreak
124 exactly one line. Without this, your\MessageBreak
125 document does not conform DIN5008.\MessageBreak
126 You shoud use, e.g.,\MessageBreak
127 \space\string\KOMAoption{parskip}{full}\MessageBreak
128 to follow the norm%
129 }%
130 \fi
131 \endgroup
132 }
133 \renewcommand{\backaddr@format}[1]{\hspace*{\useplength{toaddrindent}}%
134 \parbox[t][\useplength{backaddrheight}][t]%
135 {\dimexpr\useplength{toaddrwidth}-\useplength{toaddrindent}}%
136 {\strut\ignorespaces #1\ifhmode\scr@endstrut\fi}%
137 }
138 \renewcommand{\specialmail@format}[1]{%
139 \parbox[t][\useplength{specialmailheight}][t]%
140 {\dimexpr\useplength{toaddrwidth}
141 -\useplength{specialmailindent}
142 -\useplength{specialmailrightindent}}%
143 {\strut\ignorespaces #1\ifhmode\scr@endstrut\fi}%
144 }
145 \setkomafont{specialmail}{\sffamily\fontsize{10pt}{12pt}\selectfont}
146 \setkomafont{backaddress}{\sffamily\fontsize{8pt}{10pt}\selectfont}
147 \setkomafont{addressee}{\sffamily\fontsize{10pt}{12pt}\selectfont}
148 \setkomafont{fromname}{\sffamily\fontsize{10pt}{12pt}\selectfont}
149 \setkomafont{fromaddress}{\sffamily\fontsize{10pt}{12pt}\selectfont}
150 \setkomafont{refvalue}{\sffamily\fontsize{10pt}{12pt}\selectfont}
151 \let\raggedsignature\raggedright
152 \endinput
153 %%
154 %% End of file `DIN5008A.lco'.