Debian Codegraph @

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

raw
1 %%
2 %% This is file `DIN5008B.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,B,head')
9 %% scrkernel-letterclassoptions.dtx (with options: `lco,5008,B,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 B%
50 .lco}[\KOMAScriptVersion\space letter-class-option]
51 \LoadLetterOption{%
52 DIN%
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{refaftervskip}{%
86 8.46mm}
87 \newplength{specialmailheight}
88 \setplength{specialmailheight}{12.7mm}
89 \areaset[5mm]{165mm}{233mm}
90 \KOMAoptions{%
91 fromalign=locationleft,
92 addrfield=topaligned,
93 refline=narrow,
94 parskip=full
95 }
96 \l@addto@macro\@PapersizeWarning{%
97 \begingroup
98 \@tempswafalse
99 \ifdim\oddsidemargin<\dimexpr 25mm-1in-1pt\relax\@tempswatrue\else
100 \ifdim\oddsidemargin>\dimexpr 25mm-1in+1pt\relax\@tempswatrue\fi\fi
101 \ifdim\textwidth<\dimexpr \paperwidth-45mm-1pt\relax\@tempswatrue\else
102 \ifdim\textwidth>\dimexpr \paperwidth-45mm+1pt\relax\@tempswatrue\fi\fi
103 \if@tempswa
104 \LCOWarning{DIN5008%
105 B%
106 }{%
107 DIN5008 orders exact margins and text\MessageBreak
108 width. Without following these values,\MessageBreak
109 your document does not conform DIN5008.\MessageBreak
110 You should use, e.g.,\MessageBreak
111 \space\string\areaset[5mm]{%
112 \the\dimexpr \paperwidth-45mm\relax}{%
113 \the\dimexpr 1.414\dimexpr \paperwidth-45mm\relax\relax}\MessageBreak
114 to follow the norm%
115 }%
116 \fi
117 \ifdim \dimexpr\parskip\relax=\dimexpr\baselineskip\relax\else
118 \LCOWarning{DIN5008%
119 B%
120 }{%
121 DIN5008 orders paragraph separation by\MessageBreak
122 exactly one line. Without this, your\MessageBreak
123 document does not conform DIN5008.\MessageBreak
124 You shoud use, e.g.,\MessageBreak
125 \space\string\KOMAoption{parskip}{full}\MessageBreak
126 to follow the norm%
127 }%
128 \fi
129 \endgroup
130 }
131 \renewcommand{\backaddr@format}[1]{\hspace*{\useplength{toaddrindent}}%
132 \parbox[t][\useplength{backaddrheight}][t]%
133 {\dimexpr\useplength{toaddrwidth}-\useplength{toaddrindent}}%
134 {\strut\ignorespaces #1\ifhmode\scr@endstrut\fi}%
135 }
136 \renewcommand{\specialmail@format}[1]{%
137 \parbox[t][\useplength{specialmailheight}][t]%
138 {\dimexpr\useplength{toaddrwidth}
139 -\useplength{specialmailindent}
140 -\useplength{specialmailrightindent}}%
141 {\strut\ignorespaces #1\ifhmode\scr@endstrut\fi}%
142 }
143 \setkomafont{specialmail}{\sffamily\fontsize{10pt}{12pt}\selectfont}
144 \setkomafont{backaddress}{\sffamily\fontsize{8pt}{10pt}\selectfont}
145 \setkomafont{addressee}{\sffamily\fontsize{10pt}{12pt}\selectfont}
146 \setkomafont{fromname}{\sffamily\fontsize{10pt}{12pt}\selectfont}
147 \setkomafont{fromaddress}{\sffamily\fontsize{10pt}{12pt}\selectfont}
148 \setkomafont{refvalue}{\sffamily\fontsize{10pt}{12pt}\selectfont}
149 \let\raggedsignature\raggedright
150 \endinput
151 %%
152 %% End of file `DIN5008B.lco'.