Debian Codegraph @

texmf-dist/source/latex/fontsize/fontsize.dtx

raw
1 % \iffalse meta-comment
2 %<*internal>
3 \begingroup
4 \input docstrip
5 \preamble
6
7 The 'fontsize' package
8 Copyright (C) 2020-2024 Ivan Valbusa
9 <ivan dot valbusa at gmail dot com>
10
11 All rights reserved.
12
13 This work may be distributed and/or modified under the
14 conditions of the LaTeX Project Public License, either version 1.3
15 of this license or (at your option) any later version.
16 The latest version of this license is in
17 http://www.latex-project.org/lppl.txt
18 and version 1.3 or later is part of all distributions of LaTeX
19 version 2005/12/01 or later.
20
21 This work consists of all files listed in README
22
23 This work has the LPPL maintenance status "author-maintained".
24
25 \endpreamble
26 \keepsilent
27 \askforoverwritefalse
28
29 \Msg{*** Generating the package file ***}
30 \generate{
31 \file{fontsize.sty}{\from{fontsize.dtx}{package}}
32 \nopreamble\nopostamble
33 \file{fontsize.bib}{\from{fontsize.dtx}{bib}}}
34
35 \Msg{***********************************************************}
36 \Msg{*}
37 \Msg{* To finish the installation you have to move the following}
38 \Msg{* files into a directory searched by TeX:}
39 \Msg{*}
40 \Msg{* \space\space fontsize.sty}
41 \Msg{*}
42 \Msg{*}
43 \Msg{* To produce the documentation on fontsize's code run}
44 \Msg{* the file ending with `.dtx' through (pdf)LaTeX. See the}
45 \Msg{* README file for more details.}
46 \Msg{*}
47 \Msg{* Happy TeXing}
48 \Msg{***********************************************************}
49 \endgroup
50 %</internal>
51 % \fi
52 % \iffalse
53 %<*driver>
54 \ProvidesFile{fontsize.dtx}
55 %</driver>
56 %<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
57 %<package>\ProvidesPackage{fontsize}
58 %<*package>
59 [2024/12/04 v0.9 'fontsize' package. Set main font sizes (Ivan Valbusa)]
60 %</package>
61 %<*driver>
62 \documentclass[12pt]{ltxdoc}
63 \usepackage[T1]{fontenc}
64 \usepackage[utf8]{inputenc}
65 \usepackage[fontsize=11]{fontsize}
66 %--------------------------------------------------------
67 % GRAPHICS
68 %--------------------------------------------------------
69 \usepackage[svgnames,table]{xcolor}
70 \definecolor{philA}{named}{DarkRed}
71 \definecolor{philB}{named}{NavyBlue}
72 \definecolor{sufred}{rgb}{0.5,0,0}
73 \definecolor{sufgray}{rgb}{0.5,0.5,0.5}
74 \usepackage{tikz}
75 \usetikzlibrary{shadows}
76 \usepackage[framemethod=TikZ]{mdframed}
77 \mdfsetup{roundcorner=3pt,linecolor=white,backgroundcolor=gray!10}
78 %--------------------------------------------------------
79 % DOC FACILITIES
80 %--------------------------------------------------------
81 \usepackage{metalogo,hologo}
82 \usepackage{guit}% before ltxdockit but after xcolor!
83 \usepackage[final]{microtype}
84 \let\cs\relax
85 \let\cmd\relax
86 \usepackage{ltxdockit}
87 %--------------------------------------------------------
88 % FONTS
89 %--------------------------------------------------------
90 \usepackage{cochineal}
91 \usepackage[varqu,varl,var0]{inconsolata}
92 \usepackage{biolinum}
93 \usepackage{amsthm}
94 \usepackage[cochineal,bigdelims,cmintegrals,vvarbb]{newtxmath}
95 \usepackage[cal=boondoxo]{mathalfa}
96 \usepackage{manfnt}
97 %--------------------------------------------------------
98 % LAYOUT
99 %--------------------------------------------------------
100 \usepackage[skip=1.5ex]{parskip}
101 \setcounter{tocdepth}{3}
102 \usepackage{geometry}
103 \geometry{
104 a4paper,
105 margin=3cm,
106 headheight=15pt,
107 ignoreall,
108 heightrounded}
109 \usepackage{sectsty}
110 \allsectionsfont{\sffamily}
111 % --------------------------------------------------------
112 % OTHER PACKAGES
113 % --------------------------------------------------------
114 \usepackage[autostyle]{csquotes}
115 \usepackage[style=philosophy-classic]{biblatex}
116 \addbibresource{fontsize.bib}
117 \usepackage{array}
118 \usepackage{booktabs}
119 \usepackage{tabu}
120 \usepackage{siunitx}
121 \usepackage{multicol}
122 \usepackage{longtable}
123 \usepackage{caption}
124 %--------------------------------------------------------
125 % COMMANDS AND ENVIRONMENTS
126 %--------------------------------------------------------
127 \newcommand{\new}{\marginpar{\textcolor{red}{\textbf{NEW!}}}}
128 \newcommand{\argstyle}{\itshape}
129 \DeclareRobustCommand*{\ar}[1]{\texttt{\char`\{}\textrm{\argstyle#1}\texttt{\char`\}}}
130 \DeclareRobustCommand*{\oar}[1]{\texttt{[}\textrm{\argstyle#1}\texttt{]}}
131 \DeclareRobustCommand*{\meta}[1]{%
132 $\langle${\argstyle\rmfamily#1\kern0.12em}$\rangle$}
133 \DeclareRobustCommand*{\arm}[1]{\ar{\meta{\argstyle#1}}}
134 \DeclareRobustCommand*{\oarm}[1]{\oar{\meta{\argstyle#1}}}
135 \newcommand*{\OR}{${}\mid{}$}
136 \makeatletter
137 \newlength\CLett
138 \newcommand*\alert{
139 \par\noindent
140 \setbox\z@\hbox{\textdbend}\CLett=\wd\z@%
141 \raisebox{-1.05\baselineskip}[0pt][0pt]{%
142 \llap{\box\z@\kern6pt}}}
143 \makeatother
144 %
145 % New environments
146 %
147 \newenvironment{ttquote}{%
148 \begin{mdframed}\ttfamily\microtypesetup{activate=false}}{\end{mdframed}}
149 \newenvironment{latexcode}{\begin{mdframed}}{\end{mdframed}}
150 \makeatletter
151 % Customizing option and value list:
152 \patchcmd{\ltxsyntax}{\marglistwidth}{0pt}{}{}
153 \patchcmd{\ltd@option@i}{=}{\ = }{}{}
154 \patchcmd{\ltd@option@ii}{=}{\ = }{}{}
155 % New color for items
156 \renewcommand*{\optionlistfont}{%
157 \color{philA}\sffamily\displayverbfont}
158 \renewcommand*{\ltxsyntaxlabelfont}{%
159 \color{philA}\sffamily\displayverbfont}
160 \renewcommand*{\marglistfont}{%
161 \color{philA}\sffamily\displayverbfont}
162 %
163 % Table of contents
164 %
165 \renewcommand\tableofcontents{%
166 \setlength{\columnsep}{1cm}
167 {\centering
168 \section*{\contentsname}%
169 \@mkboth{\contentsname}{\contentsname}}
170 \thispagestyle{empty}
171 \begin{multicols}{2}
172 \@starttoc{toc}%
173 \end{multicols}}
174 \makeatother
175 %
176 % Commands for table 1 and 2
177 %
178 \def\tabonefontsize{\fontsize{12}{14.2}\selectfont}
179 \ExplSyntaxOn
180 \NewExpandableDocumentCommand{\getsize}{O{5}m}
181 {
182 \fp_eval:n { round(#2,#1) }
183 }
184 \ExplSyntaxOff
185 \makeatletter
186 \def\tabfontsize{\fontsize{12}{14}\selectfont}
187 \def\fs@getsize#1{%
188 \edef\fs@value{%
189 \SI[
190 detect-all = true,
191 round-mode = places,
192 round-precision = 2,
193 ]{\getsize[2]{#1}}{}%
194 }%
195 \tabfontsize%
196 \fs@value%
197 }
198 \newcommand{\tabrowone}[1]{%
199 \tabfontsize
200 \texttt{\symbol{92}#1}
201 &
202 \changefontsize[9.6]{8}\csname#1\endcsname\fs@getsize{\f@size} &
203 \changefontsize[10.2]{8.5}\csname#1\endcsname\fs@getsize{\f@size} &
204 \changefontsize[10.8]{9}\csname#1\endcsname\fs@getsize{\f@size} &
205 \changefontsize[11.4]{9.5}\csname#1\endcsname\fs@getsize{\f@size} &
206 \changefontsize[12]{10}\csname#1\endcsname\fs@getsize{\f@size} &
207 \changefontsize[12.6]{10.5}\csname#1\endcsname\fs@getsize{\f@size} &
208 \changefontsize[13.2]{11}\csname#1\endcsname\fs@getsize{\f@size} &
209 \changefontsize[13.8]{11.5}\csname#1\endcsname\fs@getsize{\f@size} &
210 \changefontsize[14,4]{12}\csname#1\endcsname\fs@getsize{\f@size}
211 \\*
212 \rowfont{\color{black!70}}
213 &
214 \changefontsize[9.6]{8}\csname#1\endcsname\fs@getsize{\baselineskip} &
215 \changefontsize[10.2]{8.5}\csname#1\endcsname\fs@getsize{\baselineskip} &
216 \changefontsize[10.8]{9}\csname#1\endcsname\fs@getsize{\baselineskip} &
217 \changefontsize[11.4]{9.5}\csname#1\endcsname\fs@getsize{\baselineskip} &
218 \changefontsize[12]{10}\csname#1\endcsname\fs@getsize{\baselineskip} &
219 \changefontsize[12.6]{10.5}\csname#1\endcsname\fs@getsize{\baselineskip}&
220 \changefontsize[13.2]{11}\csname#1\endcsname\fs@getsize{\baselineskip} &
221 \changefontsize[13.8]{11.5}\csname#1\endcsname\fs@getsize{\baselineskip}&
222 \changefontsize[14.4]{12}\csname#1\endcsname\fs@getsize{\baselineskip}
223 }
224
225 \newcommand{\tabrowtwo}[2]{%
226 \tabfontsize
227 \texttt{\symbol{92}#1}#2
228 &
229 \changefontsize[12]{10.0}\fs@getsize{\csname#1\endcsname} &
230 \changefontsize[12]{10.1}\fs@getsize{\csname#1\endcsname} &
231 \changefontsize[12]{10.2}\fs@getsize{\csname#1\endcsname} &
232 \changefontsize[12]{10.3}\fs@getsize{\csname#1\endcsname} &
233 \changefontsize[12]{10.4}\fs@getsize{\csname#1\endcsname} &
234 \changefontsize[12]{10.5}\fs@getsize{\csname#1\endcsname} &
235 \changefontsize[12]{10.6}\fs@getsize{\csname#1\endcsname} &
236 \changefontsize[12]{10.7}\fs@getsize{\csname#1\endcsname} &
237 \changefontsize[12]{10.8}\fs@getsize{\csname#1\endcsname} &
238 \changefontsize[12]{10.9}\fs@getsize{\csname#1\endcsname} &
239 \changefontsize[12]{11}\fs@getsize{\csname#1\endcsname}
240 }
241 \makeatother
242 %
243 % Commands for code
244 %
245 \def\baddition{\color{DarkBlue}}
246 \def\eaddition{\color{black}}
247 % --------------------------------------------------------
248 % HYPERREF SETUP
249 % --------------------------------------------------------
250 \usepackage{hyperref}
251 \hypersetup{%
252 hidelinks,
253 pdftitle={User's guide to \textsf{fontsize}},
254 pdfsubject={A small package to change the font size},
255 pdfauthor={Ivan Valbusa},
256 pdfkeywords={latex, fonts}}
257 % --------------------------------------------------------
258 % FINAL SETTINGS
259 % --------------------------------------------------------
260 \EnableCrossrefs
261 \CodelineIndex
262 \RecordChanges
263
264 \begin{document}
265 \DocInput{fontsize.dtx}
266 \end{document}
267 %</driver>
268 % \fi
269 %
270 % \CheckSum{3878}
271 %
272 % \CharacterTable
273 % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
274 % Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
275 % Digits \0\1\2\3\4\5\6\7\8\9
276 % Exclamation \! Double quote \" Hash (number) \#
277 % Dollar \$ Percent \% Ampersand \&
278 % Acute accent \' Left paren \( Right paren \)
279 % Asterisk \* Plus \+ Comma \,
280 % Minus \- Point \. Solidus \/
281 % Colon \: Semicolon \; Less than \<
282 % Equals \= Greater than \> Question mark \?
283 % Commercial at \@ Left bracket \[ Backslash \\
284 % Right bracket \] Circumflex \^ Underscore \_
285 % Grave accent \` Left brace \{ Vertical bar \|
286 % Right brace \} Tilde \~}
287 %
288 %
289 % \changes{v0.9}{2024/12/04}{Changed default calculations using the \cmd{fpeval} command. New option \opt{fsround}.}
290 % \changes{v0.8.6}{2024/01/11}{Added note on incompatibility with \sty{relsize}. Updated to updated to version |4034 2023-04-20 08:03:46Z| of the \file{scrkernel-fonts.dtx} file. }
291 % \changes{v0.8.5}{2021/08/04}{Updated documentation.}
292 % \changes{v0.8.4}{2021/05/21}{Maintenance release.}
293 % \changes{v0.8.3}{2021/04/18}{Corrected a bug in the \cmd{parindent} option.
294 % Updated documentation.}
295 % \changes{v0.8.2}{2021/04/17}{New \cmd{parindent} option. Updated documentation.}
296 % \changes{v0.8.1}{2021/03/14}{New \cmd{sampletext} command.
297 % Some lengths are now defined via \sty{xfp} package. Removed \cmd{headheight} definition. Updated documentation.}
298 % \changes{v0.8}{2021/03/04}{Corrected a bug occuring when the line spacing is grater than \SI{163.84}{pt}.}
299 % \changes{v0.7}{2021/02/10}{New font sizing commands \cmd{HUGE}, \cmd{HUGEr}, \cmd{HUGErr}, \cmd{HUGErrr}. Changed default name for the \file{.clo} file to \opt{fontsize}. Updated documentation.}
300 % \changes{v0.6}{2021/02/06}{New font sizing commands from \cmd{small} down. Updated documentation.}
301 % \changes{v0.5}{2021/01/31}{New font sizing commands from \cmd{normalsize} up. New command \cmd{printsamples}. Updated documentation.}
302 % \changes{v0.4}{2021/01/25}{Maintenance release. Updated documentation.}
303 % \changes{v0.3}{2020/12/19}{Added definitions of some lengths omitted from KOMA-script files: \cmd{smallskiamount}, \cmd{medskiamount}, \cmd{bigskiamount}. Redefined \cmd{parindent} and \cmd{headheight}.}
304 % \changes{v0.2}{2020/05/24}{Updated documentation and code comments.}
305 % \changes{v0.1}{2020/02/20}{First public release}
306 % \GetFileInfo{fontsize.dtx}
307 %
308 % \DoNotIndex{\newcommand,\newenvironment,\def,\begin,\vskip,\ }
309 % \DoNotIndex{\DeclareOption,\ExecuteOptions,\RequirePackage}
310 % \DoNotIndex{\@@end,\@empty,\@ifclassloaded,\@nameuse,\@nil}
311 % \DoNotIndex{\@undefined,\\,\`,\addtocounter,\advance,\bfseries}
312 % \DoNotIndex{\centering,\closeout,\define@key,\documentclass}
313 % \DoNotIndex{\edef,\else,\end,\endinput,\endtitlepage,\expandafter}
314 % \DoNotIndex{\extracolsep,\fi,\fill,\fontsize,\g@addto@macro,\toks}
315 % \DoNotIndex{\hrule,\hspace,\if,\if@twoside,\ifcase,\ifdefined}
316 % \DoNotIndex{\iffalse,\IfFileExists,\ifnum,\ifx,\immediate,\setcounter}
317 % \DoNotIndex{\jobname,\let,\long,\MakeUppercase,\MessageBreak}
318 % \DoNotIndex{\newcount,\newif,\newpage,\newtoks,\newwrite,\next}
319 % \DoNotIndex{\noexpand,\nofiles,\normalfont,\normalsize,\null}
320 % \DoNotIndex{\openout,\or,\Package,\PackageError,\PackageWarning}
321 % \DoNotIndex{\PackageWarningNoLine,\paperheight,\paperwidth,\par}
322 % \DoNotIndex{\parbox,\parindent,\relax,\scshape,\selectfont,\setkeys}
323 % \DoNotIndex{\sffamily,\space,\stretch,\string,\textheight,\textwidth}
324 % \DoNotIndex{\the,\thispagestyle,\unexpanded,\unless,\unskip,\upshape}
325 % \DoNotIndex{\usepackage,\vbox,\vfill,\vspace,\write,\z@}
326 % \DoNotIndex{\CurrentOption,\AtEndDocument,\@ne,\c@page,\m@ne}
327 % \DoNotIndex{\@firstofone,\@gobble,\@makeother,\begingroup,\endgroup}
328 % \DoNotIndex{\eTeXversion,\hbox,\hsize,\includegraphics,\newlinechar}
329 % \DoNotIndex{\titlepage,\vss,\vtop,\xdef,\@gobbletwo,\color,\dimexpr}
330 % \DoNotIndex{\huge,\large,\makebox,\ProcessOptions,\renewcommand}
331 %
332 % \thispagestyle{empty}
333 %
334 % \begin{tikzpicture}[overlay,remember picture]
335 % \draw[circular drop shadow,draw=none,fill=white] (current page.center) circle (6cm)
336 % node[align=center,anchor=center] {%
337 % Ivan Valbusa\\[1cm]
338 %
339 % \Huge\color{gray}\bfseries \parbox{10cm}{\centering The
340 % \\{{\color{philA}\fontsize{30}{32}\textsf{fontsize}}\\ package}}\\[1cm]
341 % \color{black!60!Goldenrod}
342 %
343 % \normalsize \fileversion{} -- \filedate
344 %
345 % };
346 % \end{tikzpicture}
347 % \clearpage\thispagestyle{empty}
348 % \null\vspace{1cm}
349 %
350 %\hfill\begin{minipage}{.5\textwidth}
351 % \raggedleft\footnotesize
352 % The serif typeface is Cochineal, created by Michael Sharpe
353 % on the basis of Sebastian Kosch's Crimson.
354 % The \texttt{typewriter} font is Inconsolata,
355 % designed by Raph Levien and the \textsf{sans serif} text
356 % is typeset in Linux Biolinum, created by Philipp H.~Poll.
357 %\end{minipage}
358 %
359 % \vfill
360 %
361 % ^^A ----------------------------------------------------------------
362 % ^^A
363 % \section*{Legalese}
364 % ^^A
365 % ^^A ----------------------------------------------------------------
366 %
367 % \noindent Copyright \copyright\ 2020-\the\year\ Ivan Valbusa
368 % \smallskip
369 %
370 % \noindent This package is author-maintained.
371 % Permission is granted to copy, distribute and/or modify this software
372 % under the terms of the \hologo{LaTeX} Project Public License, version 1.3 or
373 % later (\url{http://latex-project.org/lppl}).
374 % This software is provided ``as is'', without warranty of any kind,
375 % either expressed or implied, including, but not limited to, the implied
376 % warranties of merchantability and fitness for a particular purpose.
377 %
378 % ^^A ----------------------------------------------------------------
379 % ^^A
380 % \section*{Feedback}
381 % ^^A
382 % ^^A ----------------------------------------------------------------
383 %
384 % If you have any questions, feedback or requests please email
385 % me at \texttt{ivan dot valbusa at gmail dot com}. If you need specific
386 % features not already implemented, remember to attach the example files.
387 %
388 % \clearpage
389 %
390 % \begin{center}
391 % {\color{philA}\bfseries\sffamily
392 % \huge User's guide to \texttt{fontsize}\\[3mm]}
393 % {\large\bfseries\sffamily A small package to change the font size}
394 % \vspace{.8cm}
395 %
396 % \normalsize\fileversion{} -- \filedate
397 % \vspace{.7cm}
398 %
399 % Ivan Valbusa\\[2mm]
400 % \footnotesize\texttt{ivan dot valbusa at gmail dot com}
401 % \vspace{1cm}
402 % \end{center}
403 %
404 % \begin{abstract}
405 % \noindent The \sty{fontsize} package allows you to set arbitrary sizes
406 % for the main font of the document and to adjust the line spacing accordingly.
407 % It also provides new font sizing commands and lets you generate your own \file{.clo} file for better tuning.
408 % \end{abstract}
409 %
410 % \tableofcontents
411 %
412 %^^A---------------------------------------------------------------------
413 % \section*{Credits}
414 %^^A---------------------------------------------------------------------
415 %
416 % The code is an excerpt of the \sty{scrextend} and
417 % \sty{scrfontsizes} packages \parencite{koma}, with few minor
418 % changes to make it completely independent of the KOMA-script bundle and with
419 % a couple of new features. The package is updated to version
420 %|4034 2023-04-20 08:03:46Z| of the \file{scrkernel-fonts.dtx} file.
421 %
422 %^^A---------------------------------------------------------------------
423 % \section*{Caveat}
424 %^^A---------------------------------------------------------------------
425 %
426 % Although effective with any value of the font size (as long as the font
427 % is scalable), the package is meant for small font size changes.
428 % For truly optimal results you should (re)define your own \file{.clo} file.
429 % In fact note that the file generated with \cmd{generateclofile},
430 % as well as the macros redefined via \cmd{changefontsize},
431 % are a subset of the standard \file{.clo} files.
432 %^^A---------------------------------------------------------------------
433 % \section{Usage}
434 %^^A---------------------------------------------------------------------
435 % \enlargethispage{\baselineskip}
436 %
437 % The package can be loaded, as usual, with:
438 % \begin{ttquote}
439 % \noindent\cmd{usepackage}\oarg{options}|{fontsize}|
440 % \end{ttquote}
441 %
442 %^^A The \sty{geometry} package and the settings to change the page layout
443 %^^A must follow \sty{fontsize} to avoid errors in the layout
444 %
445 %^^A---------------------------------------------------------------------
446 % \subsection{Options}
447 %^^A---------------------------------------------------------------------
448 %
449 % \begin{optionlist*}
450 %
451 % \optitem[10pt]{fontsize}{\meta{fontsize}}
452 %
453 % Sets the normal size to \meta{fontsize} and the normal line spacing
454 % to 1.2\meta{fontsize}. The other sizes (\cmd{tiny}, \cmd{scriptsize},
455 % ecc.) and line spacings are set proportionally.
456 % You can use any unit recognized by \TeX\ and you can
457 % omit the unit as well (in which case it defaults to \texttt{pt}).
458 %
459 % \begin{footnotesize}
460 %
461 % Note that \sty{fontsize} does not redefine some commands of the standard
462 % \textit{.clo} files such as those related to the page layout and few others.
463 % For example the \opt{12pt} class option redefine \cmd{Huge} (via |\let\Huge=\huge|)
464 % which is not redefined by \opt{fontsize=12pt}. For these reasons, if possible, you
465 % should always set a font size class option that comes close to the one
466 % loaded by the package. For example with \opt{fontsize=12.2pt}
467 % you should load the \opt{12pt} class option.
468 %
469 % \end{footnotesize}
470 %
471 % \optitem[1.5\meta{fontsize}]{parindent}{\meta{dimen}}
472 %
473 % Sets the value of \cmd{parindent}. You can use any unit recognized by
474 % \TeX\ but for consistency it is preferable to use a
475 % font-dependent unit such as em.
476 %
477 % \begin{footnotesize}
478 %
479 % Note that the "em" is simply an arbitrary unit that comes with a particular font.
480 % The value of \cmd{parindent} given in ems depends on both the font used and
481 % on how or where it is set: whether before or after
482 % |\begin{document}|. For this reason, don't expect \SI{1}{em} to always be equivalent
483 % to the currently specified \meta{fontsize}. If you don't like this behavior,
484 % use absolute units such as pt, cm or mm.
485 %
486 % \end{footnotesize}
487 %
488 % \optitem[fontsize]{cloname}{\meta{name}}
489 %
490 % If declared \textit{before} \opt{fontsize}, it loads the file named
491 % \file{\meta{name}\meta{fontsize}.clo} to setup the font sizes.
492 % This file can be generated through the \cmd{generateclofile}
493 % command (see below).
494 %
495 % \optitem[5]{fsround}{\meta{n}}
496 %
497 % Rounds values to the \meta{n}th decimal place.
498 % If you are not interested in generating a \file{.clo} file,
499 % and then editing it, you should not need this option.
500 %
501 %^^A If \opt{cloname=fontsize-std} and \opt{fontsize=10\OR 11\OR 12}
502 %^^A a file which emulate the standard bk*.clo files will be used.
503 %^^A \file{fontsize-std10pt.clo},
504 %^^A \file{fontsize-std11pt.clo} or
505 %^^A \file{fontsize-std11pt.clo} will be used,
506 %
507 % \end{optionlist*}
508 %
509 %^^A---------------------------------------------------------------------
510 % \subsection{Commands}\label{sec:commands}
511 %^^A---------------------------------------------------------------------
512 %
513 % \begin{ltxsyntax}
514 %
515 % \cmditem{changefontsize}[baselineskip]{fontsize} \hfill iff \meta{baselineskip} $\geq$\meta{fontsize}
516 %
517 % Sets the normal size to \meta{fontsize} and the normal line spacing to
518 % \meta{baselineskip}. The other sizes (\cmd{tiny}, \cmd{scriptsize},
519 % ecc.) and line spacings are set proportionally.
520 % If the first optional argument is omitted, the command has the same effect
521 % of the \opt{fontsize} option. You can use any unit recognized by \TeX\ and
522 % you can omit the unit as well (in which case it defaults to \texttt{pt}).
523 %
524 %\begin{latexcode}
525 %\begin{verbatim}
526 %\changefontsize[13.5pt]{11.5pt}
527 %\end{verbatim}
528 %\end{latexcode}
529 %
530 % \cmditem{generateclofile}{name}[baselineskip]{fontsize} \hfill iff \meta{baselineskip} $\geq$\meta{fontsize}
531 %
532 % Generates a file named \file{\meta{name}\meta{fontsize}.clo} in which the
533 % normal size is \meta{fontsize} and the normal line spacing is \meta{baselineskip}.
534 % The other sizes (\cmd{tiny}, \cmd{scriptsize},
535 % \cmd{small}, ecc.) and line spacings are set proportionally.
536 % You can use any unit recognized
537 % by \TeX\ and you can omit the unit as well (in which case it defaults
538 % to \texttt{pt}).
539 % If \opt{cloname=\meta{name}} \textit{and} \opt{fontsize=\meta{fontsize}},
540 % the generated file will be automatically used to setup the main sizes.
541 %
542 % \emph{In fact the \file{.clo} file is only needed if you intend to modify it.
543 % In this case remember to comment the command, otherwise the edited
544 % file will be overwritten.}
545 %
546 %\begin{latexcode}
547 %\begin{verbatim}
548 %\usepackage[cloname=fs,fontsize=11.5]{fontsize} % loads fs11.5.clo
549 % \generateclofile{fs}[13.5]{11.5} % creates fs11.5.clo
550 %\end{verbatim}
551 %\end{latexcode}
552 %
553 % \cmditem{printsamples}{baselineskip}{fontsize}[sizes] \hfill iff \meta{baselineskip} $\geq$\meta{fontsize}
554 %
555 % A command thought to test the \sty{fontsize} settings.
556 % It prints a text sample for every size given in the third optional argument.
557 % If this argument is omitted, it prints a sample for each available size.
558 % See the examples on page \pageref{sec:example}.
559 %
560 %\begin{latexcode}
561 %\begin{verbatim}
562 %\printsamples{13pt}{11pt}[normalsizer,normalsizerr,normalsizerrr]
563 %\printsamples{13.5pt}{12pt}
564 %\end{verbatim}
565 %\end{latexcode}
566 %
567 % \cmditem{sampletext}{text}
568 %
569 % Defines the \meta{text} to be used by \cmd{printsamples}.
570 %
571 % \end{ltxsyntax}
572 %
573 %^^A---------------------------------------------------------------------
574 % \subsection{New font sizing commands}\label{sec:sizingcmd}
575 %^^A--------------------------------------------------------------------
576 %
577 % The package provides three additional font sizing commands
578 % for each standard size (plus the new \cmd{HUGE} command).
579 % See table \ref{tab:sizes} for details.
580 % \medskip
581 %
582 %\def\fshw{Lipsum}
583 %\newcommand{\tcmd}[1]{\textcolor{philA}{\cmd{#1}}}
584 % \centerline{
585 % \begin{tabular}[b]{ll}
586 % \cmd{tiny} & \tiny \fshw \\
587 % \tcmd{tinyr} & \tinyr \fshw \\
588 % \tcmd{tinyrr} & \tinyrr \fshw \\
589 % \tcmd{tinyrrr} & \tinyrrr \fshw \\
590 % \cmd{scriptsize} & \scriptsize \fshw \\
591 % \tcmd{scriptsizer} & \scriptsizer \fshw \\
592 % \tcmd{scriptsizerr} & \scriptsizerr \fshw \\
593 % \tcmd{scriptsizerrr} & \scriptsizerrr \fshw \\
594 % \cmd{footnotesize} & \footnotesize \fshw \\
595 % \tcmd{footnotesizer} & \footnotesizer \fshw \\
596 % \tcmd{footnotesizerr} & \footnotesizerr \fshw \\
597 % \tcmd{footnotesizerrr} & \footnotesizerrr \fshw \\
598 % \cmd{small} & \small \fshw \\
599 % \tcmd{smallr} & \smallr \fshw \\
600 % \tcmd{smallrr} & \smallrr \fshw \\
601 % \tcmd{smallrrr} & \smallrrr \fshw \\
602 % \cmd{normalsize} & \normalsize \fshw \\
603 % \tcmd{normalsizer} & \normalsizer \fshw \\
604 % \tcmd{normalsizerr} & \normalsizerr \fshw \\
605 % \tcmd{normalsizerrr} & \normalsizerrr \fshw \\
606 % \cmd{large} & \large \fshw \\
607 % \tcmd{larger} & \larger \fshw \\
608 % \tcmd{largerr} & \largerr \fshw \\
609 % \tcmd{largerrr} & \largerrr \fshw \\
610 % \cmd{Large} & \Large \fshw \\
611 % \tcmd{Larger} & \Larger \fshw \\
612 % \tcmd{Largerr} & \Largerr \fshw \\
613 % \tcmd{Largerrr} & \Largerrr \fshw
614 % \end{tabular}
615 % \hskip5mm
616 % \begin{tabular}[b]{ll}
617 % \cmd{LARGE} & \LARGE \fshw \\
618 % \tcmd{LARGEr} & \LARGEr \fshw \\
619 % \tcmd{LARGErr} & \LARGErr \fshw \\
620 % \tcmd{LARGErrr} & \LARGErrr \fshw \\
621 % \cmd{huge} & \huge \fshw \\
622 % \tcmd{huger} & \huger \fshw \\
623 % \tcmd{hugerr} & \hugerr \fshw \\
624 % \tcmd{hugerrr} & \hugerrr \fshw \\
625 % \cmd{Huge} & \Huge \fshw \\
626 % \tcmd{Huger} & \Huger \fshw \\
627 % \tcmd{Hugerr} & \Hugerr \fshw \\
628 % \tcmd{Hugerrr} & \Hugerrr \fshw \\
629 % \cmd{HUGE} & \HUGE \fshw \\
630 % \tcmd{HUGEr} & \HUGEr \fshw \\
631 % \tcmd{HUGErr} & \HUGErr \fshw \\
632 % \tcmd{HUGErrr} & \HUGErrr \fshw
633 % \end{tabular}
634 % }
635 %\bigskip
636 %
637 %\alert If you want these commands to work as expected, the font must be
638 % smoothly scalable.
639 % This is the case of many Type 1 and Open Type fonts such as Cochineal
640 % used in this document \parencite{cochineal}, but
641 % if the font has optical sizes, unusual things can happen:
642 % some larger sizes may appear smaller.
643 % For example, with the Latin Modern typeface \parencite{lm}
644 % a similar situation can be encountered when normal size is set
645 % to 12\,pt:\medskip
646 %
647 % \begingroup
648 % \centering
649 % \fontfamily{lmr}\selectfont
650 %
651 %\begin{minipage}[b]{8cm}
652 % \begin{tabular}[b]{lll}
653 % \tcmd{largerr} & \texttlf{15.84\,pt} &\largerr Hello world \\
654 % \tcmd{larger} & \texttlf{15.12\,pt} &\larger Hello world \\
655 % \tcmd{large} & \texttlf{14.40\,pt} &\large Hello world
656 % \end{tabular}
657 %\end{minipage}
658 % \tikz[overlay]{\draw[->,draw=red,thick,dashed] (0.19,1.25) -- (3.7,1.4);}
659 % \scalebox{3}{\large H} \scalebox{3}{\larger H} \scalebox{3}{\largerr H}
660 %
661 % \endgroup
662 % \medskip
663 %
664 % In fact the font used for the \cmd{larger} `Hello world' is bigger than
665 % that used for the \cmd{large} one. This optical effect is due to the minor
666 % thickness of the stems, which makes the words appear shorter and clearer,
667 % but not less high (as you can see in the figure on the
668 % right which shows the letter H appropriately scaled to see the
669 % differences better).
670 %
671 %^^A In any case, if you use this package with the \LaTeX\
672 %^^A default font (i.e. Computer Modern) I recommend loading
673 %^^A \cmd{RequirePackage}|{fix-cm}| just before \cmd{documentclass}.
674 %
675 %
676 %^^A\newgeometry{top=2cm,bottom=3cm}
677 %
678 %^^A\begin{smallrrr}
679 %
680 %\def\grayrule{\\\tabucline[0.4pt black!40 off 2pt]{-}\\[-2ex]\rowfont{\color{philA}}}
681 %
682 %\begin{longtabu}{m{3.4cm}@{}*{8}{@{}r@{}}r}
683 % \caption{The value of all available sizes (rounded to the second decimal place)
684 % relative to \cmd{normalsize} ranging from 8\,pt to 12\,pt with increments of
685 % 0.5\,pt. The first row of each size shows the font size; the second row (colored in
686 % gray) shows the default line spacing}\label{tab:sizes}\\[1ex]
687 % \toprule
688 % \endfirsthead
689 %
690 % \multicolumn{10}{l}{\scriptsize\itshape \ldots continues from previous page}\\*[1ex]
691 % \endhead
692 %
693 % \multicolumn{10}{r}{\scriptsize\itshape continues on next page\ldots}
694 % \endfoot
695 %
696 % \arrayrulecolor{black}
697 % \bottomrule
698 % \endlastfoot
699 %
700 % \rowfont{\color{philA}}
701 % \tabrowone{tiny}\\
702 % \tabrowone{tinyr}\\
703 % \tabrowone{tinyrr}\\
704 % \tabrowone{tinyrrr}\grayrule
705 % \tabrowone{scriptsize}\\
706 % \tabrowone{scriptsizer}\\
707 % \tabrowone{scriptsizerr}\\
708 % \tabrowone{scriptsizerrr}\grayrule
709 % \tabrowone{footnotesize}\\
710 % \tabrowone{footnotesizer}\\
711 % \tabrowone{footnotesizerr}\\
712 % \tabrowone{footnotesizerrr}\grayrule
713 % \tabrowone{small}\\
714 % \tabrowone{smallr}\\
715 % \tabrowone{smallrr}\\
716 % \tabrowone{smallrrr}\grayrule
717 % \tabrowone{normalsize}\\
718 % \tabrowone{normalsizer}\\
719 % \tabrowone{normalsizerr}\\
720 % \tabrowone{normalsizerrr}\grayrule
721 % \tabrowone{large}\\
722 % \tabrowone{larger}\\
723 % \tabrowone{largerr}\\
724 % \tabrowone{largerrr}\grayrule
725 % \tabrowone{Large}\\
726 % \tabrowone{Larger}\\
727 % \tabrowone{Largerr}\\
728 % \tabrowone{Largerrr}\grayrule
729 % \tabrowone{LARGE}\\
730 % \tabrowone{LARGEr}\\
731 % \tabrowone{LARGErr}\\
732 % \tabrowone{LARGErrr}\grayrule
733 % \tabrowone{huge}\\
734 % \tabrowone{huger}\\
735 % \tabrowone{hugerr}\\
736 % \tabrowone{hugerrr}\grayrule
737 % \tabrowone{Huge}\\
738 % \tabrowone{Huger}\\
739 % \tabrowone{Hugerr}\\
740 % \tabrowone{Hugerrr}\grayrule
741 % \tabrowone{HUGE}\\
742 % \tabrowone{HUGEr}\\
743 % \tabrowone{HUGErr}\\
744 % \tabrowone{HUGErrr}\\
745 %\end{longtabu}
746 %
747 %^^A\end{smallrrr}
748 %
749 %^^A\restoregeometry
750 %
751 %^^A---------------------------------------------------------------------
752 %
753 % \subsection{Some text samples}\label{sec:example}
754 %
755 %^^A--------------------------------------------------------------------
756 % The following samples are obtained with the \cmd{printsamples}
757 % command (see section \ref{sec:commands}):
758 %\begin{verbatim}
759 % \printsamples{12.6pt}{10.6pt}[normalsize,normalsizer,normalsizerr,
760 % normalsizerrr,large,larger,largerr,largerrr]
761 %\end{verbatim}
762 % \printsamples{12.6pt}{10.6pt}[%
763 % normalsize,normalsizer,normalsizerr,
764 % normalsizerrr,large,larger,largerr,largerrr]
765 %
766 %^^A---------------------------------------------------------------------
767 %
768 % \section{Known issues}
769 %
770 %^^A--------------------------------------------------------------------
771 %
772 % The \opt{parindent} option does not work with classes and packages which sets \cmd{parindent}
773 % inside the \cmd{AtBeginDocument} hook (and other hooks). Among these is the \sty{tufte}
774 % class \parencite{tufte}. In such cases you can set the default
775 % indentation, for example, with \cmd{setlength}|{parindent}|\arm{dimen}
776 % declared \textit{after} |\begin{document}|.
777 %
778 %
779 % \alert The \sty{fontsize} package is incompatible with \sty{relsize} by \textcite{relsize}.
780 %
781 % \StopEventually{%
782 % \printbibliography[heading=bibintoc]
783 % \PrintChanges\PrintIndex}
784 %
785 % \iffalse
786 %<*package>
787 % \fi
788 %^^A---------------------------------------------------------------------
789 % \section{The Code}
790 %^^A---------------------------------------------------------------------
791 % \textcolor{DarkBlue}{The parts added to the basic code of \file{scrextend}
792 % and \file{scrfontsizes} are highlighted in blue.}
793 %
794 % \noindent All the options of the package are defined via
795 % \sty{xkeyval} \parencite{xkeyval},
796 % while the \sty{xfp} package \parencite{xfp} provides the \cmd{fpeval} command
797 % to use instead of \cmd{dimexpr} for some size calculations.
798 % Only three new package options, called \opt{cloname}, \opt{parindent} and
799 % \opt{fsround} are defined.
800 %
801 % \baddition
802 % \begin{macrocode}
803 \@ifpackageloaded{xkeyval}{}{\RequirePackage{xkeyval}}
804 \unless\ifdefined\fpeval\RequirePackage{xfp}\fi
805 \DeclareOptionX{cloname}[fontsize]{\def\@fontsizefilebase{#1}}
806 \DeclareOptionX{parindent}[\fscalc{1.5\@tempdimb}]{\def\@fontsizeparindent{#1}}
807 \DeclareOptionX{fsround}[5]{\def\@fsround{#1}}
808 % \end{macrocode}
809 % \eaddition
810 %
811 % \paragraph{Excerpt from \file{scrextend.sty}}
812 %
813 % Here the \sty{scrextend} code begins. All the KOMA related codes have
814 % been removed and only a few names have been changed.
815 % The value of \cmd{|@|fontsizefilebase} is set to \texttt{fontsize}
816 % instead of \texttt{scrsize}.
817 % \begin{macrocode}
818 \DeclareOptionX{fontsize}[10]{%
819 \expandafter\@defaultunits\expandafter\@tempdima#1 pt\relax\@nnil
820 \edef\@tempa{#1}%
821 \setlength{\@tempdimb}{\@tempdima}%
822 \edef\@tempb{\strip@pt\@tempdimb}%
823 \addtolength{\@tempdimb}{-10\p@}%
824 \edef\@ptsize{\strip@pt\@tempdimb}%
825 \edef\@tempa{%
826 \noexpand\makeatletter
827 \noexpand\InputIfFileExists{\@fontsizefilebase\@tempa.clo}{%
828 \noexpand\PackageInfo{fontsize}{%
829 File `\@fontsizefilebase\@tempa.clo' used to setup font sizes}%
830 }{%
831 \noexpand\InputIfFileExists{\@fontsizefilebase\@tempb pt.clo}{%
832 \noexpand\PackageInfo{fontsize}{%
833 File `\@fontsizefilebase\@tempb pt.clo' used instead of%
834 \noexpand\MessageBreak
835 file `\@fontsizefilebase\@tempa.clo' to setup font sizes}%
836 }{%
837 \noexpand\changefontsize{#1}%
838 }%
839 }%
840 \noexpand\catcode`\noexpand\@=\the\catcode`\@
841 }%
842 \@ifundefined{changefontsize}{%
843 \expandafter\AtEndOfPackage\expandafter{\@tempa}%
844 }{%
845 \@tempa
846 }
847 }
848 % \end{macrocode}
849 % Now we can execute and process the new options defined above.
850 % As \opt{cloname} is responsible for defining \cmd{|@|fontsizefilebase}
851 % it must precede \opt{fontsize} which uses this command.
852 % The \cmd{ctm@setlength} and \cmd{changefontsize} commands
853 % are simply new names, respectively, for \cmd{scr@setlength}
854 % and \cmd{changefontsizes} used in \file{scrextend.sty}.
855 % \baddition
856 % \begin{macrocode}
857 \ExecuteOptionsX{cloname,fontsize,parindent,fsround}
858 \ProcessOptionsX*\relax
859 % \end{macrocode}
860 % \eaddition
861 % We introduce a new command to perform calculations via \fpeval.
862 % The \cmd{\@fsround} command is defined by the \opt{fsround} option.
863 % \baddition
864 % \begin{macrocode}
865 \NewDocumentCommand{\fscalc}{m}{\fpeval{round(#1,\@fsround)}pt}
866 % \end{macrocode}
867 % \eaddition
868 % In the following code, |#1|, |#2|, |#3|, |#4|
869 % have been wrapped in the \cmd{fscalc} command
870 % just defined.
871 % \begin{macrocode}
872 \newcommand*\ctm@setlength[4]{%
873 \ifdim #2<\ifdim #2=\z@ \z@ \else \p@\fi
874 \ifdim #3<\ifdim #3=\z@ \z@ \else \p@\fi
875 \ifdim #4<\ifdim #4=\z@ \z@ \else \p@\fi
876 \setlength{#1}{\p@ \@plus\p@ \@minus\p@}%
877 \else
878 \setlength{#1}{\p@ \@plus\p@ \@minus\fscalc{#4}}%
879 \fi
880 \else
881 \ifdim #4<\ifdim #4=\z@ \z@ \else \p@\fi
882 \setlength{#1}{\p@ \@plus\fscalc{#3} \@minus\p@}%
883 \else
884 \setlength{#1}{\p@ \@plus\fscalc{#3} \@minus\fscalc{#4}}%
885 \fi
886 \fi
887 \else
888 \ifdim #3<\ifdim #3=\z@ \z@ \else \p@\fi
889 \ifdim #4<\ifdim #4=\z@ \z@ \else \p@\fi
890 \setlength{#1}{\fscalc{#2} \@plus\p@ \@minus\p@}%
891 \else
892 \setlength{#1}{\fscalc{#2} \@plus\p@ \@minus\fscalc{#4}}%
893 \fi
894 \else
895 \ifdim #4<\ifdim #4=\z@ \z@ \else \p@\fi
896 \setlength{#1}{\fscalc{#2} \@plus\fscalc{#3} \@minus\p@}%
897 \else
898 \setlength{#1}{\fscalc{#2} \@plus\fscalc{#3} \@minus\fscalc{#4}}%
899 \fi
900 \fi
901 \fi
902 }
903 % \end{macrocode}
904 % In the following code the default line spacing was set in \sty{scrextend.sty}
905 % to $1.2*$\meta{normal size} using the basic calculation: |1.2\@tempdima|.
906 % Coherently with the other cases, here we prefer
907 % to use \cmd{fscalc}:
908 % \begin{macrocode}
909 \providecommand*{\changefontsize}[2][\fscalc{1.2*\@tempdima}]{%
910 \@defaultunits\@tempdima#2pt\relax\@nnil
911 \setlength{\@tempdimc}{\@tempdima}%
912 \addtolength{\@tempdimc}{-10\p@}%
913 \edef\@ptsize{\strip@pt\@tempdimc}%
914 \@defaultunits\@tempdimb#1pt\relax\@nnil
915 % \end{macrocode}
916 % The value of \cmd{@tempdimc} set in \sty{scrextend.sty}
917 % \begin{center}\footnotesize
918 % |\setlength{\@tempdimc}{\dimexpr (100\@tempdimb / \@tempdima * \p@)}|
919 % \end{center}
920 % returns an error when the line spacing is greater than \SI{163.84}{pt}
921 % or the value passed to the \opt{fontsize} option is grater than \SI{136.53}{pt}.
922 % This is due to the intermediate calculation:
923 % $100 \verb!\@tempdimb! = \SI{16384}{pt}$, which is
924 % the maximum dimension that may be stored in plain
925 % \TeX\ and \LaTeX.
926 % The problem, which is probably more theoretical than practical,
927 % can be solved simply by replacing
928 % the above code with this (thanks to Claudio Beccari):
929 % \baddition
930 % \begin{macrocode}
931 \setlength{\@tempdimc}{\fpeval{100*\@tempdimb/\@tempdima}pt}%
932 % \end{macrocode}
933 % \eaddition
934 % \begin{macrocode}
935 \edef\@tempb{\the\@tempdimc}%
936 \setlength{\@tempdimc}{\@tempdima}%
937 \def\@tempa##1##2##3##4##5\@nnil{\def##1{##2.##3##4}}%
938 \expandafter\@tempa\expandafter\@tempb\@tempb\@nnil%
939 \ctm@setlength{\abovedisplayskip}%
940 {.8333\@tempdimb}{.1667\@tempdimb}{.5\@tempdimb}%
941 \ctm@setlength{\abovedisplayshortskip}{\z@}{.25\@tempdimb}{\z@}%
942 \ctm@setlength{\belowdisplayshortskip}%
943 {.5\@tempdimb}{.25\@tempdimb}{.25\@tempdimb}%
944 \setlength{\belowdisplayskip}{\abovedisplayskip}%
945 \edef\reserved@a{%
946 \noexpand\@setfontsize\noexpand\normalsize
947 {\the\@tempdima}{\the\@tempdimb}%
948 \abovedisplayskip \the\abovedisplayskip
949 \abovedisplayshortskip \the\abovedisplayshortskip
950 \belowdisplayskip \the\belowdisplayskip
951 \belowdisplayshortskip \the\belowdisplayshortskip
952 \let\noexpand\@listi\noexpand\@listI
953 }%
954 \let\normalsize\@undefined
955 \expandafter\DeclareRobustCommand\expandafter\normalsize\expandafter{\reserved@a}%
956 % \end{macrocode}
957 % Also in the following cases (up to page \pageref{endfscalc}),
958 % the values of \cmd{@tempdima} and \cmd{@tempdimb}
959 % were calculated through \cmd{fscalc}:
960 % \begin{macrocode}
961 \setlength{\@tempdima}{\fscalc{0.9125\@tempdimc}}%
962 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
963 \ctm@setlength{\abovedisplayskip}%
964 {.8333\@tempdimb}{.1667\@tempdimb}{.5\@tempdimb}%
965 \ctm@setlength{\abovedisplayshortskip}{\z@}{.25\@tempdimb}{\z@}%
966 \ctm@setlength{\belowdisplayshortskip}%
967 {.5\@tempdimb}{.25\@tempdimb}{.25\@tempdimb}%
968 \setlength{\belowdisplayskip}{\abovedisplayskip}%
969 \edef\reserved@a{%
970 \noexpand\@setfontsize\noexpand\small
971 {\the\@tempdima}{\the\@tempdimb}%
972 \abovedisplayskip \the\abovedisplayskip
973 \abovedisplayshortskip \the\abovedisplayshortskip
974 \belowdisplayskip \the\belowdisplayskip
975 \belowdisplayshortskip \the\belowdisplayshortskip
976 \let\noexpand\@listi\noexpand\@listi@small
977 }%
978 \let\small\@undefined
979 \expandafter\DeclareRobustCommand\expandafter\small\expandafter{\reserved@a} %
980 \setlength{\@tempdima}{\fscalc{.83334\@tempdimc}}%
981 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
982 \ctm@setlength{\abovedisplayskip}%
983 {.8333\@tempdimb}{.1667\@tempdimb}{.5\@tempdimb}%
984 \ctm@setlength{\abovedisplayshortskip}{\z@}{.25\@tempdimb}{\z@}%
985 \ctm@setlength{\belowdisplayshortskip}%
986 {.5\@tempdimb}{.25\@tempdimb}{.25\@tempdimb}%
987 \setlength{\belowdisplayskip}{\abovedisplayskip}%
988 \edef\reserved@a{%
989 \noexpand\@setfontsize\noexpand\footnotesize
990 {\the\@tempdima}{\the\@tempdimb}%
991 \abovedisplayskip \the\abovedisplayskip
992 \abovedisplayshortskip \the\abovedisplayshortskip
993 \belowdisplayskip \the\belowdisplayskip
994 \belowdisplayshortskip \the\belowdisplayshortskip
995 \let\noexpand\@listi\noexpand\@listi@footnotesize
996 }%
997 \let\footnotesize\@undefined
998 \expandafter\DeclareRobustCommand\expandafter\footnotesize\expandafter{\reserved@a}%
999 \setlength{\@tempdima}{\fscalc{.66667\@tempdimc}}%
1000 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1001 \edef\reserved@a{%
1002 \noexpand\@setfontsize\noexpand\scriptsize
1003 {\the\@tempdima}{\the\@tempdimb}%
1004 }%
1005 \let\scriptsize\@undefined
1006 \expandafter\DeclareRobustCommand\expandafter\scriptsize\expandafter{\reserved@a}%
1007 \setlength{\@tempdima}{\fscalc{.5\@tempdimc}}%
1008 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1009 \edef\reserved@a{%
1010 \noexpand\@setfontsize\noexpand\tiny
1011 {\the\@tempdima}{\the\@tempdimb}%
1012 }%
1013 \let\tiny\@undefined
1014 \expandafter\DeclareRobustCommand\expandafter\tiny\expandafter{\reserved@a}%
1015 \setlength{\@tempdima}{\fscalc{1.2\@tempdimc}}%
1016 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1017 \edef\reserved@a{%
1018 \noexpand\@setfontsize\noexpand\large
1019 {\the\@tempdima}{\the\@tempdimb}%
1020 }%
1021 \let\large\@undefined
1022 \expandafter\DeclareRobustCommand\expandafter\large\expandafter{\reserved@a}%
1023 \setlength{\@tempdima}{\fscalc{1.44\@tempdimc}}%
1024 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1025 \edef\reserved@a{%
1026 \noexpand\@setfontsize\noexpand\Large
1027 {\the\@tempdima}{\the\@tempdimb}%
1028 }%
1029 \let\Large\@undefined
1030 \expandafter\DeclareRobustCommand\expandafter\Large\expandafter{\reserved@a}%
1031 \setlength{\@tempdima}{\fscalc{1.728\@tempdimc}}%
1032 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1033 \edef\reserved@a{%
1034 \noexpand\@setfontsize\noexpand\LARGE
1035 {\the\@tempdima}{\the\@tempdimb}%
1036 }%
1037 \let\LARGE\@undefined
1038 \expandafter\DeclareRobustCommand\expandafter\LARGE\expandafter{\reserved@a}%
1039 \setlength{\@tempdima}{\fscalc{2.074\@tempdimc}}%
1040 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1041 \edef\reserved@a{%
1042 \noexpand\@setfontsize\noexpand\huge
1043 {\the\@tempdima}{\the\@tempdimb}%
1044 }%
1045 \let\huge\@undefined
1046 \expandafter\DeclareRobustCommand\expandafter\huge\expandafter{\reserved@a}%
1047 \setlength{\@tempdima}{\fscalc{2.488\@tempdimc}}%
1048 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1049 \edef\reserved@a{%
1050 \noexpand\@setfontsize\noexpand\Huge
1051 {\the\@tempdima}{\the\@tempdimb}%
1052 }%
1053 \let\Huge\@undefined
1054 \expandafter\DeclareRobustCommand\expandafter\Huge\expandafter{\reserved@a}%
1055 % \end{macrocode}
1056 % We will now define some new font sizing commands. There are three variants
1057 % for each standard command:
1058 % \cmd{\meta{cmd}r} < \cmd{\meta{cmd}rr} < \cmd{\meta{cmd}rrr}.
1059 % Every level is scaled proportionally in order to preserve the default
1060 % value of the corresponding standard command.
1061 % \baddition
1062 % \begin{macrocode}
1063 \def\fontsize@pre{%
1064 \ctm@setlength{\abovedisplayskip}%
1065 {.8333\@tempdimb}{.1667\@tempdimb}{.5\@tempdimb}%
1066 \ctm@setlength{\abovedisplayshortskip}{\z@}{.25\@tempdimb}{\z@}%
1067 \ctm@setlength{\belowdisplayshortskip}%
1068 {.5\@tempdimb}{.25\@tempdimb}{.25\@tempdimb}%
1069 \setlength{\belowdisplayskip}{\abovedisplayskip}%
1070 }
1071 \def\fontsize@app{%
1072 \abovedisplayskip \the\abovedisplayskip%
1073 \abovedisplayshortskip \the\abovedisplayshortskip%
1074 \belowdisplayskip \the\belowdisplayskip%
1075 \belowdisplayshortskip \the\belowdisplayshortskip%
1076 }
1077 % \end{macrocode}
1078 % {\color{black}Definition of \cmd{smallr}, \cmd{smallrr}, \cmd{smallrrr}.\\
1079 % Scale factor: 0,021875.}
1080 % \begin{macrocode}
1081 \setlength{\@tempdima}{\fscalc{0.934375\@tempdimc}}%
1082 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1083 \fontsize@pre
1084 \edef\reserved@a{%
1085 \noexpand\@setfontsize\noexpand\smallr
1086 {\the\@tempdima}{\the\@tempdimb}%
1087 \fontsize@app
1088 \let\noexpand\@listi\noexpand\@listi@small
1089 }%
1090 \let\smallr\@undefined
1091 \expandafter\DeclareRobustCommand\expandafter\smallr\expandafter{\reserved@a}%
1092 \setlength{\@tempdima}{\fscalc{0.95625\@tempdimc}}%
1093 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1094 \fontsize@pre
1095 \edef\reserved@a{%
1096 \noexpand\@setfontsize\noexpand\smallrr
1097 {\the\@tempdima}{\the\@tempdimb}%
1098 \fontsize@app
1099 \let\noexpand\@listi\noexpand\@listi@small
1100 }%
1101 \let\smallrr\@undefined
1102 \expandafter\DeclareRobustCommand\expandafter\smallrr\expandafter{\reserved@a}%
1103 \setlength{\@tempdima}{\fscalc{0.978125\@tempdimc}}%
1104 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1105 \fontsize@pre
1106 \edef\reserved@a{%
1107 \noexpand\@setfontsize\noexpand\smallrrr
1108 {\the\@tempdima}{\the\@tempdimb}%
1109 \fontsize@app
1110 \let\noexpand\@listi\noexpand\@listi@small
1111 }%
1112 \let\smallrrr\@undefined
1113 \expandafter\DeclareRobustCommand\expandafter\smallrrr\expandafter{\reserved@a}%
1114 % \end{macrocode}
1115 % {\color{black}Definition of \cmd{footnotesizer}, \cmd{footnotesizerr},
1116 % \cmd{footnotesizerrr}.\\
1117 % Scale factor: 0.01979.}
1118 % \begin{macrocode}
1119 \setlength{\@tempdima}{\fscalc{0.85313\@tempdimc}}%
1120 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1121 \fontsize@pre
1122 \edef\reserved@a{%
1123 \noexpand\@setfontsize\noexpand\footnotesizer
1124 {\the\@tempdima}{\the\@tempdimb}%
1125 \fontsize@app
1126 \let\noexpand\@listi\noexpand\@listi@footnotesize
1127 }%
1128 \let\footnotesizer\@undefined
1129 \expandafter\DeclareRobustCommand\expandafter\footnotesizer\expandafter{\reserved@a}%
1130 \setlength{\@tempdima}{\fscalc{0.87292\@tempdimc}}%
1131 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1132 \fontsize@pre
1133 \edef\reserved@a{%
1134 \noexpand\@setfontsize\noexpand\footnotesizerr
1135 {\the\@tempdima}{\the\@tempdimb}%
1136 \fontsize@app
1137 \let\noexpand\@listi\noexpand\@listi@footnotesize
1138 }%
1139 \let\footnotesizerr\@undefined
1140 \expandafter\DeclareRobustCommand\expandafter\footnotesizerr\expandafter{\reserved@a}%
1141 \setlength{\@tempdima}{\fscalc{0.89271\@tempdimc}}%
1142 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1143 \fontsize@pre
1144 \edef\reserved@a{%
1145 \noexpand\@setfontsize\noexpand\footnotesizerrr
1146 {\the\@tempdima}{\the\@tempdimb}%
1147 \fontsize@app
1148 \let\noexpand\@listi\noexpand\@listi@footnotesize
1149 }%
1150 \let\footnotesizerrr\@undefined
1151 \expandafter\DeclareRobustCommand\expandafter\footnotesizerrr\expandafter{\reserved@a}%
1152 % \end{macrocode}
1153 % {\color{black}Definition of \cmd{scriptsizer}, \cmd{scriptsizerr},
1154 % \cmd{scriptsizerrr}.\\
1155 % Scale factor: 0,0416675.}
1156 % \begin{macrocode}
1157 \setlength{\@tempdima}{\fscalc{0.7083375\@tempdimc}}%
1158 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1159 \edef\reserved@a{%
1160 \noexpand\@setfontsize\noexpand\scriptsizer
1161 {\the\@tempdima}{\the\@tempdimb}%
1162 }%
1163 \let\scriptsizer\@undefined
1164 \expandafter\DeclareRobustCommand\expandafter\scriptsizer\expandafter{\reserved@a}%
1165 \setlength{\@tempdima}{\fscalc{0.750005\@tempdimc}}%
1166 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1167 \edef\reserved@a{%
1168 \noexpand\@setfontsize\noexpand\scriptsizerr
1169 {\the\@tempdima}{\the\@tempdimb}%
1170 }%
1171 \let\scriptsizerr\@undefined
1172 \expandafter\DeclareRobustCommand\expandafter\scriptsizerr\expandafter{\reserved@a}%
1173 \setlength{\@tempdima}{\fscalc{0.7916725\@tempdimc}}%
1174 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1175 \edef\reserved@a{%
1176 \noexpand\@setfontsize\noexpand\scriptsizerrr
1177 {\the\@tempdima}{\the\@tempdimb}%
1178 }%
1179 \let\scriptsizerrr\@undefined
1180 \expandafter\DeclareRobustCommand\expandafter\scriptsizerrr\expandafter{\reserved@a}%
1181 % \end{macrocode}
1182 % {\color{black}Definition of \cmd{tinyr}, \cmd{tinyrr}, \cmd{tinyrrr}.\\
1183 % Scale factor: 0.0416675.}
1184 % \begin{macrocode}
1185 \setlength{\@tempdima}{\fscalc{0.5416675\@tempdimc}}%
1186 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1187 \edef\reserved@a{%
1188 \noexpand\@setfontsize\noexpand\tinyr
1189 {\the\@tempdima}{\the\@tempdimb}%
1190 }%
1191 \let\tinyr\@undefined
1192 \expandafter\DeclareRobustCommand\expandafter\tinyr\expandafter{\reserved@a}%
1193 \setlength{\@tempdima}{\fscalc{0.583335\@tempdimc}}%
1194 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1195 \edef\reserved@a{%
1196 \noexpand\@setfontsize\noexpand\tinyrr
1197 {\the\@tempdima}{\the\@tempdimb}%
1198 }%
1199 \let\tinyrr\@undefined
1200 \expandafter\DeclareRobustCommand\expandafter\tinyrr\expandafter{\reserved@a}%
1201 \setlength{\@tempdima}{\fscalc{0.6250025\@tempdimc}}%
1202 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1203 \edef\reserved@a{%
1204 \noexpand\@setfontsize\noexpand\tinyrrr
1205 {\the\@tempdima}{\the\@tempdimb}%
1206 }%
1207 \let\tinyrrr\@undefined
1208 \expandafter\DeclareRobustCommand\expandafter\tinyrrr\expandafter{\reserved@a}%
1209 % \end{macrocode}
1210 % {\color{black}Definition of \cmd{normalsizer}, \cmd{normalsizerr},
1211 % \cmd{normalsizerrr}.\\
1212 % Scale factor: 0.05.}
1213 % \begin{macrocode}
1214 \setlength{\@tempdima}{\fscalc{1.05\@tempdimc}}%
1215 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1216 \fontsize@pre
1217 \edef\reserved@a{%
1218 \noexpand\@setfontsize\noexpand\normalsizer
1219 {\the\@tempdima}{\the\@tempdimb}%
1220 \fontsize@app
1221 \let\noexpand\@listi\noexpand\@listI
1222 }%
1223 \let\normalsizer\@undefined
1224 \expandafter\DeclareRobustCommand\expandafter\normalsizer\expandafter{\reserved@a}%
1225 \setlength{\@tempdima}{\fscalc{1.1\@tempdimc}}%
1226 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1227 \fontsize@pre
1228 \edef\reserved@a{%
1229 \noexpand\@setfontsize\noexpand\normalsizerr
1230 {\the\@tempdima}{\the\@tempdimb}%
1231 \fontsize@app
1232 \let\noexpand\@listi\noexpand\@listI
1233 }%
1234 \let\normalsizerr\@undefined
1235 \expandafter\DeclareRobustCommand\expandafter\normalsizerr\expandafter{\reserved@a}%
1236 \setlength{\@tempdima}{\fscalc{1.15\@tempdimc}}%
1237 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1238 \fontsize@pre
1239 \edef\reserved@a{%
1240 \noexpand\@setfontsize\noexpand\normalsizerrr
1241 {\the\@tempdima}{\the\@tempdimb}%
1242 \fontsize@app
1243 \let\noexpand\@listi\noexpand\@listI
1244 }%
1245 \let\normalsizerrr\@undefined
1246 \expandafter\DeclareRobustCommand\expandafter\normalsizerrr\expandafter{\reserved@a}%
1247 % \end{macrocode}
1248 % {\color{black}Definition of \cmd{larger}, \cmd{largerr}, \cmd{largerrr}.\\
1249 % Scale factor: 0,06.}
1250 % \begin{macrocode}
1251 \setlength{\@tempdima}{\fscalc{1.26\@tempdimc}}%
1252 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1253 \edef\reserved@a{%
1254 \noexpand\@setfontsize\noexpand\larger
1255 {\the\@tempdima}{\the\@tempdimb}%
1256 }%
1257 \let\larger\@undefined
1258 \expandafter\DeclareRobustCommand\expandafter\larger\expandafter{\reserved@a}%
1259 \setlength{\@tempdima}{\fscalc{1.32\@tempdimc}}%
1260 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1261 \edef\reserved@a{%
1262 \noexpand\@setfontsize\noexpand\largerr
1263 {\the\@tempdima}{\the\@tempdimb}%
1264 }%
1265 \let\largerr\@undefined
1266 \expandafter\DeclareRobustCommand\expandafter\largerr\expandafter{\reserved@a}%
1267 \setlength{\@tempdima}{\fscalc{1.38\@tempdimc}}%
1268 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1269 \edef\reserved@a{%
1270 \noexpand\@setfontsize\noexpand\largerrr
1271 {\the\@tempdima}{\the\@tempdimb}%
1272 }%
1273 \let\largerrr\@undefined
1274 \expandafter\DeclareRobustCommand\expandafter\largerrr\expandafter{\reserved@a}%
1275 % \end{macrocode}
1276 % {\color{black}Definition of \cmd{Larger}, \cmd{Largerr}, \cmd{Largerrr}.\\
1277 % Scale factor: 0,072.}
1278 % \begin{macrocode}
1279 \setlength{\@tempdima}{\fscalc{1.512\@tempdimc}}%
1280 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1281 \edef\reserved@a{%
1282 \noexpand\@setfontsize\noexpand\Larger
1283 {\the\@tempdima}{\the\@tempdimb}%
1284 }%
1285 \let\Larger\@undefined
1286 \expandafter\DeclareRobustCommand\expandafter\Larger\expandafter{\reserved@a}%
1287 \setlength{\@tempdima}{\fscalc{1.584\@tempdimc}}%
1288 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1289 \edef\reserved@a{%
1290 \noexpand\@setfontsize\noexpand\Largerr
1291 {\the\@tempdima}{\the\@tempdimb}%
1292 }%
1293 \let\Largerr\@undefined
1294 \expandafter\DeclareRobustCommand\expandafter\Largerr\expandafter{\reserved@a}%
1295 \setlength{\@tempdima}{\fscalc{1.656\@tempdimc}}%
1296 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1297 \edef\reserved@a{%
1298 \noexpand\@setfontsize\noexpand\Largerrr
1299 {\the\@tempdima}{\the\@tempdimb}%
1300 }%
1301 \let\Largerrr\@undefined
1302 \expandafter\DeclareRobustCommand\expandafter\Largerrr\expandafter{\reserved@a}%
1303 % \end{macrocode}
1304 % {\color{black}Definition of \cmd{LARGEr}, \cmd{LARGErr}, \cmd{LARGErrr}.\\
1305 % Scale factor: 0,0865.}
1306 % \begin{macrocode}
1307 \setlength{\@tempdima}{\fscalc{1.8145\@tempdimc}}%
1308 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1309 \edef\reserved@a{%
1310 \noexpand\@setfontsize\noexpand\LARGEr
1311 {\the\@tempdima}{\the\@tempdimb}%
1312 }%
1313 \let\LARGEr\@undefined
1314 \expandafter\DeclareRobustCommand\expandafter\LARGEr\expandafter{\reserved@a}%
1315 \setlength{\@tempdima}{\fscalc{1.901\@tempdimc}}%
1316 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1317 \edef\reserved@a{%
1318 \noexpand\@setfontsize\noexpand\LARGErr
1319 {\the\@tempdima}{\the\@tempdimb}%
1320 }%
1321 \let\LARGErr\@undefined
1322 \expandafter\DeclareRobustCommand\expandafter\LARGErr\expandafter{\reserved@a}%
1323 \setlength{\@tempdima}{\fscalc{1.9875\@tempdimc}}%
1324 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1325 \edef\reserved@a{%
1326 \noexpand\@setfontsize\noexpand\LARGErrr
1327 {\the\@tempdima}{\the\@tempdimb}%
1328 }%
1329 \let\LARGErrr\@undefined
1330 \expandafter\DeclareRobustCommand\expandafter\LARGErrr\expandafter{\reserved@a}%
1331 % \end{macrocode}
1332 % {\color{black}Definition of \cmd{huger}, \cmd{hugerr}, \cmd{hugerrr}.\\
1333 % Scale factor: 0,1035.}
1334 % \begin{macrocode}
1335 \setlength{\@tempdima}{\fscalc{2.1775\@tempdimc}}%
1336 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1337 \edef\reserved@a{%
1338 \noexpand\@setfontsize\noexpand\huger
1339 {\the\@tempdima}{\the\@tempdimb}%
1340 }%
1341 \let\huger\@undefined
1342 \expandafter\DeclareRobustCommand\expandafter\huger\expandafter{\reserved@a}%
1343 \setlength{\@tempdima}{\fscalc{2.281\@tempdimc}}%
1344 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1345 \edef\reserved@a{%
1346 \noexpand\@setfontsize\noexpand\hugerr
1347 {\the\@tempdima}{\the\@tempdimb}%
1348 }%
1349 \let\hugerr\@undefined
1350 \expandafter\DeclareRobustCommand\expandafter\hugerr\expandafter{\reserved@a}%
1351 \setlength{\@tempdima}{\fscalc{2.3845\@tempdimc}}%
1352 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1353 \edef\reserved@a{%
1354 \noexpand\@setfontsize\noexpand\hugerrr
1355 {\the\@tempdima}{\the\@tempdimb}%
1356 }%
1357 \let\hugerrr\@undefined
1358 \expandafter\DeclareRobustCommand\expandafter\hugerrr\expandafter{\reserved@a}%
1359 % \end{macrocode}
1360 % {\color{black}Definition of \cmd{Huger}, \cmd{Hugerr}, \cmd{Hugerrr}.\\
1361 % Scale factor: 0.123.}
1362 % \begin{macrocode}
1363 \setlength{\@tempdima}{\fscalc{2.611\@tempdimc}}%
1364 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1365 \edef\reserved@a{%
1366 \noexpand\@setfontsize\noexpand\Huger
1367 {\the\@tempdima}{\the\@tempdimb}%
1368 }%
1369 \let\Huger\@undefined
1370 \expandafter\DeclareRobustCommand\expandafter\Huger\expandafter{\reserved@a}%
1371 \setlength{\@tempdima}{\fscalc{2.734\@tempdimc}}%
1372 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1373 \edef\reserved@a{%
1374 \noexpand\@setfontsize\noexpand\Hugerr
1375 {\the\@tempdima}{\the\@tempdimb}%
1376 }%
1377 \let\Hugerr\@undefined
1378 \expandafter\DeclareRobustCommand\expandafter\Hugerr\expandafter{\reserved@a}%
1379 \setlength{\@tempdima}{\fscalc{2.857\@tempdimc}}%
1380 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1381 \edef\reserved@a{%
1382 \noexpand\@setfontsize\noexpand\Hugerrr
1383 {\the\@tempdima}{\the\@tempdimb}%
1384 }%
1385 \let\Hugerrr\@undefined
1386 \expandafter\DeclareRobustCommand\expandafter\Hugerrr\expandafter{\reserved@a}%
1387 % \end{macrocode}
1388 % {\color{black}Definition of \cmd{HUGE}, \cmd{HUGER}, \cmd{HUGERR},
1389 % \cmd{HUGERRR}.\\
1390 % Scale factor: 0,149.}
1391 % \begin{macrocode}
1392 \setlength{\@tempdima}{\fscalc{3.006\@tempdimc}}%
1393 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1394 \edef\reserved@a{%
1395 \noexpand\@setfontsize\noexpand\HUGE
1396 {\the\@tempdima}{\the\@tempdimb}%
1397 }%
1398 \let\HUGE\@undefined
1399 \expandafter\DeclareRobustCommand\expandafter\HUGE\expandafter{\reserved@a}%
1400 \setlength{\@tempdima}{\fscalc{3.155\@tempdimc}}%
1401 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1402 \edef\reserved@a{%
1403 \noexpand\@setfontsize\noexpand\HUGEr
1404 {\the\@tempdima}{\the\@tempdimb}%
1405 }%
1406 \let\HUGEr\@undefined
1407 \expandafter\DeclareRobustCommand\expandafter\HUGEr\expandafter{\reserved@a}%
1408 \setlength{\@tempdima}{\fscalc{3.304\@tempdimc}}%
1409 \setlength{\@tempdimb}{\fscalc{\@tempb\@tempdima}}%
1410 \edef\reserved@a{%
1411 \noexpand\@setfontsize\noexpand\HUGErr
1412 {\the\@tempdima}{\the\@tempdimb}%
1413 }%
1414 \let\HUGErr\@undefined
1415 \expandafter\DeclareRobustCommand\expandafter\HUGErr\expandafter{\reserved@a}%
1416 \setlength{\@tempdima}{\fscalc{3.453\@tempdimc}}%
1417 \setlength{\@tempdimb}{\@tempb\@tempdima}%
1418 \edef\reserved@a{%
1419 \noexpand\@setfontsize\noexpand\HUGErrr
1420 {\the\@tempdima}{\the\@tempdimb}%
1421 }%
1422 \let\HUGErrr\@undefined
1423 \expandafter\DeclareRobustCommand\expandafter\HUGErrr\expandafter{\reserved@a}%
1424 % \end{macrocode}
1425 % \label{endfscalc}
1426 % \eaddition
1427 % \begin{macrocode}
1428 \normalsize%
1429 % \end{macrocode}
1430 % The KOMA files do not define \cmd{parindent} and other lengths that are
1431 % are strictly linked to the font rather than to the dimensions of the page
1432 % and the text. So we first define \cmd{parindent} which defaults to 1.5\meta{fontsize}:
1433 % \baddition
1434 % \begin{macrocode}
1435 \setlength\parindent{\@fontsizeparindent}%
1436 % \end{macrocode}
1437 % \eaddition
1438 % For the following lengths, all values are calculated proportionally to the main font.
1439 % I took the \file{bk11.clo} file as a reference point. Note that the differences
1440 % in the lengths affected by \sty{fontsize} inside the \file{bk*.clo} files only concern
1441 % \cmd{headheight}, \cmd{headsep}, \cmd{topskip} and \cmd{footskip}.
1442 % \baddition
1443 % \begin{macrocode}
1444 \setlength\smallskipamount{
1445 \fpeval{1.090909091\@tempdimb/4}pt \@plus 1\p@ \@minus 1\p@}%
1446 \setlength\medskipamount{
1447 \fpeval{1.090909091\@tempdimb/2}pt \@plus 2\p@ \@minus 2\p@}%
1448 \setlength\bigskipamount{
1449 \fpeval{1.090909091\@tempdimb}pt \@plus 4\p@ \@minus 4\p@}%
1450 % \end{macrocode}
1451 % \eaddition
1452 % \def\tabfontsize{\fontsize{10.5}{12.5}\selectfont}
1453 % \def\plusminus{\hskip.5pt\parbox[b]{4mm}{\fontsize{5}{5}\itshape plus\\minus}\hskip1pt}
1454 % \begin{table}\tabfontsize\centering
1455 % \caption{The values of some specific lengths set by the package,
1456 % in relation to some significant settings of the normal size.
1457 % The values are expressed in pt and rounded to the second
1458 % decimal place.}\label{tab:skips}
1459 % \begin{tabu}{@{\hskip2pt}m{4.5cm}@{\hskip2mm}*{11}{@{\hskip-1pt}r}@{\hskip2pt}}
1460 % \toprule
1461 % \rowfont{\tabfontsize}Normal size
1462 % & 10.00 & 10.10 & 10.20 & 10.30 & 10.40 & 10.50
1463 % & 10.60 & 10.70 & 10.80 & 10.90 & 11.00 \\\midrule
1464 % \tabrowtwo{parindent}{}\\
1465 % \tabrowtwo{smallskipamount}{\ \hfill (\plusminus\SI{1}{pt})}\\
1466 % \tabrowtwo{medskipamount}{\ \hfill (\plusminus\SI{2}{pt})}\\
1467 % \tabrowtwo{bigskipamount}{\ \hfill (\plusminus\SI{4}{pt})}\\
1468 % \bottomrule
1469 % \end{tabu}
1470 %\end{table}
1471 % \begin{macrocode}
1472 \setlength{\@tempdimb}{\f@baselineskip}%
1473 \ctm@setlength{\parsep}%
1474 {.3333\@tempdimb}{.1667\@tempdimb}{.0833\@tempdimb}%
1475 \ctm@setlength{\topsep}%
1476 {.6667\@tempdimb}{.1667\@tempdimb}{.3333\@tempdimb}%
1477 \@tempswafalse
1478 \begingroup
1479 \def\@list@extra{\aftergroup\@tempswatrue}%
1480 \csname @listi\endcsname
1481 \endgroup
1482 \edef\@listi{\leftmargin\leftmargini
1483 \topsep \the\topsep
1484 \parsep \the\parsep
1485 \itemsep \parsep
1486 \if@tempswa\noexpand\@list@extra\fi
1487 }%
1488 \let\@listI\@listi
1489 \ctm@setlength{\parsep}%
1490 {.1667\@tempdimb}{.0833\@tempdimb}{.0833\@tempdimb}%
1491 \ctm@setlength{\topsep}%
1492 {.3333\@tempdimb}{.1667\@tempdimb}{.1667\@tempdimb}%
1493 \@tempswafalse
1494 \begingroup
1495 \def\@list@extra{\aftergroup\@tempswatrue}%
1496 \csname @listi\endcsname
1497 \endgroup
1498 \edef\@listi@small{\leftmargin\leftmargini
1499 \topsep \the\topsep
1500 \parsep \the\parsep
1501 \itemsep \parsep
1502 \if@tempswa\noexpand\@list@extra\fi
1503 }%
1504 \ctm@setlength{\parsep}%
1505 {.125\@tempdimb}{.0625\@tempdimb}{.0625\@tempdimb}%
1506 \ctm@setlength{\topsep}%
1507 {.25\@tempdimb}{.125\@tempdimb}{.125\@tempdimb}%
1508 \@tempswafalse
1509 \begingroup
1510 \def\@list@extra{\aftergroup\@tempswatrue}%
1511 \csname @listi\endcsname
1512 \endgroup
1513 \edef\@listi@footnotesize{\leftmargin\leftmargini
1514 \topsep \the\topsep
1515 \parsep \the\parsep
1516 \itemsep \parsep
1517 \if@tempswa\noexpand\@list@extra\fi
1518 }%
1519 \ctm@setlength{\parsep}%
1520 {.1667\@tempdimb}{.0833\@tempdimb}{.0833\@tempdimb}%
1521 \ctm@setlength{\topsep}%
1522 {.3333\@tempdimb}{.1667\@tempdimb}{.0833\@tempdimb}%
1523 \@tempswafalse
1524 \begingroup
1525 \def\@list@extra{\aftergroup\@tempswatrue}%
1526 \csname @listii\endcsname
1527 \endgroup
1528 \edef\@listii{\leftmargin\leftmarginii
1529 \labelwidth=\dimexpr \leftmargin-\labelsep
1530 \topsep \the\topsep
1531 \parsep \the\parsep
1532 \itemsep \parsep
1533 \if@tempswa\noexpand\@list@extra\fi
1534 }%
1535 \ctm@setlength{\topsep}%
1536 {.1667\@tempdimb}{.0833\@tempdimb}{.0833\@tempdimb}%
1537 \setlength{\partopsep}{\z@ \@plus\z@ \@minus\p@}%
1538 \@tempswafalse
1539 \begingroup
1540 \def\@list@extra{\aftergroup\@tempswatrue}%
1541 \csname @listiii\endcsname
1542 \endgroup
1543 \edef\@listiii{\leftmargin\leftmarginiii
1544 \labelwidth=\dimexpr \leftmargin-\labelsep
1545 \topsep \the\topsep
1546 \parsep \z@
1547 \partopsep \the\partopsep
1548 \itemsep \topsep
1549 \if@tempswa\noexpand\@list@extra\fi
1550 }%
1551 \@tempswafalse
1552 \begingroup
1553 \def\@list@extra{\aftergroup\@tempswatrue}%
1554 \csname @listiv\endcsname
1555 \endgroup
1556 \edef\@listiv{\leftmargin\leftmarginiv
1557 \labelwidth=\dimexpr \leftmargin-\labelsep\relax
1558 \if@tempswa\noexpand\@list@extra\fi
1559 }%
1560 \@tempswafalse
1561 \begingroup
1562 \def\@list@extra{\aftergroup\@tempswatrue}%
1563 \csname @listv\endcsname
1564 \endgroup
1565 \edef\@listv{\leftmargin\leftmarginv
1566 \labelwidth=\dimexpr \leftmargin-\labelsep\relax
1567 \if@tempswa\noexpand\@list@extra\fi
1568 }%
1569 \@tempswafalse
1570 \begingroup
1571 \def\@list@extra{\aftergroup\@tempswatrue}%
1572 \csname @listvi\endcsname
1573 \endgroup
1574 \edef\@listvi{\leftmargin\leftmarginvi
1575 \labelwidth=\dimexpr \leftmargin-\labelsep\relax
1576 \if@tempswa\noexpand\@list@extra\fi
1577 }%
1578 \@listi
1579 \setlength{\@tempdimb}{\f@baselineskip}%
1580 \setlength{\footnotesep}{.555\@tempdimb}%
1581 \ctm@setlength{\skip\footins}%
1582 {.75\@tempdimb}{.3333\@tempdimb}{.1667\@tempdimb}%
1583 \ctm@setlength{\floatsep}%
1584 {\@tempdimb}{.1667\@tempdimb}{.1667\@tempdimb}%
1585 \ctm@setlength{\textfloatsep}%
1586 {1.6667\@tempdimb}{.1667\@tempdimb}{.3333\@tempdimb}%
1587 \setlength{\intextsep}{\floatsep}%
1588 \setlength{\dblfloatsep}{\floatsep}%
1589 \setlength{\dbltextfloatsep}{\textfloatsep}%
1590 \setlength{\@fptop}{\z@ \@plus 1fil}%
1591 \setlength{\@fpsep}{.6667\@tempdimb \@plus 2fil}%
1592 \setlength{\@fpbot}{\@fptop}%
1593 \setlength{\@dblfptop}{\@fptop}%
1594 \setlength{\@dblfpsep}{\@fpsep}%
1595 \setlength{\@dblfpbot}{\@fptop}%
1596 \ctm@setlength{\partopsep}{.2\@tempdimb}{.1\@tempdimb}{.1\@tempdimb}%
1597 }
1598 % \end{macrocode}
1599 %
1600 % \paragraph{Excerpt from \file{scrfontsizes.sty}}
1601 %
1602 % Here is a portion of the \sty{scrfontsizes} package. It simply provides the
1603 % \cmd{generateclofile} command, without the KOMA related definitions.
1604 % There are no reserved names for the \file{.clo} files. The name of the command is
1605 % a new name for the KOMA \cmd{generatefontfile}. In fact what the command
1606 % generates is a \file{.clo} file.
1607 % \begin{macrocode}
1608 \newcommand*{\generateclofile}[1]{%
1609 \kernel@ifnextchar [{\@generatefontfile{#1}}{\@@generatefontfile{#1}}%
1610 }
1611 \newcommand*{\@generatefontfile}{}
1612 \def\@generatefontfile#1[#2]#3{%
1613 \begingroup
1614 % \end{macrocode}
1615 % At least starting from version 3.31 of \sty{scrfontsizes},
1616 % the code of the \cmd{@generatefontfile} and \cmd{@@generatefontfile}
1617 % commands sets the \cmd{parskip} value to |0pt|. We also use |[#2]|
1618 % in place of |[{#2}]| for the optional argument of \cmd{changefontsize}
1619 % used immediately below.
1620 % \begin{macrocode}
1621 \setlength{\parskip}{0pt}%
1622 \changefontsize[#2]{#3}%
1623 \generate@fontfile{#1}{#3}%
1624 \endgroup
1625 }
1626 \newcommand\@@generatefontfile[2]{%
1627 \begingroup
1628 \setlength{\parskip}{0pt}%
1629 \changefontsize{#2}%
1630 \generate@fontfile{#1}{#2}%
1631 \endgroup
1632 }
1633 \newcommand*{\@@@generatefontfile}[2][]{}
1634 \newcommand*{\@fontfile}{}
1635 \let\@fontfile\@mainaux
1636 \newcommand*{\generate@fontfile}[2]{%
1637 \def\@ind{\space\space}%
1638 \immediate\openout\@fontfile #1#2.clo
1639 \immediate\write\@fontfile{\@percentchar^^J%
1640 \@percentchar\space This is file `#1#2.clo', generated with^^J%
1641 % \end{macrocode}
1642 % In the next three lines we only replace `scrfontsizes' with `fontsize'
1643 % and `Markus Kohm' with `Ivan Valbusa', in order to get the correct information
1644 % in the .log file.
1645 % \begin{macrocode}
1646 \@percentchar\space fontsize
1647 \csname ver@fontsize.\@pkgextension\endcsname,^^J%
1648 \@percentchar\space Copyright (c) Ivan Valbusa.^^J%
1649 \@percentchar^^J%
1650 \string\ProvidesFile{#1#2.clo}[%
1651 \the\year/\ifnum\month<10 0\fi\the\month/\ifnum\day<10 0\fi\the\day%
1652 \space generated font size class option (#2)]}%
1653 \immediate\write\@fontfile{%
1654 \string\let\string\normalsize\string\@undefined^^J%
1655 \string\DeclareRobustCommand\string\normalsize{\@percentchar^^J%
1656 \@ind\string\@setfontsize\string\normalsize{\f@size}{\f@baselineskip}%
1657 \@percentchar^^J%
1658 \@ind\string\abovedisplayskip\space \the\abovedisplayskip^^J%
1659 \@ind\string\abovedisplayshortskip\space \the\abovedisplayshortskip^^J%
1660 \@ind\string\belowdisplayskip\space \the\belowdisplayskip^^J%
1661 \@ind\string\belowdisplayshortskip\space \the\belowdisplayshortskip^^J%
1662 \@ind\string\let\string\@listi\string\@listI^^J%
1663 }\@percentchar%
1664 }%
1665 \begingroup\small\@listi
1666 \immediate\write\@fontfile{%
1667 \string\let\string\small\string\@undefined^^J%
1668 \string\DeclareRobustCommand\string\small{\@percentchar^^J%
1669 \@ind\string\@setfontsize\string\small{\f@size}{\f@baselineskip}%
1670 \@percentchar^^J%
1671 \@ind\string\abovedisplayskip\space \the\abovedisplayskip^^J%
1672 \@ind\string\abovedisplayshortskip\space \the\abovedisplayshortskip^^J%
1673 \@ind\string\belowdisplayskip\space \the\belowdisplayskip^^J%
1674 \@ind\string\belowdisplayshortskip\space \the\belowdisplayshortskip^^J%
1675 \@ind\string\def\string\@listi{\@percentchar^^J%
1676 \@ind\@ind\string\leftmargin\string\leftmargini^^J%
1677 \@ind\@ind\string\topsep \the\topsep^^J%
1678 \@ind\@ind\string\parsep \the\parsep^^J%
1679 \@ind\@ind\string\itemsep \string\parsep^^J%
1680 \@ind}\@percentchar^^J%
1681 }\@percentchar%
1682 }%
1683 \endgroup
1684 \begingroup\footnotesize\@listi
1685 \immediate\write\@fontfile{%
1686 \string\let\string\footnotesize\string\@undefined^^J%
1687 \string\DeclareRobustCommand\string\footnotesize{\@percentchar^^J%
1688 \@ind\string\@setfontsize\string\footnotesize{\f@size}{\f@baselineskip}%
1689 \@percentchar^^J%
1690 \@ind\string\abovedisplayskip\space \the\abovedisplayskip^^J%
1691 \@ind\string\abovedisplayshortskip\space \the\abovedisplayshortskip^^J%
1692 \@ind\string\belowdisplayskip\space \the\belowdisplayskip^^J%
1693 \@ind\string\belowdisplayshortskip\space \the\belowdisplayshortskip^^J%
1694 \@ind\string\def\string\@listi{\@percentchar^^J%
1695 \@ind\@ind\string\leftmargin\string\leftmargini^^J%
1696 \@ind\@ind\string\topsep \the\topsep^^J%
1697 \@ind\@ind\string\parsep \the\parsep^^J%
1698 \@ind\@ind\string\itemsep \string\parsep^^J%
1699 \@ind}\@percentchar^^J%
1700 }\@percentchar%
1701 }%
1702 \endgroup
1703 \begingroup\scriptsize
1704 \immediate\write\@fontfile{%
1705 \string\let\string\scriptsize\string\@undefined^^J%
1706 \string\DeclareRobustCommand\string\scriptsize{\@percentchar^^J%
1707 \string\@setfontsize\string\scriptsize{\f@size}{\f@baselineskip}%
1708 }\@percentchar%
1709 }%
1710 \endgroup
1711 \begingroup\tiny
1712 \immediate\write\@fontfile{%
1713 \string\let\string\tiny\string\@undefined^^J%
1714 \string\DeclareRobustCommand\string\tiny{\@percentchar^^J%
1715 \string\@setfontsize\string\tiny{\f@size}{\f@baselineskip}%
1716 }\@percentchar%
1717 }%
1718 \endgroup
1719 \begingroup\large
1720 \immediate\write\@fontfile{%
1721 \string\let\string\large\string\@undefined^^J%
1722 \string\DeclareRobustCommand\string\large{\@percentchar^^J%
1723 \string\@setfontsize\string\large{\f@size}{\f@baselineskip}%
1724 }\@percentchar%
1725 }%
1726 \endgroup
1727 \begingroup\Large
1728 \immediate\write\@fontfile{%
1729 \string\let\string\Large\string\@undefined^^J%
1730 \string\DeclareRobustCommand\string\Large{\@percentchar^^J%
1731 \string\@setfontsize\string\Large{\f@size}{\f@baselineskip}%
1732 }\@percentchar%
1733 }%
1734 \endgroup
1735 \begingroup\LARGE
1736 \immediate\write\@fontfile{%
1737 \string\let\string\LARGE\string\@undefined^^J%
1738 \string\DeclareRobustCommand\string\LARGE{\@percentchar^^J%
1739 \string\@setfontsize\string\LARGE{\f@size}{\f@baselineskip}%
1740 }\@percentchar%
1741 }%
1742 \endgroup
1743 \begingroup\huge
1744 \immediate\write\@fontfile{%
1745 \string\let\string\huge\string\@undefined^^J%
1746 \string\DeclareRobustCommand\string\huge{\@percentchar^^J%
1747 \string\@setfontsize\string\huge{\f@size}{\f@baselineskip}%
1748 }\@percentchar%
1749 }%
1750 \endgroup
1751 \begingroup\Huge
1752 \immediate\write\@fontfile{%
1753 \string\let\string\Huge\string\@undefined^^J%
1754 \string\DeclareRobustCommand\string\Huge{\@percentchar^^J%
1755 \string\@setfontsize\string\Huge{\f@size}{\f@baselineskip}%
1756 }\@percentchar%
1757 }%
1758 \endgroup
1759 % \end{macrocode}
1760 % The new sizing commands previously defined are recalled here and
1761 % written in the .clo file if the \cmd{generateclofile} command is used.
1762 % \baddition
1763 % \begin{macrocode}
1764 \begingroup\tinyr
1765 \immediate\write\@fontfile{%
1766 \string\let\string\tinyr\string\@undefined^^J%
1767 \string\DeclareRobustCommand\string\tinyr{\@percentchar^^J%
1768 \string\@setfontsize\string\tinyr{\f@size}{\f@baselineskip}%
1769 }\@percentchar%
1770 }%
1771 \endgroup
1772 \begingroup\tinyrr
1773 \immediate\write\@fontfile{%
1774 \string\let\string\tinyrr\string\@undefined^^J%
1775 \string\DeclareRobustCommand\string\tinyrr{\@percentchar^^J%
1776 \string\@setfontsize\string\tinyrr{\f@size}{\f@baselineskip}%
1777 }\@percentchar%
1778 }%
1779 \endgroup
1780 \begingroup\tinyrrr
1781 \immediate\write\@fontfile{%
1782 \string\let\string\tinyrrr\string\@undefined^^J%
1783 \string\DeclareRobustCommand\string\tinyrrr{\@percentchar^^J%
1784 \string\@setfontsize\string\tinyrrr{\f@size}{\f@baselineskip}%
1785 }\@percentchar%
1786 }%
1787 \endgroup
1788 \begingroup\scriptsizer
1789 \immediate\write\@fontfile{%
1790 \string\let\string\scriptsizer\string\@undefined^^J%
1791 \string\DeclareRobustCommand\string\scriptsizer{\@percentchar^^J%
1792 \string\@setfontsize\string\scriptsizer{\f@size}{\f@baselineskip}%
1793 }\@percentchar%
1794 }%
1795 \endgroup
1796 \begingroup\scriptsizerr
1797 \immediate\write\@fontfile{%
1798 \string\let\string\scriptsizerr\string\@undefined^^J%
1799 \string\DeclareRobustCommand\string\scriptsizerr{\@percentchar^^J%
1800 \string\@setfontsize\string\scriptsizerr{\f@size}{\f@baselineskip}%
1801 }\@percentchar%
1802 }%
1803 \endgroup
1804 \begingroup\scriptsizerrr
1805 \immediate\write\@fontfile{%
1806 \string\let\string\scriptsizerrr\string\@undefined^^J%
1807 \string\DeclareRobustCommand\string\scriptsizerrr{\@percentchar^^J%
1808 \string\@setfontsize\string\scriptsizerrr{\f@size}{\f@baselineskip}%
1809 }\@percentchar%
1810 }%
1811 \endgroup
1812 \def\fs@appnormal{
1813 \@percentchar^^J%
1814 \@ind\string\abovedisplayskip\space \the\abovedisplayskip^^J%
1815 \@ind\string\abovedisplayshortskip\space \the\abovedisplayshortskip^^J%
1816 \@ind\string\belowdisplayskip\space \the\belowdisplayskip^^J%
1817 \@ind\string\belowdisplayshortskip\space \the\belowdisplayshortskip^^J%
1818 \@ind\string\let\string\@listi\string\@listI^^J%
1819 }
1820 \def\fs@appsmall{%
1821 \@percentchar^^J%
1822 \@ind\string\abovedisplayskip\space \the\abovedisplayskip^^J%
1823 \@ind\string\abovedisplayshortskip\space \the\abovedisplayshortskip^^J%
1824 \@ind\string\belowdisplayskip\space \the\belowdisplayskip^^J%
1825 \@ind\string\belowdisplayshortskip\space \the\belowdisplayshortskip^^J%
1826 \@ind\string\def\string\@listi{\@percentchar^^J%
1827 \@ind\@ind\string\leftmargin\string\leftmargini^^J%
1828 \@ind\@ind\string\topsep \the\topsep^^J%
1829 \@ind\@ind\string\parsep \the\parsep^^J%
1830 \@ind\@ind\string\itemsep \string\parsep^^J%
1831 \@ind}\@percentchar^^J%
1832 }
1833 \begingroup\smallr\@listi
1834 \immediate\write\@fontfile{%
1835 \string\let\string\smallr\string\@undefined^^J%
1836 \string\DeclareRobustCommand\string\smallr{\@percentchar^^J%
1837 \@ind\string\@setfontsize\string\smallr{\f@size}{\f@baselineskip}%
1838 \fs@appsmall%
1839 }\@percentchar%
1840 }%
1841 \endgroup
1842 \begingroup\smallrr\@listi
1843 \immediate\write\@fontfile{%
1844 \string\let\string\smallrr\string\@undefined^^J%
1845 \string\DeclareRobustCommand\string\smallrr{\@percentchar^^J%
1846 \@ind\string\@setfontsize\string\smallrr{\f@size}{\f@baselineskip}%
1847 \fs@appsmall%
1848 }\@percentchar%
1849 }%
1850 \endgroup
1851 \begingroup\smallrrr\@listi
1852 \immediate\write\@fontfile{%
1853 \string\let\string\smallrrr\string\@undefined^^J%
1854 \string\DeclareRobustCommand\string\smallrrr{\@percentchar^^J%
1855 \@ind\string\@setfontsize\string\smallrrr{\f@size}{\f@baselineskip}%
1856 \fs@appsmall%
1857 }\@percentchar%
1858 }%
1859 \endgroup
1860 \begingroup\footnotesizer\@listi
1861 \immediate\write\@fontfile{%
1862 \string\let\string\footnotesizer\string\@undefined^^J%
1863 \string\DeclareRobustCommand\string\footnotesizer{\@percentchar^^J%
1864 \@ind\string\@setfontsize\string\footnotesizer{\f@size}{\f@baselineskip}%
1865 \fs@appsmall%
1866 }\@percentchar%
1867 }%
1868 \endgroup
1869 \begingroup\footnotesizerr\@listi
1870 \immediate\write\@fontfile{%
1871 \string\let\string\footnotesizerr\string\@undefined^^J%
1872 \string\DeclareRobustCommand\string\footnotesizerr{\@percentchar^^J%
1873 \@ind\string\@setfontsize\string\footnotesizerr{\f@size}{\f@baselineskip}%
1874 \fs@appsmall%
1875 }\@percentchar%
1876 }%
1877 \endgroup
1878 \begingroup\footnotesizerrr\@listi
1879 \immediate\write\@fontfile{%
1880 \string\let\string\footnotesizerrr\string\@undefined^^J%
1881 \string\DeclareRobustCommand\string\footnotesizerrr{\@percentchar^^J%
1882 \@ind\string\@setfontsize\string\footnotesizerrr{\f@size}{\f@baselineskip}%
1883 \fs@appsmall%
1884 }\@percentchar%
1885 }%
1886 \endgroup
1887 \begingroup\normalsizer
1888 \immediate\write\@fontfile{%
1889 \string\let\string\normalsizer\string\@undefined^^J%
1890 \string\DeclareRobustCommand\string\normalsizer{\@percentchar^^J%
1891 \@ind\string\@setfontsize\string\normalsizer{\f@size}{\f@baselineskip}%
1892 \fs@appnormal%
1893 }\@percentchar%
1894 }%
1895 \endgroup
1896 \begingroup\normalsizerr
1897 \immediate\write\@fontfile{%
1898 \string\let\string\normalsizerr\string\@undefined^^J%
1899 \string\DeclareRobustCommand\string\normalsizerr{\@percentchar^^J%
1900 \@ind\string\@setfontsize\string\normalsizerr{\f@size}{\f@baselineskip}%
1901 \fs@appnormal%
1902 }\@percentchar%
1903 }%
1904 \endgroup
1905 \begingroup\normalsizerrr
1906 \immediate\write\@fontfile{%
1907 \string\let\string\normalsizerrr\string\@undefined^^J%
1908 \string\DeclareRobustCommand\string\normalsizerrr{\@percentchar^^J%
1909 \@ind\string\@setfontsize\string\normalsizerrr{\f@size}{\f@baselineskip}%
1910 \fs@appnormal%
1911 }\@percentchar%
1912 }%
1913 \endgroup
1914 \begingroup\larger
1915 \immediate\write\@fontfile{%
1916 \string\let\string\larger\string\@undefined^^J%
1917 \string\DeclareRobustCommand\string\larger{\@percentchar^^J%
1918 \string\@setfontsize\string\larger{\f@size}{\f@baselineskip}%
1919 }\@percentchar%
1920 }%
1921 \endgroup
1922 \begingroup\largerr
1923 \immediate\write\@fontfile{%
1924 \string\let\string\largerr\string\@undefined^^J%
1925 \string\DeclareRobustCommand\string\largerr{\@percentchar^^J%
1926 \string\@setfontsize\string\largerr{\f@size}{\f@baselineskip}%
1927 }\@percentchar%
1928 }%
1929 \endgroup
1930 \begingroup\largerrr
1931 \immediate\write\@fontfile{%
1932 \string\let\string\largerrr\string\@undefined^^J%
1933 \string\DeclareRobustCommand\string\largerrr{\@percentchar^^J%
1934 \string\@setfontsize\string\largerrr{\f@size}{\f@baselineskip}%
1935 }\@percentchar%
1936 }%
1937 \endgroup
1938 %\begingroup\Large
1939 %\immediate\write\@fontfile{%
1940 % \string\let\string\Large\string\@undefined^^J%
1941 % \string\DeclareRobustCommand\string\Large{\@percentchar^^J%
1942 % \string\@setfontsize\string\Large{\f@size}{\f@baselineskip}%
1943 % }\@percentchar%
1944 %}%
1945 %\endgroup
1946 \begingroup\Larger
1947 \immediate\write\@fontfile{%
1948 \string\let\string\Larger\string\@undefined^^J%
1949 \string\DeclareRobustCommand\string\Larger{\@percentchar^^J%
1950 \string\@setfontsize\string\Larger{\f@size}{\f@baselineskip}%
1951 }\@percentchar%
1952 }%
1953 \endgroup
1954 \begingroup\Largerr
1955 \immediate\write\@fontfile{%
1956 \string\let\string\Largerr\string\@undefined^^J%
1957 \string\DeclareRobustCommand\string\Largerr{\@percentchar^^J%
1958 \string\@setfontsize\string\Largerr{\f@size}{\f@baselineskip}%
1959 }\@percentchar%
1960 }%
1961 \endgroup
1962 \begingroup\Largerrr
1963 \immediate\write\@fontfile{%
1964 \string\let\string\Largerrr\string\@undefined^^J%
1965 \string\DeclareRobustCommand\string\Largerrr{\@percentchar^^J%
1966 \string\@setfontsize\string\Largerrr{\f@size}{\f@baselineskip}%
1967 }\@percentchar%
1968 }%
1969 \endgroup
1970 \begingroup\LARGEr
1971 \immediate\write\@fontfile{%
1972 \string\let\string\LARGEr\string\@undefined^^J%
1973 \string\DeclareRobustCommand\string\LARGEr{\@percentchar^^J%
1974 \string\@setfontsize\string\LARGEr{\f@size}{\f@baselineskip}%
1975 }\@percentchar%
1976 }%
1977 \endgroup
1978 \begingroup\LARGErr
1979 \immediate\write\@fontfile{%
1980 \string\let\string\LARGErr\string\@undefined^^J%
1981 \string\DeclareRobustCommand\string\LARGErr{\@percentchar^^J%
1982 \string\@setfontsize\string\LARGErr{\f@size}{\f@baselineskip}%
1983 }\@percentchar%
1984 }%
1985 \endgroup
1986 \begingroup\LARGErrr
1987 \immediate\write\@fontfile{%
1988 \string\let\string\LARGErrr\string\@undefined^^J%
1989 \string\DeclareRobustCommand\string\LARGErrr{\@percentchar^^J%
1990 \string\@setfontsize\string\LARGErrr{\f@size}{\f@baselineskip}%
1991 }\@percentchar%
1992 }%
1993 \endgroup
1994 \begingroup\huger
1995 \immediate\write\@fontfile{%
1996 \string\let\string\huger\string\@undefined^^J%
1997 \string\DeclareRobustCommand\string\huger{\@percentchar^^J%
1998 \string\@setfontsize\string\huger{\f@size}{\f@baselineskip}%
1999 }\@percentchar%
2000 }%
2001 \endgroup
2002 \begingroup\hugerr
2003 \immediate\write\@fontfile{%
2004 \string\let\string\hugerr\string\@undefined^^J%
2005 \string\DeclareRobustCommand\string\hugerr{\@percentchar^^J%
2006 \string\@setfontsize\string\hugerr{\f@size}{\f@baselineskip}%
2007 }\@percentchar%
2008 }%
2009 \endgroup
2010 \begingroup\hugerrr
2011 \immediate\write\@fontfile{%
2012 \string\let\string\hugerrr\string\@undefined^^J%
2013 \string\DeclareRobustCommand\string\hugerrr{\@percentchar^^J%
2014 \string\@setfontsize\string\hugerrr{\f@size}{\f@baselineskip}%
2015 }\@percentchar%
2016 }%
2017 \endgroup
2018 \begingroup\Huger
2019 \immediate\write\@fontfile{%
2020 \string\let\string\Huger\string\@undefined^^J%
2021 \string\DeclareRobustCommand\string\Huger{\@percentchar^^J%
2022 \string\@setfontsize\string\Huger{\f@size}{\f@baselineskip}%
2023 }\@percentchar%
2024 }%
2025 \endgroup
2026 \begingroup\Hugerr
2027 \immediate\write\@fontfile{%
2028 \string\let\string\Hugerr\string\@undefined^^J%
2029 \string\DeclareRobustCommand\string\Hugerr{\@percentchar^^J%
2030 \string\@setfontsize\string\Hugerr{\f@size}{\f@baselineskip}%
2031 }\@percentchar%
2032 }%
2033 \endgroup
2034 \begingroup\Hugerrr
2035 \immediate\write\@fontfile{%
2036 \string\let\string\Hugerrr\string\@undefined^^J%
2037 \string\DeclareRobustCommand\string\Hugerrr{\@percentchar^^J%
2038 \string\@setfontsize\string\Hugerrr{\f@size}{\f@baselineskip}%
2039 }\@percentchar%
2040 }%
2041 \endgroup
2042 \begingroup\HUGE
2043 \immediate\write\@fontfile{%
2044 \string\let\string\HUGE\string\@undefined^^J%
2045 \string\DeclareRobustCommand\string\HUGE{\@percentchar^^J%
2046 \string\@setfontsize\string\HUGE{\f@size}{\f@baselineskip}%
2047 }\@percentchar%
2048 }%
2049 \endgroup
2050 \begingroup\HUGEr
2051 \immediate\write\@fontfile{%
2052 \string\let\string\HUGEr\string\@undefined^^J%
2053 \string\DeclareRobustCommand\string\HUGEr{\@percentchar^^J%
2054 \string\@setfontsize\string\HUGEr{\f@size}{\f@baselineskip}%
2055 }\@percentchar%
2056 }%
2057 \endgroup
2058 \begingroup\HUGErr
2059 \immediate\write\@fontfile{%
2060 \string\let\string\HUGErr\string\@undefined^^J%
2061 \string\DeclareRobustCommand\string\HUGErr{\@percentchar^^J%
2062 \string\@setfontsize\string\HUGErr{\f@size}{\f@baselineskip}%
2063 }\@percentchar%
2064 }%
2065 \endgroup
2066 \begingroup\HUGErrr
2067 \immediate\write\@fontfile{%
2068 \string\let\string\HUGErrr\string\@undefined^^J%
2069 \string\DeclareRobustCommand\string\HUGErrr{\@percentchar^^J%
2070 \string\@setfontsize\string\HUGErrr{\f@size}{\f@baselineskip}%
2071 }\@percentchar%
2072 }%
2073 \endgroup
2074 % \end{macrocode}
2075 % \eaddition
2076 % \begin{macrocode}
2077 \immediate\write\@fontfile{\string\normalsize}%
2078 % \end{macrocode}
2079 % The new lengths previously defined are recalled here and written in the .clo file
2080 % if the \cmd{generateclofile} command is used.
2081 % \baddition
2082 % \begin{macrocode}
2083 \begingroup
2084 \immediate\write\@fontfile{%
2085 \string\setlength{\string\parindent}{\the\parindent}^^J%
2086 \string\setlength{\string\headheight}{\the\headheight}^^J%
2087 \string\setlength{\string\smallskipamount}{\the\smallskipamount}^^J%
2088 \string\setlength{\string\medskipamount}{\the\medskipamount}^^J%
2089 \string\setlength{\string\bigskipamount}{\the\bigskipamount}^^J%
2090 }%
2091 \endgroup
2092 % \end{macrocode}
2093 % \eaddition
2094 % \begin{macrocode}
2095 \immediate\write\@fontfile{%
2096 \string\setlength{\string\footnotesep}{\the\footnotesep}\@percentchar
2097 }%
2098 \immediate\write\@fontfile{%
2099 \string\setlength{\string\skip\string\footins}{\the\skip\footins}\@percentchar
2100 }%
2101 \immediate\write\@fontfile{%
2102 \string\setlength{\string\floatsep}{\the\floatsep}\@percentchar
2103 }%
2104 \immediate\write\@fontfile{%
2105 \string\setlength{\string\textfloatsep}{\the\textfloatsep}\@percentchar
2106 }%
2107 \immediate\write\@fontfile{%
2108 \string\setlength{\string\intextsep}{\the\intextsep}\@percentchar
2109 }%
2110 \immediate\write\@fontfile{%
2111 \string\setlength{\string\dblfloatsep}{\the\dblfloatsep}\@percentchar
2112 }%
2113 \immediate\write\@fontfile{%
2114 \string\setlength{\string\dbltextfloatsep}{\the\dbltextfloatsep}\@percentchar
2115 }%
2116 \immediate\write\@fontfile{%
2117 \string\setlength{\string\@fptop}{\the\@fptop}\@percentchar
2118 }%
2119 \immediate\write\@fontfile{%
2120 \string\setlength{\string\@fpsep}{\the\@fpsep}\@percentchar
2121 }%
2122 \immediate\write\@fontfile{%
2123 \string\setlength{\string\@fpbot}{\the\@fpbot}\@percentchar
2124 }%
2125 \immediate\write\@fontfile{%
2126 \string\setlength{\string\@dblfptop}{\the\@dblfptop}\@percentchar
2127 }%
2128 \immediate\write\@fontfile{%
2129 \string\setlength{\string\@dblfpsep}{\the\@dblfpsep}\@percentchar
2130 }%
2131 \immediate\write\@fontfile{%
2132 \string\setlength{\string\@dblfpbot}{\the\@dblfpbot}\@percentchar
2133 }%
2134 \immediate\write\@fontfile{%
2135 \string\setlength{\string\partopsep}{\the\partopsep}\@percentchar
2136 }%
2137 \begingroup
2138 \@listi
2139 \immediate\write\@fontfile{%
2140 \string\def\string\@listi{\@percentchar^^J%
2141 \@ind\string\leftmargin\string\leftmargini^^J%
2142 \@ind\string\topsep \the\topsep^^J%
2143 \@ind\string\parsep \the\parsep^^J%
2144 \@ind\string\itemsep \string\parsep^^J%
2145 }\@percentchar
2146 }%
2147 \endgroup
2148 \immediate\write\@fontfile{%
2149 \string\let\string\@listI\string\@listi
2150 }%
2151 \begingroup
2152 \@listii
2153 \immediate\write\@fontfile{%
2154 \string\def\string\@listii{\@percentchar^^J%
2155 \@ind\string\leftmargin\string\leftmarginii^^J%
2156 \@ind\string\labelwidth\string\leftmarginii^^J%
2157 \@ind\string\advance\string\labelwidth-\string\labelsep^^J%
2158 \@ind\string\topsep \the\topsep^^J%
2159 \@ind\string\parsep \the\parsep^^J%
2160 \@ind\string\itemsep \string\parsep^^J%
2161 }\@percentchar
2162 }%
2163 \endgroup
2164 \begingroup
2165 \@listiii
2166 \immediate\write\@fontfile{%
2167 \string\def\string\@listiii{\@percentchar^^J%
2168 \@ind\string\leftmargin\string\leftmarginiii^^J%
2169 \@ind\string\labelwidth\string\leftmarginiii^^J%
2170 \@ind\string\advance\string\labelwidth-\string\labelsep^^J%
2171 \@ind\string\topsep \the\topsep^^J%
2172 \@ind\string\parsep \the\parsep^^J%
2173 \@ind\string\partopsep \the\partopsep^^J%
2174 \@ind\string\itemsep \string\topsep^^J%
2175 }\@percentchar
2176 }%
2177 \endgroup
2178 \begingroup
2179 \@listiv
2180 \immediate\write\@fontfile{%
2181 \string\def\string\@listiv{\@percentchar^^J%
2182 \@ind\string\leftmargin\string\leftmarginiv^^J%
2183 \@ind\string\labelwidth\string\leftmarginiv^^J%
2184 \@ind\string\advance\string\labelwidth-\string\labelsep^^J%
2185 }\@percentchar
2186 }%
2187 \endgroup
2188 \begingroup
2189 \@listv
2190 \immediate\write\@fontfile{%
2191 \string\def\string\@listv{\@percentchar^^J%
2192 \@ind\string\leftmargin\string\leftmarginv^^J%
2193 \@ind\string\labelwidth\string\leftmarginv^^J%
2194 \@ind\string\advance\string\labelwidth-\string\labelsep^^J%
2195 }\@percentchar
2196 }%
2197 \endgroup
2198 \begingroup
2199 \@listvi
2200 \immediate\write\@fontfile{%
2201 \string\def\string\@listvi{\@percentchar^^J%
2202 \@ind\string\leftmargin\string\leftmarginvi^^J%
2203 \@ind\string\labelwidth\string\leftmarginvi^^J%
2204 \@ind\string\advance\string\labelwidth-\string\labelsep^^J%
2205 }\@percentchar
2206 }%
2207 \endgroup
2208 \immediate\write\@fontfile{%
2209 \string\@listi^^J%
2210 \string\endinput^^J%
2211 \@percentchar^^J%
2212 \@percentchar\space End of file `#1#2.clo'.
2213 }
2214 \immediate\closeout\@fontfile
2215 }
2216 \@onlypreamble\generateclofile
2217 % \end{macrocode}
2218 % We will now define some internal commands to test the package functions.
2219 % Since version 0.6 I have been using the \LaTeX 3 solution provided by
2220 % Enrico Gregorio in place of the old macros based on
2221 % \sty{etoolbox} \parencite{etoolbox}.
2222 % \baddition
2223 % \begin{macrocode}
2224 \newcommand{\sampletext}[1]{\def\fs@sampletext{#1}}
2225 \def\fs@sampletext{%
2226 As any dedicated reader can clearly see, the Ideal of practical reason
2227 is a representation of, as far as I know, the things in themselves; as
2228 I have shown elsewhere, the phenomena should only be used as a canon for
2229 our understanding. The paralogisms of practical reason are what first give
2230 rise to the architectonic of practical reason. As will easily be shown in
2231 the next section, reason would thereby be made to contradict, in view of
2232 these considerations, the Ideal of practical reason, yet the manifold
2233 depends on the phenomena.}
2234
2235 \ExplSyntaxOn
2236
2237 \NewDocumentCommand{\printsamples}
2238 {
2239 m
2240 m
2241 O{tiny,tinyr,tinyrr,tinyrrr,
2242 scriptsize,scriptsizer,scriptsizerr,scriptsizerrr,
2243 footnotesize,footnotesizer,footnotesizerr,footnotesizerrr,
2244 small,smallr,smallrr,smallrrr,
2245 normalsize,normalsizer,normalsizerr,normalsizerrr,
2246 large,larger,largerr,largerrr,
2247 Large,Larger,Largerr,Largerrr,
2248 LARGE,LARGEr,LARGErr,LARGErrr,
2249 huge,huger,hugerr,hugerrr,
2250 Huge,Huger,Hugerr,Hugerrr,
2251 HUGE,HUGEr,HUGErr,HUGErrr,
2252 }
2253 }
2254 {
2255 \fontsize_printsamples:nnn { #1 } { #2 } { #3 }
2256 }
2257
2258 % helper function to print the rounded sizes
2259 \cs_new:Nn \__fontsize_round_f:n
2260 {
2261 \fp_eval:n { round(\use:c{f@#1},1) } pt
2262 }
2263
2264 % the main function
2265 \cs_new_protected:Nn \fontsize_printsamples:nnn
2266 {
2267 % group to bound the font changes
2268 \group_begin:
2269 % set the size
2270 \changefontsize[#1]{#2}\selectfont
2271 % header
2272 \subsubsection*{Text~samples~for~\symbol{92}normalsize~#2~on~#1}
2273 % map through the desired sizes
2274 \clist_map_inline:nn { #3 }
2275 {
2276 \use:c{##1} % set the font size
2277 \noindent\texttt{\symbol{92}##1}:~ % print the font size command
2278 \__fontsize_round_f:n {size}~on~ % print the size in points
2279 \__fontsize_round_f:n {baselineskip}.~ % print the baseline skip in points
2280 \fs@sampletext % sample text
2281 \par\addvspace{\medskipamount} % finish up
2282 }
2283 % close the group
2284 \group_end:
2285 }
2286 \ExplSyntaxOff
2287 % \end{macrocode}
2288 % \eaddition
2289 % \iffalse
2290 %</package>
2291 % \fi
2292 %
2293 % \iffalse
2294 %<*bib>
2295 @manual{xkeyval,
2296 title = {The \sty{xkeyval} package},
2297 subtitle = {Extension of the keyval package},
2298 author = {Adriaens, Hendri},
2299 url = {http://www.ctan.org/pkg/xkeyval},
2300 urldate = {2020-07-05},
2301 date = {2014-03-12},
2302 version = {2.7a}
2303 }
2304
2305 @manual{etoolbox,
2306 title = {The \sty{etoolbox} Package. An e-\TeX{} Toolbox
2307 for Class and Package Authors},
2308 author = {Philipp Lehman and Joseph Wright},
2309 url = {http://www.ctan.org/pkg/etoolbox},
2310 urldate = {2020-07-05},
2311 date = {2019-09-21},
2312 version = {2.5h}
2313 }
2314
2315 @manual{koma,
2316 title = {KOMA -- Script. A versatile \LaTeXe{} bundle},
2317 author = {Frank Neukam and Markus Kohm and Axel Kielhorn},
2318 url = {http://www.ctan.org/pkg/koma-script},
2319 urldate = {2020-07-05},
2320 date = {2020-04-19},
2321 version = {3.30}
2322 }
2323
2324 @manual{lm,
2325 title = {The Latin Modern (LM) Family of Fonts},
2326 author = {B. Jackowski and J.M. Nowacki},
2327 url = {http://www.ctan.org/pkg/lm},
2328 urldate = {2021-03-04},
2329 date = {2009-10-30},
2330 version = {2.004}
2331 }
2332
2333 @manual{cochineal,
2334 title = {The Cochineal Font Package},
2335 author = {Michael Sharpe},
2336 url = {http://www.ctan.org/pkg/cochineal},
2337 urldate = {2021-03-04},
2338 date = {2020-12-19},
2339 version = {1.065 }
2340 }
2341
2342 @manual{xfp,
2343 title = {The \sty{xfp} package Floating Point Unit},
2344 author = {{The \LaTeX\ Project}},
2345 url = {https://www.ctan.org/pkg/xfp},
2346 urldate = {2021-03-14},
2347 date = {2021-03-12},
2348 }
2349
2350 @manual{tufte,
2351 title = {\sty{tufte-latex} – Document classes inspired by the work of Edward Tufte},
2352 author = {Bil Kleb and Bill Wood and Kevin Godby},
2353 url = {https://www.ctan.org/pkg/tufte-latex},
2354 urldate = {2021-05-18},
2355 date = {2015},
2356 version = {3.5.2}
2357 }
2358
2359 @manual{relsize,
2360 title = {\sty{relsize} – Set the font size relative to the current font size},
2361 author = {Donald Arseneau and Matt Swift},
2362 url = {https://www.ctan.org/pkg/relsize},
2363 urldate = {2021-11-23},
2364 date = {2013-03-29},
2365 version = {4.1}
2366 }
2367
2368 %</bib>
2369 % \fi
2370 % \Finale