Debian Codegraph @

texmf-dist/source/latex/base/fix-cm.dtx

raw
1 % \iffalse meta-comment
2 %
3 % Copyright (C) 1993-2025
4 % The LaTeX Project and any individual authors listed elsewhere
5 % in this file.
6 %
7 % This file is part of the LaTeX base system.
8 % -------------------------------------------
9 %
10 % It may be distributed and/or modified under the
11 % conditions of the LaTeX Project Public License, either version 1.3c
12 % of this license or (at your option) any later version.
13 % The latest version of this license is in
14 % https://www.latex-project.org/lppl.txt
15 % and version 1.3c or later is part of all distributions of LaTeX
16 % version 2008 or later.
17 %
18 % This file has the LPPL maintenance status "maintained".
19 %
20 % The list of all files belonging to the LaTeX base distribution is
21 % given in the file `manifest.txt'. See also `legal.txt' for additional
22 % information.
23 %
24 % The list of derived (unpacked) files belonging to the distribution
25 % and covered by LPPL is defined by the unpacking scripts (with
26 % extension .ins) which are part of the distribution.
27 %
28 % \fi
29 %
30 % \iffalse
31 %
32 %<*dtx>
33 \ProvidesFile{fix-cm.dtx}
34 %</dtx>
35 %<fix-cm>\NeedsTeXFormat{LaTeX2e}
36 %<fix-cm>\ProvidesPackage{fix-cm}
37 %<driver>\ProvidesFile{fix-cm.drv}
38 % \fi
39 % \ProvidesFile{fix-cm.dtx}
40 [2020/11/24 v1.1t fixes to LaTeX]
41 %
42 % \iffalse
43 %<*driver>
44 \documentclass{ltxdoc}
45 \newcommand\Lopt[1]{\textsf{#1}}
46 \let\Lpack\Lopt
47 \providecommand{\file}[1]{\texttt{#1}}
48 \providecommand{\MF}{\textsf{Metafont}}
49 \providecommand{\danger}{\marginpar[\hfill\protect\Huge!!]{\protect\Huge!!\hfill}}
50 \begin{document}
51 \DocInput{fix-cm.dtx}
52 \end{document}
53 %</driver>
54 % \fi
55 %
56 %
57 %
58 %
59 %
60 % \let\package\textsf
61 %
62 %
63 % \GetFileInfo{fix-cm.dtx}
64 %
65 % \title{The \Lpack{fix-cm} package\thanks{This file
66 % has version number \fileversion, last
67 % revised \filedate.}}
68 % \author{Frank Mittelbach, David Carlisle, Chris Rowley, Walter
69 % Schmidt\thanks{Walter wrote \Lpack{fix-cm}}}
70 % \date{\filedate}
71 % \MaintainedByLaTeXTeam{latex}
72 % \maketitle
73 %
74 % \begin{abstract}
75 %\Lpack{fix-cm} improves the definitions of the Computer Modern
76 % font families.
77 % \end{abstract}
78 %
79 % \tableofcontents
80 %
81 % \newpage
82 %
83 % \section{Introduction}
84 %
85 %
86 % \begin{sloppypar}
87 % To use the \Lpack{fix-cm} package,
88 % load \danger it \emph{before} \cmd{\documentclass},
89 % and use the command \cmd{\RequirePackage} to do so, rather than the
90 % normal \cmd{\usepackage}:
91 % \end{sloppypar}
92 % \begin{verse}
93 % |\RequirePackage{fix-cm}|\\
94 % |\documentclass| \dots
95 % \end{verse}
96 %
97 %
98 % \section{Using EC fonts (T1 encoding) makes my documents look
99 % different}
100 %
101 % No I'm not trying to collect any cites from the news group
102 % discussion on this topic. In a nutshell, if one adds
103 %\begin{verbatim}
104 %\usepackage[T1]{fontenc}
105 %\end{verbatim}
106 % to a document that uses the Computer Modern typefaces,
107 % then not only the T1 encoding is used but the fonts
108 % used in the document look noticeably different. This is due to the fact
109 % that the EC fonts have more font series designs, e.g.\ a 14.4\,pt bold
110 % etc and those get used in the standard \texttt{.fd} files, while
111 % with Computer Modern (in OT1 encoding) such sizes were scaled
112 % versions of smaller sizes---with a noticeable different look and
113 % feel.
114 %
115 % So we provide a package \Lpack{fix-cm} to ensure that comparable
116 % definitions are used. In addition to that, the package
117 % \Lpack{fix-cm} also enables continuous scaling of the CM fonts.
118 % This package was written by Walter Schmidt.
119 %
120 %%
121 %^^A The documentation in this section was prepared by Walter Schmidt.
122 %
123 %
124 %
125 % \subsection{What \Lpack{fix-cm} does}
126 %
127
128 % Loading the package \Lpack{fix-cm} changes the font definitions of the
129 % Computer Modern fonts, in order to achieve the following effects:
130 % \begin{itemize}
131 % \item
132 % The appearance of the T1 and TS1 encoded CM fonts (aka `EC') is
133 % made as similar as possible to the traditional (OT1 encoded) ones.
134 % Particularly, a number of broken or ugly design sizes are no
135 % longer used, the look of the bold sans serif typeface at large
136 % sizes is considerably improved, and mismatches between the text
137 % fonts and the corresponding math fonts are avoided. As a side
138 % effect, PostScript and PDF documents may become smaller, because
139 % fewer fonts need to be embedded.
140 % \item
141 % The Computer Modern fonts are made available with arbitrary sizes.
142 % \item
143 % Only those design sizes of the fonts will be used, that are
144 % normally available in Type1 format, too. You need not load the
145 % extra package \Lpack{cmmib57} for this purpose.
146 % \end{itemize}
147 % The package acts on the following font families:
148 % \begin{itemize}
149 % \item
150 % The text font families \file{cmr}, \file{cmss}, \file{cmtt} and
151 % \file{cmvtt} with OT1, T1 and TS1 encoding.
152 % \item
153 % The default math fonts used by \LaTeX, i.e., the font families
154 % \file{cmm} with encoding OML and \file{cms} with encoding OMS.
155 % \item
156 % The symbols used by the package \Lpack{latexsym}, i.e., the font
157 % family \file{lasy}.
158 % \end{itemize}
159 % Note that the package does \emph{not} act on:
160 % \begin{itemize}
161 % \item Font families such as CM~Fibonacci, CM~Dunhill etc.,
162 % which are provided for experimental purposes or for fun only.
163 % \item
164 % CM text fonts with character sets other than Latin, e.g.,
165 % Cyrillic. Loading of the required font and encoding definitions
166 % while the fonts are not actually used, would not be a good idea.
167 % This should be addressed by particular packages or by changing the
168 % standard FDs of these fonts.
169 % \item
170 % Extra math fonts such as the AMS symbol fonts. While
171 % they match the style of Computer Modern, they are frequently used
172 % in conjunction with other font families, too. Thus,
173 % \Lpack{fix-cm} is obviously not the right place to make sure that
174 % they can be scaled continuously. Ask the maintainers of these
175 % fonts to provide this feature, which is badly needed!
176 % \item
177 % The math extension font \file{cmex}. Whether or not this font
178 % should be scaled is a question of its own, and there are other
179 % packages (\Lpack{exscale}, \Lpack{amsmath}, \Lpack{amsfonts}) to
180 % take care of it.
181 % \end{itemize}
182 %
183 % \subsection{How to load the package}
184 % \begin{sloppypar}
185 % The package should be loaded \danger \emph{before} \cmd{\documentclass},
186 % using the command |\RequirePackage{fix-cm}|, rather than the
187 % normal \cmd{\usepackage}.
188 % Rationale:
189 % If the package is loaded in the preamble, a preceding package or
190 % even the code of the document class may have used any of the CM
191 % fonts already. However, the definitions of those fonts, that are
192 % already in use, cannot be changed any more.
193 % \end{sloppypar}
194 %
195 % \subsection{Usage notes}
196 % In contrast to what you may expect, \Lpack{fix-cm} does \emph{not}
197 % ensure that line and page breaks stay the same, when you switch an
198 % existing document from OT1 to T1 encoding. The package does not
199 % turn off all of the additional design sizes in the EC fonts
200 % collection: Those, that contribute considerably to the typographical
201 % quality and do not conflict with the math fonts,
202 % are---indeed---used.
203 %
204 % Be careful when using arbitrary, non-standard font sizes with
205 % applications that need bitmap fonts: You may end up \danger with
206 % lots of possibly huge \file{.pk} files. Also, \MF{} chokes
207 % sometimes on extremely small or large sizes, because of arithmetic
208 % problems.
209 %
210 % \Lpack{fix-cm} supersedes the experimental packages \Lpack{cmsd} and
211 % \Lpack{fix-ec}, which are no longer distributed.
212 %
213 % The packages \Lpack{type1cm} and \Lpack{type1ec} must not be loaded
214 % additionally; they enable only continuous scaling.
215 %
216 %
217 %
218 %
219 % \MaybeStop{}
220 %
221 % \section{Implementation}
222 %
223 % \subsection{Preliminaries}
224 % The \LaTeX{} kernel does not declare the font encoding TS1.
225 % However, we are going to set up font definitions for this encoding,
226 % so we have to declare it now.
227 % \begin{macrocode}
228 %<*fix-cm>
229 \input{ts1enc.def}
230 % \end{macrocode}
231 %
232 % In case the package is loaded in the preamble, any of the CM fonts may
233 % have been used already and cannot be redefined. Yet we try to
234 % intercept at least the problem that is most likely to occur, i.e.,
235 % a hidden \cmd{\normalfont}. Most of the standard definitions
236 % are ok, but those for T1 encoding and 10.95\,pt need to be removed:
237 % \begin{macrocode}
238 \expandafter \let \csname T1/cmr/m/n/10.95\endcsname \relax
239 \expandafter \let \csname T1/cmss/m/n/10.95\endcsname \relax
240 \expandafter \let \csname T1/cmtt/m/n/10.95\endcsname \relax
241 \expandafter \let \csname T1/cmvtt/m/n/10.95\endcsname \relax
242 % \end{macrocode}
243 %
244 % \Lpack{fix-cm} may still fail, if the EC fonts are preloaded in the
245 % \LaTeX{} format file. This situation is, however, very unlikely and could occur
246 % only with a customized format.
247 %
248 % The remainder of the package is enclosed in a group, where the catcodes
249 % are guaranteed to be appropriate for the processing of font definitions.
250 % \begin{macrocode}
251 \begingroup
252 \nfss@catcodes
253 % \end{macrocode}
254 %
255 % \subsection{T1 encoding}
256 %
257 % \paragraph{CM Roman}
258 % \begin{macrocode}
259 \DeclareFontFamily{T1}{cmr}{}
260 \DeclareFontShape{T1}{cmr}{m}{n}{
261 <-6> ecrm0500
262 <6-7> ecrm0600
263 <7-8> ecrm0700
264 <8-9> ecrm0800
265 <9-10> ecrm0900
266 <10-12> ecrm1000
267 <12-17> ecrm1200
268 <17-> ecrm1728
269 }{}
270 \DeclareFontShape{T1}{cmr}{m}{sl}{
271 <-6> ecsl0500
272 <6-7> ecsl0600
273 <7-8> ecsl0700
274 <8-9> ecsl0800
275 <9-10> ecsl0900
276 <10-12> ecsl1000
277 <12-17> ecsl1200
278 <17-> ecsl1728
279 }{}
280 \DeclareFontShape{T1}{cmr}{m}{it}{
281 <-8> ecti0700
282 <8-9> ecti0800
283 <9-10> ecti0900
284 <10-12> ecti1000
285 <12-17> ecti1200
286 <17-> ecti1728
287 }{}
288 \DeclareFontShape{T1}{cmr}{m}{sc}{
289 <-6> eccc0500
290 <6-7> eccc0600
291 <7-8> eccc0700
292 <8-9> eccc0800
293 <9-10> eccc0900
294 <10-12> eccc1000
295 <12-17> eccc1200
296 <17-> eccc1728
297 }{}
298 \DeclareFontShape{T1}{cmr}{m}{ui}{
299 <-8> ecui0700
300 <8-9> ecui0800
301 <9-10> ecui0900
302 <10-12> ecui1000
303 <12-17> ecui1200
304 <17-> ecui1728
305 }{}
306 \DeclareFontShape{T1}{cmr}{b}{n}{
307 <-6> ecrb0500
308 <6-7> ecrb0600
309 <7-8> ecrb0700
310 <8-9> ecrb0800
311 <9-10> ecrb0900
312 <10-12> ecrb1000
313 <12-17> ecrb1200
314 <17-> ecrb1728
315 }{}
316 \DeclareFontShape{T1}{cmr}{bx}{n}{
317 <-6> ecbx0500
318 <6-7> ecbx0600
319 <7-8> ecbx0700
320 <8-9> ecbx0800
321 <9-10> ecbx0900
322 <10-12> ecbx1000
323 <12-> ecbx1200
324 }{}
325 \DeclareFontShape{T1}{cmr}{bx}{sl}{
326 <-6> ecbl0500
327 <6-7> ecbl0600
328 <7-8> ecbl0700
329 <8-9> ecbl0800
330 <9-10> ecbl0900
331 <10-12> ecbl1000
332 <12-> ecbl1200
333 }{}
334 \DeclareFontShape{T1}{cmr}{bx}{it}{
335 <-8> ecbi0700
336 <8-9> ecbi0800
337 <9-10> ecbi0900
338 <10-12> ecbi1000
339 <12-> ecbi1200
340 }{}
341 \DeclareFontShape{T1}{cmr}{bx}{sc}{
342 <-6> ecxc0500
343 <6-7> ecxc0600
344 <7-8> ecxc0700
345 <8-9> ecxc0800
346 <9-10> ecxc0900
347 <10-12> ecxc1000
348 <12-> ecxc1200
349 }{}
350 %
351 % \end{macrocode}
352 %
353 % \paragraph{CM Sans}
354 % \begin{macrocode}
355 \DeclareFontFamily{T1}{cmss}{}
356 \DeclareFontShape{T1}{cmss}{m}{n}{
357 <-9> ecss0800
358 <9-10> ecss0900
359 <10-12> ecss1000
360 <12-17> ecss1200
361 <17-> ecss1728
362 }{}
363 \DeclareFontShape{T1}{cmss}{m}{sl}{
364 <-9> ecsi0800
365 <9-10> ecsi0900
366 <10-12> ecsi1000
367 <12-17> ecsi1200
368 <17-> ecsi1728
369 }{}
370 \DeclareFontShape{T1}{cmss}{m}{it}
371 {<->ssub*cmss/m/sl}{}
372 \DeclareFontShape{T1}{cmss}{m}{sc}
373 {<->sub*cmr/m/sc}{}
374 \DeclareFontShape{T1}{cmss}{sbc}{n}{
375 <-> ecssdc10
376 }{}
377 \DeclareFontShape{T1}{cmss}{bx}{n}{
378 <-10> ecsx0900
379 <10-> ecsx1000
380 }{}
381 \DeclareFontShape{T1}{cmss}{bx}{sl}{
382 <-10> ecso0900
383 <10-> ecso1000
384 }{}
385 \DeclareFontShape{T1}{cmss}{bx}{it}
386 {<->ssub*cmss/bx/sl}{}
387 % \end{macrocode}
388 % The following substitutions are not provided in the default
389 % \file{.fd} files. I have included them, so that you can
390 % easily use the EC fonts with the default bold series being
391 % \file{b} rather than \file{bx}.
392 % \begin{macrocode}
393 \DeclareFontShape{T1}{cmss}{b}{n}
394 {<->ssub*cmss/bx/n}{}
395 \DeclareFontShape{T1}{cmss}{b}{sl}
396 {<->ssub*cmss/bx/sl}{}
397 \DeclareFontShape{T1}{cmss}{b}{it}
398 {<->ssub*cmss/bx/sl}{}
399 % \end{macrocode}
400 %
401 % \paragraph{CM Typewriter}
402 % \begin{macrocode}
403 \DeclareFontFamily{T1}{cmtt}{\hyphenchar \font\m@ne}
404 \DeclareFontShape{T1}{cmtt}{m}{n}{
405 <-9> ectt0800
406 <9-10> ectt0900
407 <10-12> ectt1000
408 <12-17> ectt1200
409 <17-> ectt1728
410 }{}
411 \DeclareFontShape{T1}{cmtt}{m}{it}{
412 <-9> ecit0800
413 <9-10> ecit0900
414 <10-12> ecit1000
415 <12-17> ecit1200
416 <17-> ecit1728
417 }{}
418 \DeclareFontShape{T1}{cmtt}{m}{sl}{
419 <-9> ecst0800
420 <9-10> ecst0900
421 <10-12> ecst1000
422 <12-17> ecst1200
423 <17-> ecst1728
424 }{}
425 \DeclareFontShape{T1}{cmtt}{m}{sc}{
426 <-9> ectc0800
427 <9-10> ectc0900
428 <10-12> ectc1000
429 <12-17> ectc1200
430 <17-> ectc1728
431 }{}
432 \DeclareFontShape{T1}{cmtt}{bx}{n}
433 {<->sub * cmtt/m/n}{}
434 \DeclareFontShape{T1}{cmtt}{bx}{it}
435 {<->sub * cmtt/m/it}{}
436 \DeclareFontShape{T1}{cmtt}{bx}{sl}
437 {<->sub * cmtt/m/sl}{}
438 % \end{macrocode}
439 % Substitutions not provided in the default \file{.fd} files:
440 % \begin{macrocode}
441 \DeclareFontShape{T1}{cmtt}{b}{n}
442 {<->sub * cmtt/m/n}{}
443 \DeclareFontShape{T1}{cmtt}{b}{it}
444 {<->sub * cmtt/m/it}{}
445 \DeclareFontShape{T1}{cmtt}{b}{sl}
446 {<->sub * cmtt/m/sl}{}
447 % \end{macrocode}
448 %
449 % \paragraph{CM Typewriter (var.)}
450 % \begin{macrocode}
451 \DeclareFontFamily{T1}{cmvtt}{}
452 \DeclareFontShape{T1}{cmvtt}{m}{n}{
453 <-9> ecvt0800
454 <9-10> ecvt0900
455 <10-12> ecvt1000
456 <12-17> ecvt1200
457 <17-> ecvt1728
458 }{}
459 \DeclareFontShape{T1}{cmvtt}{m}{it}{
460 <-9> ecvi0800
461 <9-10> ecvi0900
462 <10-12> ecvi1000
463 <12-17> ecvi1200
464 <17-> ecvi1728
465 }{}
466 % \end{macrocode}
467 %
468 % \subsection{TS1 encoding}
469 %
470 % \paragraph{CM Roman}
471 % \begin{macrocode}
472 \DeclareFontFamily{TS1}{cmr}{\hyphenchar\font\m@ne}
473 \DeclareFontShape{TS1}{cmr}{m}{n}{
474 <-6> tcrm0500
475 <6-7> tcrm0600
476 <7-8> tcrm0700
477 <8-9> tcrm0800
478 <9-10> tcrm0900
479 <10-12> tcrm1000
480 <12-17> tcrm1200
481 <17-> tcrm1728
482 }{}
483 \DeclareFontShape{TS1}{cmr}{m}{sl}{
484 <-6> tcsl0500
485 <6-7> tcsl0600
486 <7-8> tcsl0700
487 <8-9> tcsl0800
488 <9-10> tcsl0900
489 <10-12> tcsl1000
490 <12-17> tcsl1200
491 <17-> tcsl1728
492 }{}
493 \DeclareFontShape{TS1}{cmr}{m}{it}{
494 <-8> tcti0700
495 <8-9> tcti0800
496 <9-10> tcti0900
497 <10-12> tcti1000
498 <12-17> tcti1200
499 <17-> tcti1728
500 }{}
501 \DeclareFontShape{TS1}{cmr}{m}{ui}{
502 <-8> tcui0700
503 <8-9> tcui0800
504 <9-10> tcui0900
505 <10-12> tcui1000
506 <12-17> tcui1200
507 <17-> tcui1728
508 }{}
509 \DeclareFontShape{TS1}{cmr}{b}{n}{
510 <-6> tcrb0500
511 <6-7> tcrb0600
512 <7-8> tcrb0700
513 <8-9> tcrb0800
514 <9-10> tcrb0900
515 <10-12> tcrb1000
516 <12-17> tcrb1200
517 <17-> tcrb1728
518 }{}
519 \DeclareFontShape{TS1}{cmr}{bx}{n}{
520 <-6> tcbx0500
521 <6-7> tcbx0600
522 <7-8> tcbx0700
523 <8-9> tcbx0800
524 <9-10> tcbx0900
525 <10-12> tcbx1000
526 <12-> tcbx1200
527 }{}
528 \DeclareFontShape{TS1}{cmr}{bx}{sl}{
529 <-6> tcbl0500
530 <6-7> tcbl0600
531 <7-8> tcbl0700
532 <8-9> tcbl0800
533 <9-10> tcbl0900
534 <10-12> tcbl1000
535 <12-> tcbl1200
536 }{}
537 \DeclareFontShape{TS1}{cmr}{bx}{it}{
538 <-8> tcbi0700
539 <8-9> tcbi0800
540 <9-10> tcbi0900
541 <10-12> tcbi1000
542 <12-> tcbi1200
543 }{}
544 % \end{macrocode}
545 %
546 % \paragraph{CM Sans}
547 % \begin{macrocode}
548 \DeclareFontFamily{TS1}{cmss}{\hyphenchar\font\m@ne}
549 \DeclareFontShape{TS1}{cmss}{m}{n}{
550 <-9> tcss0800
551 <9-10> tcss0900
552 <10-12> tcss1000
553 <12-17> tcss1200
554 <17-> tcss1728
555 }{}
556 \DeclareFontShape{TS1}{cmss}{m}{it}
557 {<->ssub*cmss/m/sl}{}
558 \DeclareFontShape{TS1}{cmss}{m}{sl}{
559 <-9> tcsi0800
560 <9-10> tcsi0900
561 <10-12> tcsi1000
562 <12-17> tcsi1200
563 <17-> tcsi1728
564 }{}
565 \DeclareFontShape{TS1}{cmss}{sbc}{n}{
566 <-> tcssdc10
567 }{}
568 \DeclareFontShape{TS1}{cmss}{bx}{n}{
569 <-10> tcsx0900
570 <10-> tcsx1000
571 }{}
572 \DeclareFontShape{TS1}{cmss}{bx}{sl}{
573 <-10> tcso0900
574 <10-> tcso1000
575 }{}
576 \DeclareFontShape{TS1}{cmss}{bx}{it}
577 {<->ssub*cmss/bx/sl}{}
578 % \end{macrocode}
579 % Substitutions not provided in the default \file{.fd} files:
580 % \begin{macrocode}
581 \DeclareFontShape{TS1}{cmss}{b}{n}
582 {<->ssub*cmss/bx/n}{}
583 \DeclareFontShape{TS1}{cmss}{b}{sl}
584 {<->ssub*cmss/bx/sl}{}
585 \DeclareFontShape{TS1}{cmss}{b}{it}
586 {<->ssub*cmss/bx/sl}{}
587 % \end{macrocode}
588 %
589 % \paragraph{CM Typewriter}
590 % \begin{macrocode}
591 \DeclareFontFamily{TS1}{cmtt}{\hyphenchar \font\m@ne}
592 \DeclareFontShape{TS1}{cmtt}{m}{n}{
593 <-9> tctt0800
594 <9-10> tctt0900
595 <10-12> tctt1000
596 <12-17> tctt1200
597 <17-> tctt1728
598 }{}
599 \DeclareFontShape{TS1}{cmtt}{m}{it}{
600 <-9> tcit0800
601 <9-10> tcit0900
602 <10-12> tcit1000
603 <12-17> tcit1200
604 <17-> tcit1728
605 }{}
606 \DeclareFontShape{TS1}{cmtt}{m}{sl}{
607 <-9> tcst0800
608 <9-10> tcst0900
609 <10-12> tcst1000
610 <12-17> tcst1200
611 <17-> tcst1728
612 }{}
613 \DeclareFontShape{TS1}{cmtt}{bx}{n}
614 {<->sub * cmtt/m/n}{}
615 \DeclareFontShape{TS1}{cmtt}{bx}{it}
616 {<->sub * cmtt/m/it}{}
617 \DeclareFontShape{TS1}{cmtt}{bx}{sl}
618 {<->sub * cmtt/m/sl}{}
619 % \end{macrocode}
620 % Substitutions not provided in the default \file{.fd} files:
621 % \begin{macrocode}
622 \DeclareFontShape{TS1}{cmtt}{b}{n}
623 {<->sub * cmtt/m/n}{}
624 \DeclareFontShape{TS1}{cmtt}{b}{it}
625 {<->sub * cmtt/m/it}{}
626 \DeclareFontShape{TS1}{cmtt}{b}{sl}
627 {<->sub * cmtt/m/sl}{}
628 % \end{macrocode}
629 %
630 % \paragraph{CM Typewriter (var.)}
631 % \begin{macrocode}
632 \DeclareFontFamily{TS1}{cmvtt}{}
633 \DeclareFontShape{TS1}{cmvtt}{m}{n}{
634 <-9> tcvt0800
635 <9-10> tcvt0900
636 <10-12> tcvt1000
637 <12-17> tcvt1200
638 <17-> tcvi1728
639 }{}
640 \DeclareFontShape{TS1}{cmvtt}{m}{it}{
641 <-9> tcvi0800
642 <9-10> tcvi0900
643 <10-12> tcvi1000
644 <12-17> tcvi1200
645 <17-> tcvi1728
646 }{}
647 % \end{macrocode}
648 %
649 % \subsection{OT1 encoding}
650 %
651 % \paragraph{CM Roman}
652 % \begin{macrocode}
653 \DeclareFontFamily{OT1}{cmr}{\hyphenchar\font45 }
654 \DeclareFontShape{OT1}{cmr}{m}{n}{
655 <-6> cmr5
656 <6-7> cmr6
657 <7-8> cmr7
658 <8-9> cmr8
659 <9-10> cmr9
660 <10-12> cmr10
661 <12-17> cmr12
662 <17-> cmr17
663 }{}
664 \DeclareFontShape{OT1}{cmr}{m}{sl}{
665 <-9> cmsl8
666 <9-10> cmsl9
667 <10-12> cmsl10
668 <12-> cmsl12
669 }{}
670 \DeclareFontShape{OT1}{cmr}{m}{it}{
671 <-8> cmti7
672 <8-9> cmti8
673 <9-10> cmti9
674 <10-12> cmti10
675 <12-> cmti12
676 }{}
677 \DeclareFontShape{OT1}{cmr}{m}{sc}{
678 <-> cmcsc10
679 }{}
680 \DeclareFontShape{OT1}{cmr}{m}{ui}{
681 <-> cmu10
682 }{}
683 \DeclareFontShape{OT1}{cmr}{b}{n}{
684 <-> cmb10
685 }{}
686 \DeclareFontShape{OT1}{cmr}{bx}{n}{
687 <-6> cmbx5
688 <6-7> cmbx6
689 <7-8> cmbx7
690 <8-9> cmbx8
691 <9-10> cmbx9
692 <10-12> cmbx10
693 <12-> cmbx12
694 }{}
695 \DeclareFontShape{OT1}{cmr}{bx}{sl}{
696 <-> cmbxsl10
697 }{}
698 \DeclareFontShape{OT1}{cmr}{bx}{it}{
699 <-> cmbxti10
700 }{}
701 \DeclareFontShape{OT1}{cmr}{bx}{ui}
702 {<->sub*cmr/m/ui}{}
703 % \end{macrocode}
704 %
705 % \paragraph{CM Sans}
706 % \begin{macrocode}
707 \DeclareFontFamily{OT1}{cmss}{\hyphenchar\font45 }
708 \DeclareFontShape{OT1}{cmss}{m}{n}{
709 <-9> cmss8
710 <9-10> cmss9
711 <10-12> cmss10
712 <12-17> cmss12
713 <17-> cmss17
714 }{}
715 \DeclareFontShape{OT1}{cmss}{m}{it}
716 {<->sub*cmss/m/sl}{}
717 \DeclareFontShape{OT1}{cmss}{m}{sl}{
718 <-9> cmssi8
719 <9-10> cmssi9
720 <10-12> cmssi10
721 <12-17> cmssi12
722 <17-> cmssi17
723 }{}
724 \DeclareFontShape{OT1}{cmss}{m}{sc}
725 {<->sub*cmr/m/sc}{}
726 \DeclareFontShape{OT1}{cmss}{m}{ui}
727 {<->sub*cmr/m/ui}{}
728 \DeclareFontShape{OT1}{cmss}{sbc}{n}{
729 <-> cmssdc10
730 }{}
731 \DeclareFontShape{OT1}{cmss}{bx}{n}{
732 <-> cmssbx10
733 }{}
734 \DeclareFontShape{OT1}{cmss}{bx}{ui}
735 {<->sub*cmr/bx/ui}{}
736 % \end{macrocode}
737 %
738 % \paragraph{CM Typewriter}
739 % \begin{macrocode}
740 \DeclareFontFamily{OT1}{cmtt}{\hyphenchar \font\m@ne}
741 \DeclareFontShape{OT1}{cmtt}{m}{n}{
742 <-9> cmtt8
743 <9-10> cmtt9
744 <10-12> cmtt10
745 <12-> cmtt12
746 }{}
747 \DeclareFontShape{OT1}{cmtt}{m}{it}{
748 <-> cmitt10
749 }{}
750 \DeclareFontShape{OT1}{cmtt}{m}{sl}{
751 <-> cmsltt10
752 }{}
753 \DeclareFontShape{OT1}{cmtt}{m}{sc}{
754 <-> cmtcsc10
755 }{}
756 \DeclareFontShape{OT1}{cmtt}{m}{ui}
757 {<->ssub*cmtt/m/it}{}
758 \DeclareFontShape{OT1}{cmtt}{bx}{n}
759 {<->ssub*cmtt/m/n}{}
760 \DeclareFontShape{OT1}{cmtt}{bx}{it}
761 {<->ssub*cmtt/m/it}{}
762 \DeclareFontShape{OT1}{cmtt}{bx}{ui}
763 {<->ssub*cmtt/m/it}{}
764 % \end{macrocode}
765 %
766 % \paragraph{CM Typewriter (var.)}
767 % \begin{macrocode}
768 \DeclareFontFamily{OT1}{cmvtt}{\hyphenchar\font45 }
769 \DeclareFontShape{OT1}{cmvtt}{m}{n}{
770 <-> cmvtt10
771 }{}
772 \DeclareFontShape{OT1}{cmvtt}{m}{it}{
773 <-> cmvtti10
774 }{}
775 % \end{macrocode}
776 %
777 % \subsection{OML and OMS encoded math fonts}
778 % \begin{macrocode}
779 \DeclareFontFamily{OML}{cmm}{\skewchar\font127 }
780 \DeclareFontShape{OML}{cmm}{m}{it}{
781 <-6> cmmi5
782 <6-7> cmmi6
783 <7-8> cmmi7
784 <8-9> cmmi8
785 <9-10> cmmi9
786 <10-12> cmmi10
787 <12-> cmmi12
788 }{}
789 \DeclareFontShape{OML}{cmm}{b}{it}{<-6>cmmib5<6-8>cmmib7<8->cmmib10}{}
790 \DeclareFontShape{OML}{cmm}{bx}{it}
791 {<->ssub*cmm/b/it}{}
792 % \end{macrocode}
793 % \begin{macrocode}
794 \DeclareFontFamily{OMS}{cmsy}{\skewchar\font48 }
795 \DeclareFontShape{OMS}{cmsy}{m}{n}{
796 <-6> cmsy5
797 <6-7> cmsy6
798 <7-8> cmsy7
799 <8-9> cmsy8
800 <9-10> cmsy9
801 <10-> cmsy10
802 }{}
803 \DeclareFontShape{OMS}{cmsy}{b}{n}{<-6>cmbsy5<6-8>cmbsy7<8->cmbsy10}{}
804 % \end{macrocode}
805 %
806 % \subsection{\LaTeX{} symbols}
807 % \begin{macrocode}
808 \DeclareFontFamily{U}{lasy}{}
809 \DeclareFontShape{U}{lasy}{m}{n}{
810 <-6> lasy5
811 <6-7> lasy6
812 <7-8> lasy7
813 <8-9> lasy8
814 <9-10> lasy9
815 <10-> lasy10
816 }{}
817 \DeclareFontShape{U}{lasy}{b}{n}{
818 <-10> ssub * lasy/m/n
819 <10-> lasyb10
820 }{}
821 % \end{macrocode}
822 % \begin{macrocode}
823 \endgroup
824 %</fix-cm>
825 % \end{macrocode}
826 %
827 % \Finale
828 %
829 \endinput