Debian Codegraph @

texmf-dist/tex/latex/koma-script/scrfontsizes.sty

raw
1 %%
2 %% This is file `scrfontsizes.sty',
3 %% generated with the docstrip utility, extended by scrdocstrip.
4 %%
5 %% The original source files were:
6 %%
7 %% scrkernel-version.dtx (with options: `package')
8 %% scrkernel-fonts.dtx (with options: `package,generator,identify')
9 %% scrkernel-fonts.dtx (with options: `package,generator,option')
10 %% scrkernel-fonts.dtx (with options: `package,generator,body')
11 %% scrlogo.dtx (with options: `logo')
12 %%
13 %% Copyright (c) 1994-2026 Markus Kohm [komascript at gmx info]
14 %%
15 %% This file was generated from file(s) of the KOMA-Script bundle.
16 %% ---------------------------------------------------------------
17 %%
18 %% It may be distributed under the conditions of the
19 %% LaTeX Project Public License in the version distributed together
20 %% with KOMA-Script, see file `lppl.txt' or `lppl-de.txt'.
21 %%
22 %% This file may only be distributed together with a copy of the
23 %% KOMA-Script bundle. You may however distribute the
24 %% KOMA-Script bundle without all such generated files. See also
25 %% `lppl.txt' or `lppl-de.txt' for additional information.
26 %%
27 %% The list of files belonging to KOMA-Script distribution is given in
28 %% the file `MANIFEST.md'. See also `lppl.txt' or `lppl-de.txt' for
29 %% additional information.
30 %%
31 %% If this file is a beta version, you may not be allowed to distribute
32 %% it. Look at the comments below to see if this is the case.
33 %%
34 %% English and German manuals are part of KOMA-Script bundle.
35 %% ----------------------------------------------------------
36 %%
37 %% See `README'.
38 %%
39 %% The KOMA-Script bundle (but maybe not this file) was based upon the
40 %% LaTeX 2.09 Script family created by Frank Neukam 1993 and the LaTeX2e
41 %% standard classes created by The LaTeX3 Project 1994-1996. You can
42 %% find a complete unmodified copy of LaTeX2e at
43 %% <http://mirror.ctan.org/tex-archive/macros/latex/base/>.
44 %%
45 %%% From File: $Id: scrkernel-version.dtx 4261 2026-02-02 09:02:14Z kohm $
46 \providecommand*{\@CheckKOMAScriptVersion}{%
47 \begingroup
48 \ExplSyntaxOff
49 \@@CheckKOMAScriptVersion
50 }
51 \providecommand*{\@@CheckKOMAScriptVersion}[1]{%
52 \@ifundefined{KOMAScriptVersion}{%
53 \gdef\KOMAScriptVersion{#1}%
54 }{%
55 \def\@tempa{#1}%
56 \ifx\KOMAScriptVersion\@tempa\else
57 \GenericWarning{\space\@spaces\@spaces\@spaces\@spaces}{%
58 Version warning:
59 \noexpand\KOMAScriptVersion is
60 `\csname KOMAScriptVersion\endcsname',\MessageBreak
61 but `#1' was expected!\MessageBreak
62 You should not use classes, packages or files
63 from\MessageBreak
64 different KOMA-Script versions\@gobble
65 }%
66 \fi
67 }%
68 \endgroup
69 }
70 \@CheckKOMAScriptVersion{2026/02/02 v3.49.2 KOMA-Script}%
71 \providecommand*{\scr@pkgextension}{\@pkgextension}
72 \AtBeginDocument{%
73 \let\scr@pkgextension\@pkgextension
74 }
75 %%% From File: $Id: scrkernel-fonts.dtx 4181 2025-06-14 09:11:13Z kohm $
76 %%% (run: identify)
77 \ProvidesPackage{scrfontsizes}[%
78 2026/02/02 v3.49.2 KOMA-Script
79 package (font size file generator)]
80 %%% From File: $Id: scrkernel-fonts.dtx 4181 2025-06-14 09:11:13Z kohm $
81 %%% (run: option)
82 \ProcessOptions\relax
83 %%% From File: $Id: scrkernel-fonts.dtx 4181 2025-06-14 09:11:13Z kohm $
84 %%% (run: body)
85 \@ifundefined{changefontsizes}{\RequirePackage{scrextend}}{}
86 \newcommand*{\generatefontfile}[1]{%
87 \Ifstr{#1}{scrsize}{%
88 \ClassError{\KOMAClassName}{%
89 Font file name `scrsize' not allowed%
90 }{%
91 Font files with name `scrsize<fontsize>.clo' are reserved for
92 KOMA-Script.\MessageBreak
93 You should use another prefix and rename \string\@fontsizefilebase\space
94 either before\MessageBreak
95 loading a KOMA-Script class using one of \string\documentclass,
96 \string\LoadClass,\MessageBreak
97 or \string\LoadClassWithOptions\space or before loading package
98 `scrextend' using another\MessageBreak
99 class.}%
100 \@@@generatefontfile
101 }{%
102 \kernel@ifnextchar [{\@generatefontfile{#1}}{\@@generatefontfile{#1}}%
103 }%
104 }
105 \newcommand*{\@generatefontfile}{}
106 \def\@generatefontfile#1[#2]#3{%
107 \begingroup
108 \@ifundefined{setparsizes}{\setlength{\parskip}{0pt}}%
109 {\setparsizes{0pt}{0pt}{0pt}}%
110 \changefontsizes[{#2}]{#3}%
111 \generate@fontfile{#1}{#3}%
112 \endgroup
113 }
114 \newcommand\@@generatefontfile[2]{%
115 \begingroup
116 \@ifundefined{setparsizes}{\setlength{\parskip}{0pt}}%
117 {\setparsizes{0pt}{0pt}{0pt}}%
118 \changefontsizes{#2}%
119 \generate@fontfile{#1}{#2}%
120 \endgroup
121 }
122 \newcommand*{\@@@generatefontfile}[2][]{}
123 \newcommand*{\@fontfile}{}
124 \let\@fontfile\@mainaux
125 \newcommand*{\generate@fontfile}[2]{%
126 \def\@ind{\space\space}%
127 \immediate\openout\@fontfile #1#2.clo
128 \immediate\write\@fontfile{\@percentchar^^J%
129 \@percentchar\space This is file `#1#2.clo', generated with^^J%
130 \@percentchar\space scrfontsizes
131 \csname ver@scrfontsizes.\scr@pkgextension\endcsname,^^J%
132 \@percentchar\space Copyright (c) Markus Kohm.^^J%
133 \@percentchar^^J%
134 \string\ProvidesFile{#1#2.clo}[%
135 \the\year/\ifnum\month<10 0\fi\the\month/\ifnum\day<10 0\fi\the\day%
136 \space generated font size class option (#2)]}%
137 \immediate\write\@fontfile{%
138 \string\let\string\normalsize\string\@undefined
139 \string\DeclareRobustCommand\string\normalsize{\@percentchar^^J%
140 \@ind\string\@setfontsize\string\normalsize{\f@size}{\f@baselineskip}%
141 \@percentchar^^J%
142 \@ind\string\abovedisplayskip\space \the\abovedisplayskip^^J%
143 \@ind\string\abovedisplayshortskip\space \the\abovedisplayshortskip^^J%
144 \@ind\string\belowdisplayskip\space \the\belowdisplayskip^^J%
145 \@ind\string\belowdisplayshortskip\space \the\belowdisplayshortskip^^J%
146 \@ind\string\let\string\@listi\string\@listI^^J%
147 }\@percentchar%
148 }%
149 \begingroup\small\@listi
150 \immediate\write\@fontfile{%
151 \string\let\string\small\string\@undefined
152 \string\DeclareRobustCommand\string\small{\@percentchar^^J%
153 \@ind\string\@setfontsize\string\small{\f@size}{\f@baselineskip}%
154 \@percentchar^^J%
155 \@ind\string\abovedisplayskip\space \the\abovedisplayskip^^J%
156 \@ind\string\abovedisplayshortskip\space \the\abovedisplayshortskip^^J%
157 \@ind\string\belowdisplayskip\space \the\belowdisplayskip^^J%
158 \@ind\string\belowdisplayshortskip\space \the\belowdisplayshortskip^^J%
159 \@ind\string\def\string\@listi{\@percentchar^^J%
160 \@ind\@ind\string\leftmargin\string\leftmargini^^J%
161 \@ind\@ind\string\topsep \the\topsep^^J%
162 \@ind\@ind\string\parsep \the\parsep^^J%
163 \@ind\@ind\string\itemsep \string\parsep^^J%
164 \@ind}\@percentchar^^J%
165 }\@percentchar%
166 }%
167 \endgroup
168 \begingroup\footnotesize\@listi
169 \immediate\write\@fontfile{%
170 \string\let\string\footnotesize\string\@undefined
171 \string\DeclareRobustCommand\string\footnotesize{\@percentchar^^J%
172 \@ind\string\@setfontsize\string\footnotesize{\f@size}{\f@baselineskip}%
173 \@percentchar^^J%
174 \@ind\string\abovedisplayskip\space \the\abovedisplayskip^^J%
175 \@ind\string\abovedisplayshortskip\space \the\abovedisplayshortskip^^J%
176 \@ind\string\belowdisplayskip\space \the\belowdisplayskip^^J%
177 \@ind\string\belowdisplayshortskip\space \the\belowdisplayshortskip^^J%
178 \@ind\string\def\string\@listi{\@percentchar^^J%
179 \@ind\@ind\string\leftmargin\string\leftmargini^^J%
180 \@ind\@ind\string\topsep \the\topsep^^J%
181 \@ind\@ind\string\parsep \the\parsep^^J%
182 \@ind\@ind\string\itemsep \string\parsep^^J%
183 \@ind}\@percentchar^^J%
184 }\@percentchar%
185 }%
186 \endgroup
187 \begingroup\scriptsize
188 \immediate\write\@fontfile{%
189 \string\let\string\scriptsize\string\@undefined
190 \string\DeclareRobustCommand\string\scriptsize{%
191 \string\@setfontsize\string\scriptsize{\f@size}{\f@baselineskip}%
192 }\@percentchar%
193 }%
194 \endgroup
195 \begingroup\tiny
196 \immediate\write\@fontfile{%
197 \string\let\string\tiny\string\@undefined
198 \string\DeclareRobustCommand\string\tiny{%
199 \string\@setfontsize\string\tiny{\f@size}{\f@baselineskip}%
200 }\@percentchar%
201 }%
202 \endgroup
203 \begingroup\large
204 \immediate\write\@fontfile{%
205 \string\let\string\large\string\@undefined
206 \string\DeclareRobustCommand\string\large{%
207 \string\@setfontsize\string\large{\f@size}{\f@baselineskip}%
208 }\@percentchar%
209 }%
210 \endgroup
211 \begingroup\Large
212 \immediate\write\@fontfile{%
213 \string\let\string\Large\@undefined
214 \string\DeclareRobustCommand\string\Large{%
215 \string\@setfontsize\string\Large{\f@size}{\f@baselineskip}%
216 }\@percentchar%
217 }%
218 \endgroup
219 \begingroup\LARGE
220 \immediate\write\@fontfile{%
221 \string\let\string\LARGE\@undefined
222 \string\DeclareRobustCommand\string\LARGE{%
223 \string\@setfontsize\string\LARGE{\f@size}{\f@baselineskip}%
224 }\@percentchar%
225 }%
226 \endgroup
227 \begingroup\huge
228 \immediate\write\@fontfile{%
229 \string\let\string\huge\@undefined
230 \string\DeclareRobustCommand\string\huge{%
231 \string\@setfontsize\string\huge{\f@size}{\f@baselineskip}%
232 }\@percentchar%
233 }%
234 \endgroup
235 \begingroup\Huge
236 \immediate\write\@fontfile{%
237 \string\let\string\Huge\@undefined
238 \string\DeclareRobustCommand\string\Huge{%
239 \string\@setfontsize\string\Huge{\f@size}{\f@baselineskip}%
240 }\@percentchar%
241 }%
242 \endgroup
243 \immediate\write\@fontfile{\string\normalsize}%
244 \immediate\write\@fontfile{%
245 \string\setlength{\string\footnotesep}{\the\footnotesep}\@percentchar
246 }%
247 \immediate\write\@fontfile{%
248 \string\setlength{\string\skip\string\footins}{\the\skip\footins}\@percentchar
249 }%
250 \immediate\write\@fontfile{%
251 \string\setlength{\string\floatsep}{\the\floatsep}\@percentchar
252 }%
253 \immediate\write\@fontfile{%
254 \string\setlength{\string\textfloatsep}{\the\textfloatsep}\@percentchar
255 }%
256 \immediate\write\@fontfile{%
257 \string\setlength{\string\intextsep}{\the\intextsep}\@percentchar
258 }%
259 \immediate\write\@fontfile{%
260 \string\setlength{\string\dblfloatsep}{\the\dblfloatsep}\@percentchar
261 }%
262 \immediate\write\@fontfile{%
263 \string\setlength{\string\dbltextfloatsep}{\the\dbltextfloatsep}\@percentchar
264 }%
265 \immediate\write\@fontfile{%
266 \string\setlength{\string\@fptop}{\the\@fptop}\@percentchar
267 }%
268 \immediate\write\@fontfile{%
269 \string\setlength{\string\@fpsep}{\the\@fpsep}\@percentchar
270 }%
271 \immediate\write\@fontfile{%
272 \string\setlength{\string\@fpbot}{\the\@fpbot}\@percentchar
273 }%
274 \immediate\write\@fontfile{%
275 \string\setlength{\string\@dblfptop}{\the\@dblfptop}\@percentchar
276 }%
277 \immediate\write\@fontfile{%
278 \string\setlength{\string\@dblfpsep}{\the\@dblfpsep}\@percentchar
279 }%
280 \immediate\write\@fontfile{%
281 \string\setlength{\string\@dblfpbot}{\the\@dblfpbot}\@percentchar
282 }%
283 \immediate\write\@fontfile{%
284 \string\setlength{\string\partopsep}{\the\partopsep}\@percentchar
285 }%
286 \begingroup
287 \@listi
288 \immediate\write\@fontfile{%
289 \string\def\string\@listi{\@percentchar^^J%
290 \@ind\string\leftmargin\string\leftmargini^^J%
291 \@ind\string\topsep \the\topsep^^J%
292 \@ind\string\parsep \the\parsep^^J%
293 \@ind\string\itemsep \string\parsep^^J%
294 }\@percentchar
295 }%
296 \endgroup
297 \immediate\write\@fontfile{%
298 \string\let\string\@listI\string\@listi
299 }%
300 \begingroup
301 \@listii
302 \immediate\write\@fontfile{%
303 \string\def\string\@listii{\@percentchar^^J%
304 \@ind\string\leftmargin\string\leftmarginii^^J%
305 \@ind\string\labelwidth\string\leftmarginii^^J%
306 \@ind\string\advance\string\labelwidth-\string\labelsep^^J%
307 \@ind\string\topsep \the\topsep^^J%
308 \@ind\string\parsep \the\parsep^^J%
309 \@ind\string\itemsep \string\parsep^^J%
310 }\@percentchar
311 }%
312 \endgroup
313 \begingroup
314 \@listiii
315 \immediate\write\@fontfile{%
316 \string\def\string\@listiii{\@percentchar^^J%
317 \@ind\string\leftmargin\string\leftmarginiii^^J%
318 \@ind\string\labelwidth\string\leftmarginiii^^J%
319 \@ind\string\advance\string\labelwidth-\string\labelsep^^J%
320 \@ind\string\topsep \the\topsep^^J%
321 \@ind\string\parsep \the\parsep^^J%
322 \@ind\string\partopsep \the\partopsep^^J%
323 \@ind\string\itemsep \string\topsep^^J%
324 }\@percentchar
325 }%
326 \endgroup
327 \begingroup
328 \@listiv
329 \immediate\write\@fontfile{%
330 \string\def\string\@listiv{\@percentchar^^J%
331 \@ind\string\leftmargin\string\leftmarginiv^^J%
332 \@ind\string\labelwidth\string\leftmarginiv^^J%
333 \@ind\string\advance\string\labelwidth-\string\labelsep^^J%
334 }\@percentchar
335 }%
336 \endgroup
337 \begingroup
338 \@listv
339 \immediate\write\@fontfile{%
340 \string\def\string\@listv{\@percentchar^^J%
341 \@ind\string\leftmargin\string\leftmarginv^^J%
342 \@ind\string\labelwidth\string\leftmarginv^^J%
343 \@ind\string\advance\string\labelwidth-\string\labelsep^^J%
344 }\@percentchar
345 }%
346 \endgroup
347 \begingroup
348 \@listvi
349 \immediate\write\@fontfile{%
350 \string\def\string\@listvi{\@percentchar^^J%
351 \@ind\string\leftmargin\string\leftmarginvi^^J%
352 \@ind\string\labelwidth\string\leftmarginvi^^J%
353 \@ind\string\advance\string\labelwidth-\string\labelsep^^J%
354 }\@percentchar
355 }%
356 \endgroup
357 \immediate\write\@fontfile{%
358 \string\@ifundefined{@list@extra}{}{\@percentchar^^J%
359 \string\expandafter\string\ifnum\string\scr@v@is@ge{3.17}^^J%
360 \string\par@updaterelative^^J%
361 \string\fi^^J%
362 \@ind\string\l@addto@macro{\string\@listi}{\string\@list@extra}%
363 \@percentchar^^J%
364 \@ind\string\let\string\@listI=\string\@listi^^J%
365 \@ind\string\l@addto@macro{\string\@listii}{\string\@list@extra}%
366 \@percentchar^^J%
367 \@ind\string\l@addto@macro{\string\@listiii}{\string\@list@extra}%
368 \@percentchar^^J%
369 \@ind\string\l@addto@macro{\string\footnotesize}{\string\protect
370 \string\add@extra@listi{ftns}}\@percentchar^^J%
371 \@ind\string\l@addto@macro{\string\small}{\string\protect
372 \string\add@extra@listi{sml}}\@percentchar^^J%
373 }\@percentchar^^J%
374 \string\@listi^^J%
375 \string\endinput^^J%
376 \@percentchar^^J%
377 \@percentchar\space End of file `#1#2.clo'.
378 }
379 \immediate\closeout\@fontfile
380 }
381 \@onlypreamble\generatefontfile
382 %%% From File: $Id: scrlogo.dtx 4032 2023-04-17 09:45:11Z kohm $
383 \RequirePackage{scrlogo}
384 \endinput
385 %%
386 %% End of file `scrfontsizes.sty'.