Debian Codegraph @

texmf-dist/source/latex/rwth-ci/rwth-sizes.dtx

raw
1 % \iffalse meta-comment
2 %
3 % RWTH-CI -- Corporate Design for RWTH Aachen University
4 % ----------------------------------------------------------------------------
5 %
6 % Copyright (C) 2025–2026 by Marei Peischl <[email protected]> and Lukas C. Bossert
7 %
8 % ============================================================================
9 % This work may be distributed and/or modified under the
10 % conditions of the LaTeX Project Public License, either version 1.3c
11 % of this license or (at your option) any later version.
12 % The latest version of this license is in
13 % http://www.latex-project.org/lppl.txt
14 % and version 1.3c or later is part of all distributions of LaTeX
15 % version 2008/05/04 or later.
16 %
17 % This work has the LPPL maintenance status `maintained'.
18 %
19 % The Current Maintainer of this work is
20 % Marei Peischl <[email protected]>
21 %
22 % The development repository can be found at
23 % https://gitlab.git.nrw/rwth-it-center/rwth-latex-templates/rwth-ci
24 % Please use the issue tracker for feedback!
25 %
26 % ============================================================================
27 %
28 % \fi
29 %
30 % \iffalse% no documentation on this
31 % \iffalse^^A Preparation for real docstrip documentation
32 %<*driver>
33 \ProvidesFile{rwth-sizes.dtx}
34 [2026-04-03 v1.2 Paper and font size configuration for RWTH-CI]
35 \typeout{***********************************************************}
36 \typeout{No documentation included in this file! Please see rwth-ci.pdf for more the general documentation information.}
37 \typeout{***********************************************************}
38 \stop
39 %</driver>
40 % \iffalse %no documentation on this
41 %<@@=ptxcd>
42 %
43 % The following part is a modified version of
44 % scrkernel-fonts.dtx and scrkernel-paragraphs.dtx
45 % Copyright (c) Markus Kohm, 2002-2024
46 % modified by Marei Peischl <[email protected]>
47 % \iffalse
48 %<*scrsize>
49 % \fi
50 % \begin{macrocode}
51 \ProvidesFile{%
52 %<9pt> rwthsize9pt.clo%
53 %<rwthletter> rwthlettersize11bp.clo%
54 }[
55 %<9pt> RWTH-CI font size class option (9pt)
56 %<rwthletter> rwthletter font size class option (11bp)
57 ]
58 % \end{macrocode}
59 %
60 % \begin{command}{\normalsize,\datasize,\small,\footnotesize,\scriptsize,\tiny,\large,
61 % \Large,\LARGE,\huge,\Huge}
62 % \begin{macrocode}
63 \let\normalsize\@undefined
64 \DeclareRobustCommand\normalsize{%
65 %<*9pt>
66 \@setfontsize\normalsize\@ixpt\@xipt%
67 \abovedisplayskip 8\p@ \@plus4\p@ \@minus4\p@
68 \abovedisplayshortskip \z@ \@plus3\p@
69 \belowdisplayshortskip 5\p@ \@plus3\p@ \@minus3\p@
70 %</9pt>
71 % \end{macrocode}
72 % lettersizes
73 %
74 % normalsize:
75 % Arial Regular 11bp %\normalsize
76 % 8.5bp 12bp %\small
77 % bank 7bp 11bp
78 % backaddress: rwth-blue-100, 6bp
79 % \end{macrocode}
80 %<*rwthletter>
81 \@setfontsize\normalsize{11bp}{13bp}
82 \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
83 \abovedisplayshortskip \z@ \@plus3\p@
84 \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
85 %</rwthletter>
86 \belowdisplayskip \abovedisplayskip
87 \let\@listi\@listI
88 }
89 \def\datasize{%
90 \normalsize
91 \@setfontsize\normalsize
92 %<9pt> \@ixpt\@xipt
93 %<rwthletter> \@xpt\@xiiipt
94 }
95 \let\small\@undefined
96 \DeclareRobustCommand\small{%
97 %<*9pt>
98 \@setfontsize\small\@viiipt\@ixpt%
99 \abovedisplayskip 5\p@ \@plus2\p@ \@minus2\p@
100 \abovedisplayshortskip \z@ \@plus1\p@
101 \belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@
102 \def\@listi{\leftmargin\leftmargini
103 \topsep 3\p@ \@plus\p@ \@minus\p@
104 %</9pt>
105 %<*rwthletter>
106 \@setfontsize\small{8.5bp}{12bp}%
107 \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@
108 \abovedisplayshortskip \z@ \@plus2\p@
109 \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
110 \def\@listi{\leftmargin\leftmargini
111 \topsep 4\p@ \@plus2\p@ \@minus2\p@
112 %</rwthletter>
113 \parsep 2\p@ \@plus\p@ \@minus\p@
114 \itemsep \parsep}%
115 \belowdisplayskip \abovedisplayskip
116 }
117 \let\footnotesize\@undefined
118 \DeclareRobustCommand\footnotesize{%
119 %<*9pt>
120 \@setfontsize\footnotesize{7bp}{11bp}%
121 \abovedisplayskip 4\p@ \@plus2\p@ \@minus2\p@
122 \abovedisplayshortskip \z@ \@plus1\p@
123 \belowdisplayshortskip 2.5\p@ \@plus\p@ \@minus\p@
124 %</9pt>
125 %<*rwthletter>
126 \@setfontsize\footnotesize{7bp}{11bp}%
127 \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@
128 \abovedisplayshortskip \z@ \@plus\p@
129 \belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@
130 %</rwthletter>
131 \def\@listi{\leftmargin\leftmargini
132 \topsep 3\p@ \@plus\p@ \@minus\p@
133 \parsep 2\p@ \@plus\p@ \@minus\p@
134 \itemsep \parsep}%
135 \belowdisplayskip \abovedisplayskip
136 }
137 \let\scriptsize\@undefined
138 \let\tiny\@undefined
139 \let\large\@undefined
140 \let\Large\@undefined
141 \let\LARGE\@undefined
142 \let\huge\@undefined
143 \let\Huge\@undefined
144 %<*9pt>
145 \DeclareRobustCommand\scriptsize{\@setfontsize\scriptsize\@vipt\@viipt}
146 \DeclareRobustCommand\tiny{\@setfontsize\tiny\@vpt\@vipt}
147 \DeclareRobustCommand\large{\@setfontsize\large\@xpt\@xiipt}
148 \DeclareRobustCommand\Large{\@setfontsize\Large\@xipt{13}}
149 \DeclareRobustCommand\LARGE{\@setfontsize\LARGE\@xiipt{14}}
150 \DeclareRobustCommand\huge{\@setfontsize\huge\@xivpt{18}}
151 \DeclareRobustCommand\Huge{\@setfontsize\Huge\@xviipt{22}}
152 %</9pt>
153 %<*rwthletter>
154 \DeclareRobustCommand\scriptsize{\@setfontsize\scriptsize{6bp}{7bp}}
155 \DeclareRobustCommand\tiny{\@setfontsize\tiny\@vipt\@viipt}
156 \DeclareRobustCommand\large{\@setfontsize\large\@xiipt{14}}
157 \DeclareRobustCommand\Large{\@setfontsize\Large\@xivpt{18}}
158 \DeclareRobustCommand\LARGE{\@setfontsize\LARGE\@xviipt{22}}
159 \DeclareRobustCommand\huge{\@setfontsize\huge\@xxpt{25}}
160 \DeclareRobustCommand\Huge{\@setfontsize\Huge\@xxvpt{30}}
161 %</rwthletter>
162 \normalsize
163 % \end{macrocode}
164 % \end{command}
165 % The values are same as with the standard classes.
166 % \begin{macrocode}
167 %<*9pt>
168 \setlength\footnotesep {6.3\p@}
169 \setlength{\skip\footins} {8\p@ \@plus 4\p@ \@minus 2\p@}
170 \setlength\textfloatsep {18\p@ \@plus 2\p@ \@minus 4\p@}
171 \setlength\dbltextfloatsep{18\p@ \@plus 2\p@ \@minus 2\p@}
172 %</9pt>
173 %<*rwthletter>
174 \setlength\footnotesep {6.65\p@}
175 \setlength{\skip\footins} {9\p@ \@plus 4\p@ \@minus 2\p@}
176 \setlength\textfloatsep {20\p@ \@plus 2\p@ \@minus 4\p@}
177 \setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
178 %</rwthletter>
179 \setlength\floatsep {12\p@ \@plus 2\p@ \@minus 2\p@}
180 \setlength\intextsep {12\p@ \@plus 2\p@ \@minus 2\p@}
181 \setlength\dblfloatsep {12\p@ \@plus 2\p@ \@minus 2\p@}
182 \setlength\@fptop {0\p@ \@plus 1fil}
183 \setlength\@fpsep {8\p@ \@plus 2fil}
184 \setlength\@fpbot {0\p@ \@plus 1fil}
185 \setlength\@dblfptop {0\p@ \@plus 1fil}
186 \setlength\@dblfpsep {8\p@ \@plus 2fil}
187 \setlength\@dblfpbot {0\p@ \@plus 1fil}
188 \setlength\partopsep {2\p@ \@plus 1\p@ \@minus 1\p@}
189 % \end{macrocode}
190 % \begin{macro}{\@listi,\@listii,\@listiii,\@listiv,\@listv,\@listvi}
191 % The definitions are the same as with the standard classes.
192 % \begin{macrocode}
193 \def\@listi{\leftmargin\leftmargini
194 \parsep 4\p@ \@plus2\p@ \@minus\p@
195 %<9pt> \topsep 8\p@ \@plus2\p@ \@minus3\p@
196 %<rwthletter> \topsep 8\p@ \@plus2\p@ \@minus4\p@
197 \itemsep \parsep}
198 \let\@listI\@listi
199 \def\@listii {\leftmargin\leftmarginii
200 \labelwidth\leftmarginii
201 \advance\labelwidth-\labelsep
202 \topsep 4\p@ \@plus2\p@ \@minus\p@
203 \parsep 2\p@ \@plus\p@ \@minus\p@
204 \itemsep \parsep}
205 \def\@listiii{\leftmargin\leftmarginiii
206 \labelwidth\leftmarginiii
207 \advance\labelwidth-\labelsep
208 \topsep 2\p@ \@plus\p@\@minus\p@
209 \parsep \z@
210 \partopsep \p@ \@plus\z@ \@minus\p@
211 \itemsep \topsep}
212 \def\@listiv {\leftmargin\leftmarginiv
213 \labelwidth\leftmarginiv
214 \advance\labelwidth-\labelsep}
215 \def\@listv {\leftmargin\leftmarginv
216 \labelwidth\leftmarginv
217 \advance\labelwidth-\labelsep}
218 \def\@listvi {\leftmargin\leftmarginvi
219 \labelwidth\leftmarginvi
220 \advance\labelwidth-\labelsep}
221 % %% From File: $Id: scrkernel-paragraphs.dtx 3064 2019-02-01 07:40:28Z kohm $
222 \@ifundefined{@list@extra}{}{%
223 \expandafter\ifnum\scr@v@is@ge{3.17}\par@updaterelative\fi
224 \l@addto@macro{\@listi}{\@list@extra}%
225 \let\@listI=\@listi
226 \l@addto@macro{\@listii}{\@list@extra}%
227 \l@addto@macro{\@listiii}{\@list@extra}%
228 \l@addto@macro{\footnotesize}{\protect\add@extra@listi{ftns}}%
229 \l@addto@macro{\small}{\protect\add@extra@listi{sml}}%
230 }
231 \@listi
232 % \end{macrocode}
233 % \end{macro}^^A \@listi … \@listvi
234 % \end{ilength}^^A \@fptop … \@dblfpbot
235 % \end{length}^^A \footnotesep … \partopsep
236 %
237 %</scrsize>
238 % \Finale
239 % \fi^^A No documentation on this
240 \endinput