Debian Codegraph @

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

raw
1 % \iffalse meta-comment
2 %
3 % --------------------------------------------------------------
4 % Package tpslifonts - part of TeXPower bundle - configure
5 % presentation fonts. Copyright (C) 1999-2004 Stephan Lehmke
6 %
7 % This program is free software; you can redistribute it and/or
8 % modify it under the terms of the GNU General Public License
9 % as published by the Free Software Foundation; either version 2
10 % of the License, or (at your option) any later version.
11 %
12 % This program is distributed in the hope that it will be useful,
13 % but WITHOUT ANY WARRANTY; without even the implied warranty of
14 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 % GNU General Public License for more details.
16 % --------------------------------------------------------------
17 %
18 % tpslifonts.dtx,v 1.2 2004/07/27 11:30:39 hansfn Exp
19 %
20 % \fi
21 %
22 % \iffalse
23 %
24 %<*driver>
25 \ProvidesFile{tpslifonts.dtx}
26 %</driver>
27 %<tpslifonts>\NeedsTeXFormat{LaTeX2e}
28 %<tpslifonts>\ProvidesPackage{tpslifonts}
29 %<*tpslifonts>
30 [2004/07/27 v0.6d Configure presentation fonts.]
31 %</tpslifonts>
32 %
33 %<*driver>
34 \documentclass{ltxdoc}
35 \EnableCrossrefs
36 \CodelineIndex
37 \RecordChanges
38 \begin{document}
39 \DocInput{tpslifonts.dtx}
40 \end{document}
41 %</driver>
42 %
43 % \fi
44 %
45 % \CheckSum{1030}
46 %
47 % \CharacterTable
48 % {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
49 % 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
50 % Digits \0\1\2\3\4\5\6\7\8\9
51 % Exclamation \! Double quote \" Hash (number) \#
52 % Dollar \$ Percent \% Ampersand \&
53 % Acute accent \' Left paren \( Right paren \)
54 % Asterisk \* Plus \+ Comma \,
55 % Minus \- Point \. Solidus \/
56 % Colon \: Semicolon \; Less than \<
57 % Equals \= Greater than \> Question mark \?
58 % Commercial at \@ Left bracket \[ Backslash \\
59 % Right bracket \] Circumflex \^ Underscore \_
60 % Grave accent \` Left brace \{ Vertical bar \|
61 % Right brace \} Tilde \~}
62 %
63 %
64 % \GetFileInfo{tpslifonts.dtx}
65 %
66 % \DoNotIndex{\newcommand,\newenvironment}
67 %
68 % \title{The \textsf{tpslifonts} package\thanks{This document
69 % corresponds to \textsf{tpslifonts}~\fileversion, dated \filedate.}}
70 % \author{ Stephan Lehmke \\ \texttt{[email protected]}}
71 %
72 % \maketitle
73 %
74 % \tableofcontents
75 %
76 % \section{Introduction}
77 %
78 % Presentations to be displayed `online' with a video beamer have special needs
79 % concerning font configuration owing to low `screen' resolution and bad
80 % contrast caused by possibly bad light conditions combined with color
81 % highlighting.
82 %
83 % This package tries to cater to these needs by offering a holistic
84 % configuration of all document fonts, including text, typewriter, and math
85 % fonts. Special features are `smooth scaling' of Type1 fonts and careful design
86 % size selection for optimal readability.
87 %
88 % The default is to use ``lcmss'', also called ``slifonts'' for text and the
89 % usual cmtt and cmm for typewriter and math. There's a large variety of
90 % options and parameters for choosing different text and math fonts, all from
91 % the large ``cm'' family of fonts, which has the advantage that readability can
92 % be enhanced by scaling small design sizes.
93 % A couple of additional math fonts like ams and doublestroke fonts are
94 % supported.
95 %
96 % For some of the options to yield satisfying results, it is neccessary to
97 % install additional (free) Type1 fonts on your system.
98 % There's no intention to support other font families like the typical
99 % ``psnfss'' PostScript fonts, as they usually don't come in different design
100 % sizes, making the effort of tuning them for viewing futile. If you wish to use
101 % such a font, load it with the usual packages.
102 %
103 % This package is part of the TeXPower bundle, to be found at\\ |http://texpower.sourceforge.net/|
104 %
105 % \section{User interface}
106 %
107 % The package doesn't define any user-level commands; the font
108 % configuration is done entirely by package options.
109 %
110 % Furthermore, the accompanying example document slifontsexample gives a
111 % lot of information about the fonts configured and some examples of
112 % math typesetting. Please read the comments in slifontsexample.tex
113 % carefully and try out some of the configuration variants described
114 % therein.
115 %
116 % \section{Description of package options}
117 %
118 % \subsection{Text font options}
119 %
120 % The default is to use \SliTeX\ computer modern sans serif, an eminently
121 % readable font and my personal favourite.\\
122 %
123 % \begin{tabular}{@{}l@{\hspace{1cm}}l}
124 % Option & Meaning\\ \hline
125 % cmr & Set computer modern roman text fonts.\\
126 % cmfib & Set computer modern roman Fibonacci text fonts.\\
127 % cmss & Set computer modern sans serif text fonts.\\
128 % cmbright & Set computer modern bright text fonts.\\
129 % concrete & Set concrete text fonts.
130 % \end{tabular}
131 %
132 % \subsection{Design size bounding}
133 %
134 % Usually design sizes are `bounded' by 8pt, that is, if an 8pt (or
135 % % lower) design size of a font exists, it will be scaled to larger sizes
136 % even if larger design sizes exist, because large design sizes tend to
137 % be less readable at low resolutions. For sizes below 8pt, smaller
138 % design sizes are used if available.
139 %
140 % The limit of 8pt is adjustable (downwards) by options. \\
141 %
142 % \begin{tabular}{@{}l@{\hspace{1cm}}l}
143 % Option & Meaning\\ \hline
144 % scale7pt & Use 7pt as a bound.\\
145 % scale6pt & Use 6pt as a bound.\\
146 % scale5pt & Use 5pt as a bound.
147 % \end{tabular}
148 %
149 % \subsection{Font scaling}
150 %
151 % The default lcmss text fonts have very high `small letters', making
152 % normal-size fonts look small and difficult to read. There are options
153 % for scaling up math and typewriter fonts slightly so they harmonize a
154 % little more with text fonts.\\
155 %
156 % \begin{tabular}{@{}l@{\hspace{1cm}}l}
157 % Option & Meaning\\ \hline
158 % scaleupmath & scale up math fonts\\
159 % scaleuptt & scale up typewriter fonts
160 % \end{tabular}
161 %
162 % \subsection{Math fonts}
163 %
164 % Because the availability of different fonts in different encodings is
165 % not really homogenous, we differentiate between the font used for
166 % operator names (plus upper case greek, digits and some symbols) and
167 % the font used for other symbols. In some cases (math extension font),
168 % the choices are quite limited anyway.
169 %
170 % The default is to use cmr for operators and such and the standard cmm
171 % and relatives for symbols. The concrete option for concrete text fonts
172 % selects concrete math fonts by default, but as these don't seem to
173 % exist in Type1 format currently, it's recommended to combine concrete
174 % text with Euler math.\\
175 %
176 % \begin{tabular}{@{}l@{\hspace{1cm}}p{0.6\textwidth}}
177 % Option & Meaning \\ \hline
178 % eulermath & Use Euler math fonts. This implies the option textops
179 % (see below). \\
180 % eulerdigits & Take digits also from the Euler fonts (default: the
181 % text font used). Can be used only in conjunction with
182 % the eulermath option. \\
183 % cmbrightmath & Use cmbright math fonts. \\
184 % textops & Take operator names, upper case greek, digits and some
185 % symbols from the text font rather than from some font
186 % matching the math font (default for Euler math).
187 % \end{tabular}
188 %
189 % \StopEventually{\PrintChanges\PrintIndex}
190 %
191 % \section{Implementation}
192 %
193 % \changes{v0.1}{2001/08/10}{First version for the pre-alpha release of
194 % texpower.}
195 %
196 % \changes{v0.2}{2001/11/17}{Added support for stmaryrd fonts.}
197 %
198 % \changes{v0.3}{2002/10/18}{Rewritten to go without .fd files. Euler package
199 % dependence changed to eulervm. Added support for ams, lasy, wasysym, rsfs,
200 % dstroke fonts.}
201 %
202 % \changes{v0.4}{2003/03/25}{Added support for cmbright math.}
203 %
204 % \changes{v0.5}{2003/03/26}{Added support for T1 encoding.}
205 %
206 % \changes{v0.6}{2003/05/29}{Change of attitude: I found out how desolate the
207 % situation of most presentation packages is wrt fonts. Hence, instead of
208 % trying to be as minimally invasive as possible, tpslifonts will try to hijack
209 % every single font which might possibly be used in a presentation and replace
210 % it by something sensible. No `private' ``lcmr'' to replace ``cmr'' any more
211 % - cmr is redefined no matter what. Now configures (almost) all fonts type1cm
212 % and type1ec do, plus concrete, cmbright, and euler fonts. Added options
213 % ``scale5pt'', ``scale6pt'', ``scale7pt'' to bound the design sizes of fonts
214 % used. Added options ``cmr'', ``cmss'', ``cmbright'' and ``concrete'' to
215 % choose text fonts different from lcmss. Improved handling of option
216 % incompatibilities.}
217 %
218 % \changes{v0.6a}{2003/06/02}{Removed some font warnings by selecting `silent'
219 % forms of declaration. }
220 %
221 % \changes{v0.6b}{2003/07/19}{A small change making `cmbright' AMS fonts
222 % useable before \cs{begin\{document\}}. }
223 %
224 % \changes{v0.6c}{2003/09/23}{Added the option ``cmfib''.}
225 %
226 % \changes{v0.6d}{2004/07/27}{Moved to dtx format. No other code changes.}
227 %
228 % \begin{macrocode}
229 \RequirePackage{ifthen}
230 % \end{macrocode}
231 %
232 % \subsection{Options and general setup}
233 %
234 % Text fonts. The default is to use ``slifonts'' (lcmss).
235 % \begin{macrocode}
236 \newcommand{\TPSFTextfont}{lcmss}
237 % \end{macrocode}
238 % The option cmr sets ``computer modern roman'' text fonts.
239 % \begin{macrocode}
240 \DeclareOption{cmr}{\renewcommand{\TPSFTextfont}{cmr}}
241 % \end{macrocode}
242 % The option cmfib sets ``computer modern roman Fibonacci'' text fonts.
243 % \begin{macrocode}
244 \DeclareOption{cmfib}{\renewcommand{\TPSFTextfont}{cmfib}}
245 % \end{macrocode}
246 % The option cmss sets ``computer modern roman sans serif'' text fonts.
247 % \begin{macrocode}
248 \DeclareOption{cmss}{\renewcommand{\TPSFTextfont}{cmss}}
249 % \end{macrocode}
250 % The option cmbright sets ``computer modern bright'' text fonts.
251 % \begin{macrocode}
252 \DeclareOption{cmbright}{\renewcommand{\TPSFTextfont}{cmbr}}
253 % \end{macrocode}
254 % The option concrete sets ``concrete'' text fonts.
255 % \begin{macrocode}
256 \DeclareOption{concrete}
257 {%
258 \renewcommand{\TPSFTextfont}{ccr}%
259 \renewcommand{\TPSFMathfont}{ccm}%
260 \renewcommand{\TPSFOperatorfont}{ccr}%
261 }
262 % \end{macrocode}
263 %
264 % \subsubsection{Design size selection}
265 %
266 % Usually design sizes are `bounded' by 8pt, that is, if
267 % an 8pt (or lower) design size of a font exists, it will be scaled to larger
268 % sizes even if larger design sizes exist, to enhance readability at low
269 % resolutions. For sizes below 8pt, smaller design sizes are used if available.
270 % \begin{macrocode}
271 \providecommand{\TPSFMaxDesignSize}{8}
272 % \end{macrocode}
273 % The option scale5pt causes scaled 5pt design sizes to be used wherever
274 % possible.
275 % \begin{macrocode}
276 \DeclareOption{scale5pt}{\renewcommand{\TPSFMaxDesignSize}{5}}
277 % \end{macrocode}
278 % The option scale6pt causes scaled 6pt design sizes to be used wherever
279 % possible (for font sizes above 6pt).
280 % \begin{macrocode}
281 \DeclareOption{scale6pt}{\renewcommand{\TPSFMaxDesignSize}{6}}
282 % \end{macrocode}
283 % The option scale7pt causes scaled 7pt design sizes to be used wherever
284 % possible (for font sizes above 7pt).
285 % \begin{macrocode}
286 \DeclareOption{scale7pt}{\renewcommand{\TPSFMaxDesignSize}{7}}
287 % \end{macrocode}
288 %
289 % lcmss text fonts have very high `small letters', making normal-size fonts look
290 % small and difficult to read.
291 % The option scaleupmath (scaleuptt) will scale up math (typewriter) fonts
292 % slightly so they harmonize a little more with text fonts.
293 % These options do not make much sense with other text fonts, hence a warning
294 % (but no error message) is generated to remind the user they might have
295 % overlooked something.
296 % \begin{macrocode}
297 \newboolean{TPSFscaleup}
298 \DeclareOption{scaleupmath}
299 {%
300 \providecommand\TPSFmathscale{1.15}%
301 \providecommand\TPSFeulerscale{1.1}%
302 \providecommand\TPSFcmbrscale{1.1}%
303 \setboolean{TPSFscaleup}{true}%
304 }
305
306 \DeclareOption{scaleuptt}
307 {\providecommand\TPSFttscale{1.2}\setboolean{TPSFscaleup}{true}}
308 % \end{macrocode}
309 %
310 % \subsubsection{Math fonts}
311 %
312 % Because the availability of different fonts in different encodings is not
313 % really homogenous, we differentiate between the font used for Operators (plus
314 % upper case greek, digits and some symbols) and the font used for other
315 % symbols. In some cases (math extension font), the choices are quite limited
316 % anyway.
317 %
318 % The default is to use cmr for operators and such and the standard cmm and
319 % relatives for symbols.
320 % \begin{macrocode}
321 \newcommand{\TPSFMathfont}{cmm}
322
323 \newcommand{\TPSFOpF@cmm}{cmrm}
324
325 \newcommand{\TPSFOpF@ccm}{ccr}
326
327 \newcommand{\TPSFOperatorfont}{cmr}
328 % \end{macrocode}
329 % The option textops makes the operator font follow the text font.
330 % \begin{macrocode}
331 \newboolean{TPSFtextops}
332 \DeclareOption{textops}{\setboolean{TPSFtextops}{true}}
333 % \end{macrocode}
334 % The option eulermath sets euler math fonts (slightly adapted from the eulervm
335 % package to match lcmss better).
336 % When using this option, the operator font automatically follows the text
337 % font.
338 % \begin{macrocode}
339 \DeclareOption{eulermath}
340 {\renewcommand{\TPSFMathfont}{euler}\setboolean{TPSFtextops}{true}}
341 % \end{macrocode}
342 % The option eulerdigits works only in conjunction with eulermath and sets the
343 % euler-digits option of the eulervm package.
344 % \begin{macrocode}
345 \newboolean{TPSFeulerdigits}
346 \DeclareOption{eulerdigits}
347 {%
348 \setboolean{TPSFeulerdigits}{true}%
349 \PassOptionsToPackage{euler-digits}{eulervm}%
350 }
351 % \end{macrocode}
352 % The option cmbrightmath sets cmbright math fonts (slightly adapted from the
353 % cmbright package to match lcmss better).
354 % \begin{macrocode}
355 \DeclareOption{cmbrightmath}{\renewcommand{\TPSFMathfont}{cmbrm}}
356
357 \newcommand{\TPSFOpF@cmbrm}{cmbrmt}
358 % \end{macrocode}
359
360 %
361 % \subsubsection{Process options}
362 % \begin{macrocode}
363 \ProcessOptions
364 % \end{macrocode}
365 %
366 % Option postprocessing.
367 %
368 % Parameters |\TPSFmathscale| and such can be (re)defined from outside the
369 % tpslifonts package to adjust scaling. If any of these scaling parameters is
370 % defined before the tpslifonts package is loaded, there is no need to give the
371 % respective option.
372 % Here, we test whether the parameters have been provided (either by defining
373 % them independently or by giving one of the ``scaleup...'' options), and define
374 % the `real' scaling parameter for font definition accordingly.
375 % \begin{macrocode}
376 \@ifundefined{TPSFmathscale}
377 {\let\TPSFmathscale\@undefined\let\mathscale@TPSF\empty}
378 {\def\mathscale@TPSF{[\TPSFmathscale]}}
379
380 \@ifundefined{TPSFeulerscale}
381 {\let\TPSFeulerscale\@undefined\let\eulerscale@TPSF\empty}
382 {\def\eulerscale@TPSF{[\TPSFeulerscale]}}
383
384 \@ifundefined{TPSFcmbrscale}
385 {\let\TPSFcmbrscale\@undefined\let\cmbrscale@TPSF\empty}
386 {\def\cmbrscale@TPSF{[\TPSFcmbrscale]}}
387
388 \@ifundefined{TPSFttscale}
389 {\let\TPSFttscale\@undefined\let\ttscale@TPSF\empty}
390 {\def\ttscale@TPSF{[\TPSFttscale]}}
391 % \end{macrocode}
392 %
393 % As mentioned above, the ``scaleup...'' options make sense really only if lcmss
394 % text fonts are used. Otherwise, we give a warning.
395 % \begin{macrocode}
396 \ifthenelse{\boolean{TPSFscaleup}\and\not\equal{\TPSFTextfont}{lcmss}}
397 {%
398 \PackageWarning{tpslifonts}
399 {Using the ``scaleup'' Options makes sense only\MessageBreak
400 when lcmss text fonts are used.\MessageBreak
401 Watch closely whether the results of scaling math\MessageBreak
402 and/or typewriter fonts together with ``\TPSFTextfont''\MessageBreak
403 text fonts is what you intended to achieve.%
404 }%
405 }
406 {}
407 % \end{macrocode}
408 %
409 % We need to set the math operator font corresponing to the settings of the
410 % TPSFtextops switch, the text and math fonts.
411 % \begin{macrocode}
412 \ifthenelse{\boolean{TPSFtextops}}
413 {\let\TPSFOperatorfont\TPSFTextfont}
414 {%
415 \expandafter\let\expandafter\TPSFOperatorfont
416 \csname TPSFOpF@\TPSFMathfont\endcsname
417 }
418 % \end{macrocode}
419 %
420 % The cmbright package also sets text fonts, so if cmbright math is requested,
421 % we load the cmbright package first and later overwrite the text font settings
422 % (if no cmbright text fonts were requested).
423 % \begin{macrocode}
424 \ifthenelse{\equal{\TPSFMathfont}{cmbrm}}
425 {%
426 \RequirePackage[standard-baselineskips]{cmbright}%
427 }
428 % \end{macrocode}
429 %
430 % \subsection{Font shape configuration}
431
432 % We need a couple of macros to help in configuring fonts.
433 % To increase readability in presentations, design size selection is
434 % restricted. Without any options, the largest design size used is 8pt. The
435 % options scale5pt ... scale7pt impose further constraints.
436 % Another restriction is caused by the availability of design sizes. Not all
437 % fonts exist in all design sizes. If no design size exists at all in the
438 % requested range (i.e. the font exists only in size 10), then the smallest
439 % available size has to be chosen no matter what.
440
441 % |\FilterSizes@TPSF<name>{<list>}| filters out all sizes (represented as
442 % nonnegative integer numbers) from the comma-separated <list> which are above
443 % the threshold in |\TPSFMaxDesignSize| and stores the result in the macro
444 % <name>. To avoid inconsistencies if all sizes exceed |\TPSFMaxDesignSize|, the
445 % first size is always passed.
446 % \begin{macrocode}
447 \newcommand{\FilterSizes@TPSF}[2]{\expandafter\@FilterSizes@TPSF#2,\@nil#1}
448
449 \def\@FilterSizes@TPSF#1,#2\@nil#3%
450 {%
451 \def#3{#1}%
452 \ifx\empty#2\empty\else\@@FilterSizes@TPSF#2\@nil#3\fi
453 }
454
455 \def\@@FilterSizes@TPSF#1,#2\@nil#3%
456 {%
457 \ifnum#1>\TPSFMaxDesignSize\relax
458 \else
459 \expandafter\def\expandafter#3\expandafter{#3,#1}%
460 \ifx\empty#2\empty\else\@@FilterSizes@TPSF#2\@nil#3\fi
461 \fi
462 }
463 % \end{macrocode}
464 % \begin{macro}{\DeclareFontShape@TPSF}
465 % |\DeclareFontShape@TPSF[<scale>]|\\
466 % | {<enc>}{<fam>}{<ser>}{<shp>}{<name>}{<sizes>}|
467 % declares a font with presentation-friendly design size selection (which
468 % means all design sizes above |\TPSFMaxDesignSize| are filtered out. The actually
469 % existing design sizes have to be provided in |<sizes>| as a comma-separated list
470 % of numbers. If |<s>| is one of the sizes, it is expected that the corresponding
471 % font name can be constructed as |<name><s>|.
472 % If the optional argument |<scale>| is given, it has to be of the form
473 % |[<factor>]|, where |<factor>| specifies the scaling of the font (see the
474 % options ``scaleupmath'' and ``scaleuptt'' above).
475 % \begin{macrocode}
476 \newcommand{\DeclareFontShape@TPSF}[7][]
477 {%
478 \FilterSizes@TPSF\sizes@TPSF{#7}%
479 \let\sizedecl@TPSF\empty
480 \def\fontname@TPSF{#6}%
481 \def\scale@TPSF{#1}%
482 \expandafter\parsesizes@TPSF\sizes@TPSF,,\@nil
483 \DeclareFontShape{#2}{#3}{#4}{#5}{\sizedecl@TPSF}{}%
484 }
485 % \end{macrocode}
486 % \end{macro}
487 % \begin{macrocode}
488
489 \def\parsesizes@TPSF#1,#2\@nil
490 {%
491 \let\prevsize@TPSF\empty
492 \def\currsize@TPSF{#1}%
493 \@parsesizes@TPSF#2\@nil
494 }
495
496 \def\@parsesizes@TPSF#1,#2\@nil
497 {%
498 \edef\sizedecl@TPSF{\sizedecl@TPSF\space<\prevsize@TPSF-#1>s*\scale@TPSF \fontname@TPSF\currsize@TPSF}%
499 \def\currsize@TPSF{#1}%
500 \let\prevsize@TPSF\currsize@TPSF
501 \ifx\currsize@TPSF\empty\else\@parsesizes@TPSF#2\@nil\fi
502 }
503 % \end{macrocode}
504 %
505 % \subsection{Declaration of font shapes}
506 %
507 % The following is copied more or less verbatim from type1cm.sty,
508 % type1ec.sty, and other sources of font definitions for e.g. cmbright fonts.
509 % For fonts following the usual naming conventions, we use
510 % |\DeclareFontShape@TPSF| instead of |\DeclareFontShape| to implement design size
511 % bounding.
512 % For T1 ec fonts, the same is achieved by appropriate redefinition of
513 % |\EC@family|.
514 % \begin{macrocode}
515 \begingroup
516 \nfss@catcodes
517 % \end{macrocode}
518 %
519 % \subsubsection{Text fonts for OT1 encoding}
520 %
521 % computer modern roman.
522 % \begin{macrocode}
523 \DeclareFontFamily{OT1}{cmr}{\hyphenchar\font=45}
524
525 \DeclareFontShape@TPSF{OT1}{cmr}{m}{n}{cmr}{5,6,7,8,9,10,12,17}
526
527 \DeclareFontShape@TPSF{OT1}{cmr}{m}{sl}{cmsl}{8,9,10,12}
528
529 \DeclareFontShape@TPSF{OT1}{cmr}{m}{it}{cmti}{7,8,9,10,12}
530
531 \DeclareFontShape@TPSF{OT1}{cmr}{m}{sc}{cmcsc}{9,10}
532
533 \DeclareFontShape@TPSF{OT1}{cmr}{m}{ui}{cmu}{10}
534
535 \DeclareFontShape@TPSF{OT1}{cmr}{b}{n}{cmb}{10}
536
537 \DeclareFontShape@TPSF{OT1}{cmr}{bx}{n}{cmbx}{5,6,7,8,9,10,12}
538
539 \DeclareFontShape@TPSF{OT1}{cmr}{bx}{sl}{cmbxsl}{10}
540
541 \DeclareFontShape@TPSF{OT1}{cmr}{bx}{it}{cmbxti}{10}
542
543 \DeclareFontShape{OT1}{cmr}{bx}{ui}
544 {<->ssub * cmr/m/ui}{}
545
546 \DeclareFontFamily{OT1}{cmfr}{\hyphenchar\font=45}
547
548 \DeclareFontShape{OT1}{cmfr}{m}{n}{%
549 <->s* cmff10
550 }{}
551 \DeclareFontShape{OT1}{cmfr}{m}{it}{
552 <->s* cmfi10
553 }{}
554
555 \DeclareFontFamily{OT1}{cmdh}{\hyphenchar\font=45}
556
557 \DeclareFontShape{OT1}{cmdh}{m}{n}{
558 <->s* cmdunh10
559 }{}
560
561 \DeclareFontFamily{OT1}{cmfib}{\hyphenchar\font=45}
562
563 \DeclareFontShape{OT1}{cmfib}{m}{n}{
564 <->s* cmfib8
565 }{}
566
567 \DeclareFontShape{OT1}{cmfib}{m}{sl}
568 {<->ssub * cmr/m/sl}{}
569
570 \DeclareFontShape{OT1}{cmfib}{m}{it}
571 {<->ssub * cmr/m/it}{}
572
573 \DeclareFontShape{OT1}{cmfib}{m}{sc}
574 {<->ssub * cmr/m/sc}{}
575
576 \DeclareFontShape{OT1}{cmfib}{m}{ui}
577 {<->ssub * cmr/m/ui}{}
578
579 \DeclareFontShape{OT1}{cmfib}{b}{n}
580 {<->ssub * cmr/b/n}{}
581
582 \DeclareFontShape{OT1}{cmfib}{bx}{n}
583 {<->ssub * cmr/bx/n}{}
584
585 \DeclareFontShape{OT1}{cmfib}{bx}{sl}
586 {<->ssub * cmr/bx/sl}{}
587
588 \DeclareFontShape{OT1}{cmfib}{bx}{it}
589 {<->ssub * cmr/bx/it}{}
590
591 \DeclareFontShape{OT1}{cmfib}{bx}{ui}
592 {<->ssub * cmr/m/ui}{}
593 % \end{macrocode}
594 % computer modern sans serif.
595 % \begin{macrocode}
596 \DeclareFontFamily{OT1}{cmss}{\hyphenchar\font=45}
597
598 \DeclareFontShape@TPSF{OT1}{cmss}{m}{n}{cmss}{8,9,10,12,17}
599
600 \DeclareFontShape{OT1}{cmss}{m}{it}
601 {<->sub*cmss/m/sl}{}
602
603 \DeclareFontShape@TPSF{OT1}{cmss}{m}{sl}{cmssi}{8,9,10,12,17}
604
605 \DeclareFontShape{OT1}{cmss}{m}{sc}
606 {<->sub*cmr/m/sc}{}
607
608 \DeclareFontShape{OT1}{cmss}{m}{ui}
609 {<->sub*cmr/m/ui}{}
610
611 \DeclareFontShape@TPSF{OT1}{cmss}{sbc}{n}{cmssdc}{10}
612
613 \DeclareFontShape@TPSF{OT1}{cmss}{bx}{n}{cmssbx}{10}
614
615 \DeclareFontShape{OT1}{cmss}{bx}{ui}
616 {<->sub*cmr/bx/ui}{}
617 % \end{macrocode}
618 % slide computer modern sans serif.
619 % \begin{macrocode}
620 \DeclareFontFamily{OT1}{lcmss}{\hyphenchar\font45 }
621
622 \DeclareFontShape@TPSF{OT1}{lcmss}{m}{n}{lcmss}{8}
623
624 \DeclareFontShape@TPSF{OT1}{lcmss}{m}{In}{ilcmss}{8}
625
626 \DeclareFontShape@TPSF{OT1}{lcmss}{m}{sl}{lcmssi}{8}
627
628 \DeclareFontShape@TPSF{OT1}{lcmss}{m}{Isl}{ilcmssi}{8}
629
630 \DeclareFontShape{OT1}{lcmss}{m}{it}{%
631 <->sub*lcmss/m/sl}{}
632
633 \DeclareFontShape{OT1}{lcmss}{m}{Iit}{%
634 <->sub*lcmss/m/Isl}{}
635
636 \DeclareFontShape@TPSF{OT1}{lcmss}{b}{n}{lcmssb}{8}
637
638 \DeclareFontShape@TPSF{OT1}{lcmss}{b}{In}{ilcmssb}{8}
639
640 \DeclareFontShape{OT1}{lcmss}{bx}{n}{%
641 <->sub*lcmss/b/n}{}
642
643 \DeclareFontShape{OT1}{lcmss}{bx}{In}{%
644 <->sub*lcmss/b/In}{}
645
646 \DeclareFontShape{OT1}{lcmss}{m}{ui}{%
647 <->sub*cmr/m/ui}{}
648
649 \DeclareFontShape{OT1}{lcmss}{bx}{ui}{%
650 <->sub*cmr/m/ui}{}
651 % \end{macrocode}
652 % computer modern bright
653 % \begin{macrocode}
654 \DeclareFontFamily{OT1}{cmbr}{\hyphenchar\font45}
655
656 \DeclareFontShape@TPSF{OT1}{cmbr}{m}{n}{cmbr}{8,9,10,17}
657
658 \DeclareFontShape@TPSF{OT1}{cmbr}{m}{sl}{cmbrsl}{8,9,10,17}
659
660 \DeclareFontShape{OT1}{cmbr}{m}{it}{%
661 <->ssub*cmbr/m/sl%
662 }{}
663
664 \DeclareFontShape{OT1}{cmbr}{b}{n}{%
665 <->ssub*cmbr/bx/n%
666 }{}
667
668 \DeclareFontShape@TPSF{OT1}{cmbr}{bx}{n}{cmbrbx}{10}
669 % \end{macrocode}
670 % concrete roman
671 % \begin{macrocode}
672 \DeclareFontFamily{OT1}{ccr}{\hyphenchar\font45 }
673
674 \DeclareFontShape@TPSF{OT1}{ccr}{m}{n}{ccr}{5,6,7,8,9,10}
675
676 \DeclareFontShape@TPSF{OT1}{ccr}{m}{sl}{ccsl}{9,10}
677
678 \DeclareFontShape@TPSF{OT1}{ccr}{m}{it}{ccti}{10}
679
680 \DeclareFontShape@TPSF{OT1}{ccr}{m}{sc}{cccsc}{10}
681
682 \DeclareFontShape{OT1}{ccr}{bx}{n} {<-> ssub * cmss/bx/n}{}
683 \DeclareFontShape{OT1}{ccr}{bx}{sl}{<-> ssub * cmss/bx/sl}{}
684 \DeclareFontShape{OT1}{ccr}{bx}{it}{<-> ssub * cmss/bx/it}{}
685 % \DeclareFontShape{OT1}{ccr}{bx}{n} {<-> ssub * cmr/bx/n}{}
686 % \DeclareFontShape{OT1}{ccr}{bx}{sl}{<-> ssub * cmr/bx/sl}{}
687 % \DeclareFontShape{OT1}{ccr}{bx}{it}{<-> ssub * cmr/bx/it}{}
688 \DeclareFontShape{OT1}{ccr}{sbc}{n} {<-> ssub * cmss/sbc/n}{}
689 \DeclareFontShape{OT1}{ccr}{sbc}{sl}{<-> ssub * cmss/sbc/n}{}
690 \DeclareFontShape{OT1}{ccr}{sbc}{it}{<-> ssub * cmss/sbc/n}{}
691
692 \DeclareFontShape@TPSF{OT1}{ccr}{c}{sl}{ccslc}{9}
693 % \end{macrocode}
694 %
695 % \subsubsection{Text fonts for T1 encoding}
696 %
697 % \begin{macrocode}
698 \let\ecscale@TPSF\empty
699
700 \ifcase\TPSFMaxDesignSize
701 \or\or\or\or\or
702 \providecommand{\EC@family}[5]{%
703 \DeclareFontShape{#1}{#2}{#3}{#4}{%
704 <->s*\ecscale@TPSF#50500%
705 }{}}
706 \or
707 \providecommand{\EC@family}[5]{%
708 \DeclareFontShape{#1}{#2}{#3}{#4}{%
709 <-6>s*\ecscale@TPSF#50500%
710 <6->s*\ecscale@TPSF#50600%
711 }{}}
712 \or
713 \providecommand{\EC@family}[5]{%
714 \DeclareFontShape{#1}{#2}{#3}{#4}{%
715 <-6>s*\ecscale@TPSF#50500%
716 <6-7>s*\ecscale@TPSF#50600%
717 <7->s*\ecscale@TPSF#50700%
718 }{}}
719 \or
720 \providecommand{\EC@family}[5]{%
721 \DeclareFontShape{#1}{#2}{#3}{#4}{%
722 <-6>s*\ecscale@TPSF#50500%
723 <6-7>s*\ecscale@TPSF#50600%
724 <7-8>s*\ecscale@TPSF#50700%
725 <8->s*\ecscale@TPSF#50800%
726 }{}}
727 \or
728 \providecommand{\EC@family}[5]{%
729 \DeclareFontShape{#1}{#2}{#3}{#4}{%
730 <-6>s*\ecscale@TPSF#50500%
731 <6-7>s*\ecscale@TPSF#50600%
732 <7-8>s*\ecscale@TPSF#50700%
733 <8-9>s*\ecscale@TPSF#50800%
734 <9->s*\ecscale@TPSF#50900%
735 }{}}
736 \or
737 \providecommand{\EC@family}[5]{%
738 \DeclareFontShape{#1}{#2}{#3}{#4}{%
739 <-6>s*\ecscale@TPSF#50500%
740 <6-7>s*\ecscale@TPSF#50600%
741 <7-8>s*\ecscale@TPSF#50700%
742 <8-9>s*\ecscale@TPSF#50800%
743 <9-10>s*\ecscale@TPSF#50900%
744 <10->s*\ecscale@TPSF#51000%
745 }{}}
746 \or
747 \providecommand{\EC@family}[5]{%
748 \DeclareFontShape{#1}{#2}{#3}{#4}{%
749 <-6>s*\ecscale@TPSF#50500%
750 <6-7>s*\ecscale@TPSF#50600%
751 <7-8>s*\ecscale@TPSF#50700%
752 <8-9>s*\ecscale@TPSF#50800%
753 <9-10>s*\ecscale@TPSF#50900%
754 <10-10.95>s*\ecscale@TPSF#51000%
755 <10.95->s*\ecscale@TPSF#51095%
756 }{}}
757 \or
758 \providecommand{\EC@family}[5]{%
759 \DeclareFontShape{#1}{#2}{#3}{#4}{%
760 <-6>s*\ecscale@TPSF#50500%
761 <6-7>s*\ecscale@TPSF#50600%
762 <7-8>s*\ecscale@TPSF#50700%
763 <8-9>s*\ecscale@TPSF#50800%
764 <9-10>s*\ecscale@TPSF#50900%
765 <10-10.95>s*\ecscale@TPSF#51000%
766 <10.95-12>s*\ecscale@TPSF#51095%
767 <12->s*\ecscale@TPSF#51200%
768 }{}}
769 \fi
770 % \end{macrocode}
771 % european computer modern roman.
772 % \begin{macrocode}
773 \input{t1cmr.fd}
774
775 \input{t1cmfr.fd}
776
777 \input{t1cmdh.fd}
778
779 \input{t1cmfib.fd}
780
781 \DeclareFontShape{T1}{cmfib}{m}{it}
782 {<->ssub * cmr/m/it}{}
783
784 \DeclareFontShape{T1}{cmfib}{m}{sc}
785 {<->ssub * cmr/m/sc}{}
786
787 \DeclareFontShape{T1}{cmfib}{m}{ui}
788 {<->ssub * cmr/m/ui}{}
789
790 \DeclareFontShape{T1}{cmfib}{b}{n}
791 {<->ssub * cmr/b/n}{}
792
793 \DeclareFontShape{T1}{cmfib}{bx}{n}
794 {<->ssub * cmr/bx/n}{}
795
796 \DeclareFontShape{T1}{cmfib}{bx}{sl}
797 {<->ssub * cmr/bx/sl}{}
798
799 \DeclareFontShape{T1}{cmfib}{bx}{it}
800 {<->ssub * cmr/bx/it}{}
801
802 \DeclareFontShape{T1}{cmfib}{bx}{ui}
803 {<->ssub * cmr/m/ui}{}
804 % \end{macrocode}
805 % european computer modern roman sans serif.
806 % \begin{macrocode}
807 \input{t1cmss.fd}
808
809 \DeclareFontShape@TPSF{T1}{cmss}{sbc}{n}{ecssdc}{10}
810 % \end{macrocode}
811 % european slide computer modern sans serif.
812 % \begin{macrocode}
813 \DeclareFontFamily{T1}{lcmss}{}
814 \DeclareFontShape@TPSF{T1}{lcmss}{m}{n}{eclq}{8}
815
816 \DeclareFontShape@TPSF{T1}{lcmss}{m}{In}{ieclq}{8}
817
818 \DeclareFontShape@TPSF{T1}{lcmss}{m}{sl}{ecli}{8}
819
820 \DeclareFontShape@TPSF{T1}{lcmss}{m}{Isl}{iecli}{8}
821
822 \DeclareFontShape{T1}{lcmss}{m}{it}{%
823 <->sub*lcmss/m/sl}{}
824
825 \DeclareFontShape{T1}{lcmss}{m}{Iit}{%
826 <->sub*lcmss/m/Isl}{}
827
828 \DeclareFontShape@TPSF{T1}{lcmss}{bx}{n}{eclb}{8}
829
830 \DeclareFontShape@TPSF{T1}{lcmss}{bx}{In}{ieclb}{8}
831
832 \DeclareFontShape@TPSF{T1}{lcmss}{bx}{sl}{eclo}{8}
833
834 \DeclareFontShape@TPSF{T1}{lcmss}{bx}{Isl}{ieclo}{8}
835
836 \DeclareFontShape{T1}{lcmss}{bx}{it}{%
837 <->sub*lcmss/bx/sl}{}
838
839 \DeclareFontShape{T1}{lcmss}{bx}{Iit}{%
840 <->sub*lcmss/bx/Isl}{}
841
842 \DeclareFontShape{T1}{lcmss}{b}{n}{%
843 <->sub*lcmss/bx/n}{}
844
845 \DeclareFontShape{T1}{lcmss}{m}{ui}{%
846 <->sub*cmr/m/ui}{}
847
848 \DeclareFontShape{T1}{lcmss}{bx}{ui}{%
849 <->sub*cmr/m/ui}{}
850 % \end{macrocode}
851 % european computer modern bright
852 % \begin{macrocode}
853 \DeclareFontFamily{T1}{cmbr}{}
854
855 \DeclareFontShape@TPSF{T1}{cmbr}{m}{n}{ebmr}{8,9,10,17}
856
857 \DeclareFontShape@TPSF{T1}{cmbr}{m}{sl}{ebmo}{8,9,10,17}
858
859 \DeclareFontShape{T1}{cmbr}{m}{it}{%
860 <->ssub*cmbr/m/sl%
861 }{}
862
863 \DeclareFontShape@TPSF{T1}{cmbr}{sb}{n}{ebsr}{8,9,10,17}
864
865 \DeclareFontShape@TPSF{T1}{cmbr}{sb}{sl}{ebso}{8,9,10,17}
866
867 \DeclareFontShape{T1}{cmbr}{sb}{it}{%
868 <->ssub*cmbr/sb/sl%
869 }{}
870
871 \DeclareFontShape{T1}{cmbr}{b}{n}{%
872 <->ssub*cmbr/bx/n%
873 }{}
874
875 \DeclareFontShape{T1}{cmbr}{bx}{n}{%
876 <->sub*cmbr/sb/n%
877 }{}
878 % \end{macrocode}
879 % european concrete roman
880 % \begin{macrocode}
881 \DeclareFontFamily{T1}{ccr}{}
882
883 \DeclareFontShape@TPSF{T1}{ccr}{m}{n}{eorm}{5,6,7,8,9,10}
884
885 \DeclareFontShape@TPSF{T1}{ccr}{m}{sl}{eosl}{5,6,7,8,9,10}
886
887 \DeclareFontShape@TPSF{T1}{ccr}{m}{it}{eoti}{10}
888
889 \DeclareFontShape@TPSF{T1}{ccr}{m}{sc}{eocc}{10}
890
891 \DeclareFontShape{T1}{ccr}{bx}{n}{%
892 <->ssub*cmss/bx/n}{}
893
894 \DeclareFontShape{T1}{ccr}{bx}{sl}{%
895 <->ssub*cmss/bx/sl}{}
896
897 \DeclareFontShape{T1}{ccr}{bx}{it}{%
898 <->ssub*cmss/bx/it}{}
899
900 % \DeclareFontShape{T1}{ccr}{bx}{n}{%
901 % <->ssub*cmr/bx/n}{}
902
903 % \DeclareFontShape{T1}{ccr}{bx}{sl}{%
904 % <->ssub*cmr/bx/sl}{}
905
906 % \DeclareFontShape{T1}{ccr}{bx}{it}{%
907 % <->ssub*cmr/bx/it}{}
908
909 \DeclareFontShape{T1}{ccr}{sbc}{n}{%
910 <->ssubf*ecssdc10}{}
911 % \end{macrocode}
912 %
913 % \subsection{Typewriter fonts for OT1 encoding}
914 %
915 % computer modern typewriter.
916 % \begin{macrocode}
917 \DeclareFontFamily{OT1}{cmtt}{\hyphenchar\font\m@ne}
918
919 \DeclareFontShape@TPSF[\ttscale@TPSF]{OT1}{cmtt}{m}{n}{cmtt}{8,9,10,12}
920
921 \DeclareFontShape@TPSF[\ttscale@TPSF]{OT1}{cmtt}{m}{it}{cmitt}{10}
922
923 \DeclareFontShape@TPSF[\ttscale@TPSF]{OT1}{cmtt}{m}{sl}{cmsltt}{10}
924
925 \DeclareFontShape@TPSF[\ttscale@TPSF]{OT1}{cmtt}{m}{sc}{cmtcsc}{10}
926
927 \DeclareFontShape{OT1}{cmtt}{m}{ui}
928 {<->sub * cmtt/m/it}{}
929
930 \DeclareFontShape{OT1}{cmtt}{bx}{n}
931 {<->sub * cmtt/m/n}{}
932
933 \DeclareFontShape{OT1}{cmtt}{bx}{it}
934 {<->sub * cmtt/m/it}{}
935
936 \DeclareFontShape{OT1}{cmtt}{bx}{ui}
937 {<->sub * cmtt/m/it}{}
938 % \end{macrocode}
939 % `Slides' computer modern typewriter exists only for compatibility with T1
940 % encoding.
941 % \begin{macrocode}
942 \DeclareFontFamily{OT1}{lcmtt}{\hyphenchar\font\m@ne}
943
944 \DeclareFontShape@TPSF[\ttscale@TPSF]{OT1}{lcmtt}{m}{n}{cmtt}{8,9,10,12}
945
946 \DeclareFontShape@TPSF[\ttscale@TPSF]{OT1}{lcmtt}{m}{it}{cmitt}{10}
947
948 \DeclareFontShape@TPSF[\ttscale@TPSF]{OT1}{lcmtt}{m}{sl}{cmsltt}{10}
949
950 \DeclareFontShape@TPSF[\ttscale@TPSF]{OT1}{lcmtt}{m}{sc}{cmtcsc}{10}
951
952 \DeclareFontShape{OT1}{lcmtt}{m}{ui}
953 {<->sub * lcmtt/m/it}{}
954
955 \DeclareFontShape{OT1}{lcmtt}{bx}{n}
956 {<->sub * lcmtt/m/n}{}
957
958 \DeclareFontShape{OT1}{lcmtt}{bx}{it}
959 {<->sub * lcmtt/m/it}{}
960
961 \DeclareFontShape{OT1}{lcmtt}{bx}{ui}
962 {<->sub * lcmtt/m/it}{}
963 % \end{macrocode}
964 % computer modern typewriter light.
965 % \begin{macrocode}
966 \DeclareFontFamily{OT1}{cmtl}{\hyphenchar\font\m@ne}
967
968 \DeclareFontShape{OT1}{cmtl}{m}{n}{%
969 <->s*\ttscale@TPSF cmtl10%
970 }{}
971
972 \DeclareFontShape{OT1}{cmtl}{m}{sl}{%
973 <->s*\ttscale@TPSF cmsltl10%
974 }{}
975
976 \DeclareFontShape{OT1}{cmtl}{m}{it}{<->ssub*cmtl/m/sl}{}
977 % \end{macrocode}
978 %
979 % \subsection{Typewriter fonts for T1 encoding}
980 %
981 % \begin{macrocode}
982 \ifcase\TPSFMaxDesignSize
983 \or\or\or\or\or
984 \providecommand{\EC@ttfamily}[5]{%
985 \DeclareFontShape{#1}{#2}{#3}{#4}{%
986 <->s*\ttscale@TPSF#50800%
987 }{}}
988 \or
989 \providecommand{\EC@ttfamily}[5]{%
990 \DeclareFontShape{#1}{#2}{#3}{#4}{%
991 <->s*\ttscale@TPSF#50800%
992 }{}}
993 \or
994 \providecommand{\EC@ttfamily}[5]{%
995 \DeclareFontShape{#1}{#2}{#3}{#4}{%
996 <->s*\ttscale@TPSF#50800%
997 }{}}
998 \or
999 \providecommand{\EC@ttfamily}[5]{%
1000 \DeclareFontShape{#1}{#2}{#3}{#4}{%
1001 <->s*\ttscale@TPSF#50800%
1002 }{}}
1003 \or
1004 \providecommand{\EC@ttfamily}[5]{%
1005 \DeclareFontShape{#1}{#2}{#3}{#4}{%
1006 <-9>s*\ttscale@TPSF#50800%
1007 <9->s*\ttscale@TPSF#50900%
1008 }{}}
1009 \or
1010 \providecommand{\EC@ttfamily}[5]{%
1011 \DeclareFontShape{#1}{#2}{#3}{#4}{%
1012 <-9>s*\ttscale@TPSF#50800%
1013 <9-10>s*\ttscale@TPSF#50900%
1014 <10->s*\ttscale@TPSF#51000%
1015 }{}}
1016 \or
1017 \providecommand{\EC@ttfamily}[5]{%
1018 \DeclareFontShape{#1}{#2}{#3}{#4}{%
1019 <-9>s*\ttscale@TPSF#50800%
1020 <9-10>s*\ttscale@TPSF#50900%
1021 <10-10.95>s*\ttscale@TPSF#51000%
1022 <10.95->s*\ttscale@TPSF#51095%
1023 }{}}
1024 \or
1025 \providecommand{\EC@ttfamily}[5]{%
1026 \DeclareFontShape{#1}{#2}{#3}{#4}{%
1027 <-9>s*\ttscale@TPSF#50800%
1028 <9-10>s*\ttscale@TPSF#50900%
1029 <10-10.95>s*\ttscale@TPSF#51000%
1030 <10.95-12>s*\ttscale@TPSF#51095%
1031 <12->s*\ttscale@TPSF#51200%
1032 }{}}
1033 \fi
1034 % \end{macrocode}
1035 % european computer modern typewriter.
1036 % \begin{macrocode}
1037 \input{t1cmtt.fd}
1038 % \end{macrocode}
1039 % european `Slides' computer modern typewriter. There exists \textbf{one} dedicated
1040 % font ``ecltt8'' for this setup.
1041 % \begin{macrocode}
1042 \DeclareFontFamily{T1}{lcmtt}{\hyphenchar\font\m@ne}
1043
1044 \DeclareFontShape{T1}{lcmtt}{m}{n}{%
1045 <->s*\ttscale@TPSF ecltt8%
1046 }{}
1047
1048 \DeclareFontShape{T1}{lcmtt}{m}{In}{%
1049 <->s*\ttscale@TPSF iecltt8%
1050 }{}
1051
1052 \DeclareFontShape{T1}{lcmtt}{m}{it}{%
1053 <->s*\ttscale@TPSF ecit0800%
1054 }{}
1055
1056 \DeclareFontShape{T1}{lcmtt}{m}{sl}{
1057 <->s*\ttscale@TPSF ecst0800
1058 }{}
1059
1060 \DeclareFontShape{T1}{lcmtt}{m}{sc}{
1061 <->s*\ttscale@TPSF ectc0800
1062 }{}
1063
1064 \DeclareFontShape{T1}{lcmtt}{m}{ui}
1065 {<->sub * lcmtt/m/it}{}
1066
1067 \DeclareFontShape{T1}{lcmtt}{bx}{n}
1068 {<->sub * lcmtt/m/n}{}
1069
1070 \DeclareFontShape{T1}{lcmtt}{bx}{it}
1071 {<->sub * lcmtt/m/it}{}
1072
1073 \DeclareFontShape{T1}{lcmtt}{bx}{ui}
1074 {<->sub * lcmtt/m/it}{}
1075 % \end{macrocode}
1076 % european computer modern typewriter light.
1077 % \begin{macrocode}
1078 \DeclareFontFamily{T1}{cmtl}{\hyphenchar\font\m@ne}
1079
1080 \DeclareFontShape{T1}{cmtl}{m}{n}{%
1081 <->s*\ttscale@TPSF ebtl10%
1082 }{}
1083
1084 \DeclareFontShape{T1}{cmtl}{m}{sl}{%
1085 <->s*\ttscale@TPSF ebto10%
1086 }{}
1087
1088 \DeclareFontShape{T1}{cmtl}{m}{it}{<->ssub*cmtl/m/sl}{}
1089 % \end{macrocode}
1090 %
1091 % \subsection{Typewriter fonts for mTT encoding}
1092 %
1093 % Used by cmtt.sty.
1094 % \begin{macrocode}
1095 \@ifundefined{T@mTT}{}
1096 {%
1097 \DeclareFontFamily{mTT}{cmtt}{\hyphenchar\font\m@ne}
1098 \DeclareFontShape@TPSF[\ttscale@TPSF]{mTT}{cmtt}{m}{n}{cmtt}{8,9,10,12}
1099
1100 \DeclareFontShape@TPSF[\ttscale@TPSF]{mTT}{cmtt}{m}{it}{cmitt}{10}
1101
1102 \DeclareFontShape@TPSF[\ttscale@TPSF]{mTT}{cmtt}{m}{sl}{cmsltt}{10}
1103
1104 \DeclareFontShape@TPSF[\ttscale@TPSF]{mTT}{cmtt}{m}{sc}{cmtcsc}{10}
1105
1106 \DeclareFontShape{mTT}{cmtt}{m}{ui}
1107 {<->sub * cmtt/m/it}{}
1108
1109 \DeclareFontShape{mTT}{cmtt}{bx}{n}
1110 {<->sub * cmtt/m/n}{}
1111
1112 \DeclareFontShape{mTT}{cmtt}{bx}{it}
1113 {<->sub * cmtt/m/it}{}
1114
1115 \DeclareFontShape{mTT}{cmtt}{bx}{ui}
1116 {<->sub * cmtt/m/it}{}
1117
1118 \DeclareFontFamily{mTT}{lcmtt}{\hyphenchar\font\m@ne}
1119
1120 \DeclareFontShape@TPSF[\ttscale@TPSF]{mTT}{lcmtt}{m}{n}{cmtt}{8,9,10,12}
1121
1122 \DeclareFontShape@TPSF[\ttscale@TPSF]{mTT}{lcmtt}{m}{it}{cmitt}{10}
1123
1124 \DeclareFontShape@TPSF[\ttscale@TPSF]{mTT}{lcmtt}{m}{sl}{cmsltt}{10}
1125
1126 \DeclareFontShape@TPSF[\ttscale@TPSF]{mTT}{lcmtt}{m}{sc}{cmtcsc}{10}
1127
1128 \DeclareFontShape{mTT}{lcmtt}{m}{ui}
1129 {<->sub * lcmtt/m/it}{}
1130
1131 \DeclareFontShape{mTT}{lcmtt}{bx}{n}
1132 {<->sub * lcmtt/m/n}{}
1133
1134 \DeclareFontShape{mTT}{lcmtt}{bx}{it}
1135 {<->sub * lcmtt/m/it}{}
1136
1137 \DeclareFontShape{mTT}{lcmtt}{bx}{ui}
1138 {<->sub * lcmtt/m/it}{}
1139
1140 \DeclareFontFamily{mTT}{cmtl}{\hyphenchar\font\m@ne}
1141
1142 \DeclareFontShape{mTT}{cmtl}{m}{n}{%
1143 <->s*\ttscale@TPSF cmtl10%
1144 }{}
1145
1146 \DeclareFontShape{mTT}{cmtl}{m}{sl}{%
1147 <->s*\ttscale@TPSF cmsltl10%
1148 }{}
1149
1150 \DeclareFontShape{mTT}{cmtl}{m}{it}{<->ssub*cmtl/m/sl}{}
1151 }
1152 % \end{macrocode}
1153 %
1154 % \subsection{Math fonts}
1155 %
1156 % computer modern math italic.
1157 % \begin{macrocode}
1158 \DeclareFontFamily{OML}{cmm}{\skewchar\font127}
1159
1160 \DeclareFontShape@TPSF[\mathscale@TPSF]{OML}{cmm}{m}{it}{cmmi}{5,6,7,8,9,10,12}
1161
1162 \DeclareFontShape@TPSF[\mathscale@TPSF]{OML}{cmm}{m}{Iit}{icmmi}{8}
1163
1164 \DeclareFontShape@TPSF[\mathscale@TPSF]{OML}{cmm}{b}{it}{cmmib}{5,7,10}
1165
1166 \DeclareFontShape{OML}{cmm}{bx}{it}%
1167 {<->ssub*cmm/b/it}{}
1168
1169 \DeclareFontFamily{OML}{cmr}{\skewchar\font127 }
1170 \DeclareFontShape{OML}{cmr}{m}{n}
1171 {<-> ssub * cmm/m/it}{}
1172 \DeclareFontShape{OML}{cmr}{m}{it}
1173 {<-> ssub * cmm/m/it}{}
1174 \DeclareFontShape{OML}{cmr}{m}{sl}
1175 {<-> ssub * cmm/m/it}{}
1176 \DeclareFontShape{OML}{cmr}{m}{sc}
1177 {<-> ssub * cmm/m/it}{}
1178 \DeclareFontShape{OML}{cmr}{bx}{n}
1179 {<-> ssub * cmm/b/it}{}
1180 \DeclareFontShape{OML}{cmr}{bx}{it}
1181 {<-> ssub * cmm/b/it}{}
1182 \DeclareFontShape{OML}{cmr}{bx}{sl}
1183 {<-> ssub * cmm/b/it}{}
1184 \DeclareFontShape{OML}{cmr}{bx}{sc}
1185 {<-> ssub * cmm/b/it}{}
1186
1187 \DeclareFontFamily{OT1}{cmrm}{\hyphenchar\font=45}
1188
1189 \DeclareFontShape@TPSF[\mathscale@TPSF]{OT1}{cmrm}{m}{n}{cmr}{5,6,7,8,9,10,12,17}
1190
1191 \DeclareFontShape@TPSF[\mathscale@TPSF]{OT1}{cmrm}{m}{it}{cmti}{7,8,9,10,12}
1192
1193 \DeclareFontShape@TPSF[\mathscale@TPSF]{OT1}{cmrm}{bx}{n}{cmbx}{5,6,7,8,9,10,12}
1194
1195 \DeclareFontShape@TPSF[\mathscale@TPSF]{OT1}{cmrm}{bx}{it}{cmbxti}{10}
1196
1197 {%
1198 \let\ecscale@TPSF\mathscale@TPSF
1199
1200 \DeclareFontFamily{T1}{cmrm}{}
1201
1202 \EC@family{T1}{cmrm}{m}{n}{ecrm}
1203
1204 \EC@family{T1}{cmrm}{m}{it}{ecti}
1205
1206 \EC@family{T1}{cmrm}{bx}{n}{ecbx}
1207
1208 \EC@family{T1}{cmrm}{bx}{it}{ecbi}
1209 }
1210
1211 \DeclareFontFamily{OMS}{cmsy}{\skewchar\font48}
1212
1213 \DeclareFontShape@TPSF[\mathscale@TPSF]{OMS}{cmsy}{m}{n}{cmsy}{5,6,7,8,9,10}
1214
1215 \DeclareFontShape@TPSF[\mathscale@TPSF]{OMS}{cmsy}{b}{n}{cmbsy}{5,7,10}
1216
1217 \DeclareFontShape@TPSF[\mathscale@TPSF]{OMS}{cmsy}{m}{In}{icmsy}{8}
1218
1219 \DeclareFontFamily{OMS}{cmr}{\skewchar\font48 }
1220 \DeclareFontShape{OMS}{cmr}{m}{n}
1221 {<-> ssub * cmsy/m/n}{}
1222 \DeclareFontShape{OMS}{cmr}{m}{it}
1223 {<-> ssub * cmsy/m/n}{}
1224 \DeclareFontShape{OMS}{cmr}{m}{sl}
1225 {<-> ssub * cmsy/m/n}{}
1226 \DeclareFontShape{OMS}{cmr}{m}{sc}
1227 {<-> ssub * cmsy/m/n}{}
1228 \DeclareFontShape{OMS}{cmr}{bx}{n}
1229 {<-> ssub * cmsy/b/n}{}
1230 \DeclareFontShape{OMS}{cmr}{bx}{it}
1231 {<-> ssub * cmsy/b/n}{}
1232 \DeclareFontShape{OMS}{cmr}{bx}{sl}
1233 {<-> ssub * cmsy/b/n}{}
1234 \DeclareFontShape{OMS}{cmr}{bx}{sc}
1235 {<-> ssub * cmsy/b/n}{}
1236
1237 \DeclareFontFamily{OMX}{cmex}{}
1238
1239 \DeclareFontShape@TPSF[\mathscale@TPSF]{OMX}{cmex}{m}{n}{cmex}{7,10}
1240 % \end{macrocode}
1241 % Euler fonts (eulervm style).
1242 % \begin{macrocode}
1243 \DeclareFontFamily{U}{zeur}{\skewchar \font =127}
1244
1245 \DeclareFontShape@TPSF[\eulerscale@TPSF]{U}{zeur}{m}{n}{zeurm}{5,7,10}
1246
1247 \DeclareFontShape@TPSF[\eulerscale@TPSF]{U}{zeur}{b}{n}{zeurb}{5,7,10}
1248
1249 \DeclareFontShape{U}{zeur}{bx}{n}{<->ssub * zeur/b/n}{}
1250
1251 \DeclareFontFamily{U}{zeus}{\skewchar \font =176}
1252
1253 \DeclareFontShape@TPSF[\eulerscale@TPSF]{U}{zeus}{m}{n}{zeusm}{5,7,10}
1254
1255 \DeclareFontShape@TPSF[\eulerscale@TPSF]{U}{zeus}{b}{n}{zeusb}{5,7,10}
1256
1257 \DeclareFontShape{U}{zeus}{bx}{n}{<->ssub * zeus/b/n}{}
1258
1259 \DeclareFontFamily{U}{zeuex}{}
1260
1261 \DeclareFontShape{U}{zeuex}{m}{n}{
1262 <->s* \eulerscale@TPSF zeuex10
1263 }{}
1264 % \end{macrocode}
1265 % computer modern bright math slanted.
1266 % \begin{macrocode}
1267 \DeclareFontFamily{OML}{cmbrm}{\skewchar\font 127}
1268
1269 \DeclareFontShape@TPSF[\cmbrscale@TPSF]{OML}{cmbrm}{m}{it}{cmbrmi}{8,9,10}
1270
1271 \DeclareFontShape@TPSF[\cmbrscale@TPSF]{OML}{cmbrm}{b}{it}{cmbrmb}{10}
1272
1273 \DeclareFontFamily{OML}{cmbr}{\skewchar\font 127}
1274
1275 \DeclareFontShape{OML}{cmbr}{m}{it}{<->ssub*cmbrm/m/it}{}
1276
1277 \DeclareFontShape{OML}{cmbr}{sb}{it}{<->ssub*cmbrm/b/it}{}
1278
1279 \DeclareFontShape{OML}{cmbr}{bx}{it}{<->ssub*cmbrm/b/it}{}
1280
1281 \DeclareFontFamily{OT1}{cmbrmt}{\hyphenchar\font45}
1282
1283 \DeclareFontShape@TPSF[\cmbrscale@TPSF]{OT1}{cmbrmt}{m}{n}{cmbr}{8,9,10,17}
1284
1285 \DeclareFontShape@TPSF[\cmbrscale@TPSF]{OT1}{cmbrmt}{m}{sl}{cmbrsl}{8,9,10,17}
1286
1287 \DeclareFontShape{OT1}{cmbrmt}{m}{it}{%
1288 <->ssub*cmbrmt/m/sl%
1289 }{}
1290
1291 \DeclareFontShape@TPSF[\cmbrscale@TPSF]{OT1}{cmbrmt}{bx}{n}{cmbrbx}{10}
1292
1293 \DeclareFontFamily{T1}{cmbrmt}{}
1294
1295 \DeclareFontShape@TPSF[\cmbrscale@TPSF]{T1}{cmbrmt}{m}{n}{ebmr}{8,9,10,17}
1296
1297 \DeclareFontShape@TPSF[\cmbrscale@TPSF]{T1}{cmbrmt}{m}{sl}{ebmo}{8,9,10,17}
1298
1299 \DeclareFontShape{T1}{cmbrmt}{m}{it}{%
1300 <->ssub*cmbrmt/m/sl%
1301 }{}
1302
1303 \DeclareFontShape@TPSF[\cmbrscale@TPSF]{T1}{cmbrmt}{sb}{n}{ebsr}{8,9,10,17}
1304
1305 \DeclareFontShape@TPSF[\cmbrscale@TPSF]{T1}{cmbrmt}{sb}{sl}{ebso}{8,9,10,17}
1306
1307 \DeclareFontShape{T1}{cmbrmt}{sb}{it}{%
1308 <->ssub*cmbrmt/sb/sl%
1309 }{}
1310
1311 \DeclareFontShape{T1}{cmbrmt}{bx}{n}{%
1312 <->sub*cmbrmt/sb/n%
1313 }{}
1314
1315 \DeclareFontShape{T1}{cmbrmt}{bx}{it}{%
1316 <->sub*cmbrmt/sb/it%
1317 }{}
1318
1319 \DeclareFontFamily{OMS}{cmbrs}{\skewchar\font 48}
1320
1321 \DeclareFontShape@TPSF[\cmbrscale@TPSF]{OMS}{cmbrs}{m}{n}{cmbrsy}{8,9,10}
1322
1323 \DeclareFontShape{OMS}{cmbrs}{m}{b}{<->ssub*cmbrs/m/n}{}
1324
1325 \DeclareFontFamily{OMS}{cmbr}{\skewchar\font 48}
1326
1327 \DeclareFontShape{OMS}{cmbr}{m}{n}{<->ssub*cmbrs/m/n}{}
1328
1329 \DeclareFontShape{OMS}{cmbr}{m}{b}{<->ssub*cmbrs/m/n}{}
1330 % \end{macrocode}
1331 % Concrete Math Italic
1332 % \begin{macrocode}
1333 \DeclareFontFamily{OML}{ccm}{\skewchar\font127 }
1334
1335 \DeclareFontShape@TPSF[\mathscale@TPSF]{OML}{ccm}{m}{it}{xccmi}{5,6,7,8,9,10}
1336
1337 \DeclareFontShape{OML}{ccm}{b}{it}{<-> ssub * cmm/b/it}{}
1338
1339 \DeclareFontShape{OML}{ccm}{c}{it}{<9>\mathscale@TPSF ccmic9}{}
1340
1341 \DeclareFontFamily{OML}{ccr}{\skewchar\font127 }
1342
1343 \DeclareFontShape{OML}{ccr}{m}{it} {<->ssub * ccm/m/it}{}
1344
1345 \DeclareFontShape{OML}{ccr}{bx}{it} {<->ssub * ccm/b/it}{}
1346
1347 \DeclareFontShape{OML}{ccr}{sbc}{it}{<->ssub * ccm/m/it}{}
1348
1349 \DeclareFontFamily{OMS}{ccsy}{\skewchar\font48 }
1350
1351 \DeclareFontShape@TPSF[\mathscale@TPSF]{OMS}{ccsy}{m}{n}{xccsy}{5,6,7,8,9,10}
1352
1353 \DeclareFontShape{OMS}{ccsy}{b}{n}{<-> ssub * cmsy/b/n}{}
1354
1355 \DeclareFontFamily{OMS}{ccr}{\skewchar\font48 }
1356
1357 \DeclareFontShape{OMS}{ccr}{m}{n} {<->ssub * ccsy/m/n}{}
1358
1359 \DeclareFontShape{OMS}{ccr}{bx}{n} {<->ssub * ccsy/b/n}{}
1360
1361 \DeclareFontShape{OMS}{ccr}{sbc}{n}{<->ssub * ccsy/m/n}{}
1362
1363 \DeclareFontFamily{OMX}{ccex}{}
1364
1365 \DeclareFontShape{OMX}{ccex}{m}{n}{<->s*\mathscale@TPSF xccex10}{}
1366 % \end{macrocode}
1367 % LaTeX symbols
1368 % \begin{macrocode}
1369 \DeclareFontFamily{U}{lasy}{}
1370
1371 \DeclareFontShape@TPSF[\mathscale@TPSF]{U}{lasy}{m}{n}{lasy}{5,6,7,8,9,10}
1372
1373 \DeclareFontShape{U}{lasy}{b}{n}{
1374 <->s* \mathscale@TPSF lasyb10
1375 }{}
1376 % \end{macrocode}
1377 % AMS fonts
1378 % \begin{macrocode}
1379 \DeclareFontFamily{U}{msa}{}
1380
1381 \DeclareFontFamily{U}{msb}{}
1382
1383 \ifthenelse{\equal{\TPSFMathfont}{cmbrm}}
1384 {%
1385 % \end{macrocode}
1386 % AMS fonts should be available immediately, so they can be used in say panels.
1387 % \begin{macrocode}
1388 \DeclareFontShape@TPSF[\cmbrscale@TPSF]{U}{msa}{m}{n}{cmbras}{8,9,10}%
1389 \DeclareFontShape@TPSF[\cmbrscale@TPSF]{U}{msb}{m}{n}{cmbrbs}{8,9,10}%
1390 % \end{macrocode}
1391 % On the other hand, the cmbright package redeclares them |\AtBeginDocument|, so
1392 % we need to overwrite that change as well.
1393 % \begin{macrocode}
1394 \AtBeginDocument
1395 {%
1396 \DeclareFontShape@TPSF[\cmbrscale@TPSF]{U}{msa}{m}{n}{cmbras}{8,9,10}%
1397 \DeclareFontShape@TPSF[\cmbrscale@TPSF]{U}{msb}{m}{n}{cmbrbs}{8,9,10}%
1398 }%
1399 }
1400 {%
1401 \DeclareFontShape@TPSF[\mathscale@TPSF]{U}{msa}{m}{n}{msam}{5,7,10}
1402
1403 \DeclareFontShape@TPSF[\mathscale@TPSF]{U}{msb}{m}{n}{msbm}{5,7,10}
1404 }
1405
1406 \DeclareFontFamily{U}{euex}{}
1407
1408 \DeclareFontShape{U}{euex}{m}{n}{
1409 <->s* \eulerscale@TPSF euex10
1410 }{}
1411
1412 \DeclareFontFamily{U}{euf}{}
1413
1414 \DeclareFontShape@TPSF[\eulerscale@TPSF]{U}{euf}{m}{n}{eufm}{5,7,10}
1415
1416 \DeclareFontShape@TPSF[\eulerscale@TPSF]{U}{euf}{b}{n}{eufb}{5,7,10}
1417
1418 \DeclareFontFamily{U}{eur}{\skewchar\font'177}
1419
1420 \DeclareFontShape@TPSF[\eulerscale@TPSF]{U}{eur}{m}{n}{eurm}{5,7,10}
1421
1422 \DeclareFontShape@TPSF[\eulerscale@TPSF]{U}{eur}{b}{n}{eurb}{5,7,10}
1423
1424 \DeclareFontFamily{U}{eus}{\skewchar\font'60}
1425
1426 \DeclareFontShape@TPSF[\eulerscale@TPSF]{U}{eus}{m}{n}{eusm}{5,7,10}
1427
1428 \DeclareFontShape@TPSF[\eulerscale@TPSF]{U}{eus}{b}{n}{eusb}{5,7,10}
1429 % \end{macrocode}
1430 % St Mary's Road symbol font.
1431 % \begin{macrocode}
1432 \DeclareFontFamily{U}{stmry}{}
1433
1434 \DeclareFontShape@TPSF[\mathscale@TPSF]{U}{stmry}{m}{n}{stmary}{5,6,7,8,9,10}
1435 % \end{macrocode}
1436 % Wasy symbol font.
1437 % \begin{macrocode}
1438 \DeclareFontFamily{U}{wasy}{}
1439
1440 \DeclareFontShape@TPSF[\mathscale@TPSF]{U}{wasy}{m}{n}{wasy}{5,6,7,8,9,10}
1441
1442 \DeclareFontShape{U}{wasy}{b}{n}
1443 { <->s*\mathscale@TPSF wasyb10
1444 }{}
1445 % \end{macrocode}
1446 % formal script math symbols
1447 % \begin{macrocode}
1448 \DeclareFontFamily{U}{rsfs}{\skewchar\font127 }
1449
1450 \DeclareFontShape@TPSF[\mathscale@TPSF]{U}{rsfs}{m}{n}{rsfs}{5,7,10}
1451 % \end{macrocode}
1452 % double stroke computer modern
1453 % \begin{macrocode}
1454 \DeclareFontFamily{U}{dsrom}{}
1455
1456 \DeclareFontShape@TPSF[\mathscale@TPSF]{U}{dsrom}{m}{n}{dsrom}{8,10,12}
1457
1458 \DeclareFontFamily{U}{dsss}{}
1459
1460 \DeclareFontShape@TPSF[\mathscale@TPSF]{U}{dsss}{m}{n}{dsss}{8,10,12}
1461
1462 \endgroup
1463 % \end{macrocode}
1464
1465 % Just to make sure in case these have been defined before...
1466 % \begin{macrocode}
1467 \expandafter\let\csname OT1/cmr/m/n/10\endcsname\relax
1468 \expandafter\let\csname OT1/cmr/m/n/10.95\endcsname\relax
1469 \expandafter\let\csname OT1/cmr/m/n/12\endcsname\relax
1470 \expandafter\let\csname T1/cmr/m/n/10\endcsname\relax
1471 \expandafter\let\csname T1/cmr/m/n/10.95\endcsname\relax
1472 \expandafter\let\csname T1/cmr/m/n/12\endcsname\relax
1473 % \end{macrocode}
1474 %
1475 % \subsection{Font shape selection}
1476 %
1477 % \subsubsection{Set text fonts}
1478 % \begin{macrocode}
1479 \newcommand{\setlcmssTextFonts@TPSF}
1480 {%
1481 \renewcommand{\familydefault}{\sfdefault}% Main text font is sans serif.
1482 \renewcommand{\sfdefault}{lcmss}% Choose lcmss as sans serif font.
1483 \renewcommand{\ttdefault}{lcmtt}% Typewriter font lcmtt.
1484 }
1485
1486 \newcommand{\setcmrTextFonts@TPSF}
1487 {%
1488 \renewcommand{\familydefault}{\rmdefault}% Main text font is roman.
1489 \renewcommand{\rmdefault}{cmr}% Choose cmr as roman font.
1490 \renewcommand{\ttdefault}{cmtt}% Typewriter font.
1491 }
1492
1493 \newcommand{\setcmfibTextFonts@TPSF}
1494 {%
1495 \renewcommand{\familydefault}{\rmdefault}% Main text font is roman.
1496 \renewcommand{\rmdefault}{cmfib}% Choose cmfib as roman font.
1497 \renewcommand{\ttdefault}{cmtt}% Typewriter font.
1498 }
1499
1500 \newcommand{\setcmssTextFonts@TPSF}
1501 {%
1502 \renewcommand{\familydefault}{\sfdefault}% Main text font is sans serif.
1503 \renewcommand{\sfdefault}{cmss}% Choose cmss as sans serif font.
1504 \renewcommand{\ttdefault}{cmtt}% Typewriter font.
1505 }
1506
1507 \newcommand{\setcmbrTextFonts@TPSF}
1508 {%
1509 \renewcommand{\familydefault}{\sfdefault}% Main text font is sans serif.
1510 \renewcommand{\sfdefault}{cmbr}% Choose cmss as sans serif font.
1511 \renewcommand{\ttdefault}{cmtl}% Light Typewriter font.
1512 }
1513
1514 \newcommand{\setccrTextFonts@TPSF}
1515 {%
1516 \renewcommand{\familydefault}{\rmdefault}% Main text font is roman.
1517 \renewcommand{\rmdefault}{ccr}% Choose ccr as roman font.
1518 \renewcommand{\ttdefault}{cmtt}% Typewriter font.
1519 }
1520
1521 \csname set\TPSFTextfont TextFonts@TPSF\endcsname
1522 % \end{macrocode}
1523 %
1524 % \subsubsection{Configure Math fonts}
1525 %
1526 % \begin{macrocode}
1527 \newcommand{\setcmmMathFonts@TPSF}
1528 {%
1529 \SetSymbolFont{letters} {normal}{OML}{cmm} {m}{it}
1530 \SetSymbolFont{symbols} {normal}{OMS}{cmsy}{m}{n}
1531 \SetSymbolFont{largesymbols}{normal}{OMX}{cmex}{m}{n}
1532 \SetSymbolFont{letters} {bold} {OML}{cmm} {b}{it}
1533 \SetSymbolFont{symbols} {bold} {OMS}{cmsy}{b}{n}
1534 }
1535
1536 \newcommand{\setccmMathFonts@TPSF}
1537 {%
1538 \SetSymbolFont{letters} {normal}{OML}{ccm} {m}{it}
1539 \SetSymbolFont{symbols} {normal}{OMS}{ccsy}{m}{n}
1540 \SetSymbolFont{largesymbols}{normal}{OMX}{ccex}{m}{n}
1541 \SetSymbolFont{letters} {bold} {OML}{ccm} {b}{it}
1542 \SetSymbolFont{symbols} {bold} {OMS}{ccsy}{b}{n}
1543 }
1544
1545 \newcommand{\seteulerMathFonts@TPSF}
1546 {%
1547 \RequirePackage{eulervm}
1548 \def\tpc@ncel##1##2{\m@th\ooalign{$\hfil##1/\hfil$\crcr$##1##2$}}
1549 \def\neq{\mathrel{\m@th\mathpalette\tpc@ncel=}}
1550 \DeclareSymbolFont{auxletters}{OML}{cmm}{m}{it}
1551 \SetSymbolFont{auxletters}{bold}{OML}{cmm}{b}{it}
1552 \DeclareMathSymbol{<}{\mathrel}{auxletters}{"3C}
1553 \DeclareMathSymbol{>}{\mathrel}{auxletters}{"3E}
1554 }
1555
1556 \newcommand{\setcmbrmMathFonts@TPSF}
1557 {%
1558 \SetSymbolFont{letters} {normal}{OML}{cmbrm} {m}{it}
1559 \SetSymbolFont{symbols} {normal}{OMS}{cmbrs}{m}{n}
1560 \SetSymbolFont{largesymbols}{normal}{OMX}{cmex}{m}{n}
1561 \SetSymbolFont{letters} {bold} {OML}{cmbrm} {b}{it}
1562 \SetSymbolFont{symbols} {bold}{OMS}{cmbrs}{b}{n}
1563 }
1564
1565 \csname set\TPSFMathfont MathFonts@TPSF\endcsname
1566 % \end{macrocode}
1567 %
1568 % \subsubsection{Configure Operator fonts}
1569 %
1570 % \begin{macrocode}
1571 \ifthenelse{\equal{\TPSFMathfont}{euler}}
1572 {%
1573 \SetSymbolFont{operators}{normal}{\encodingdefault}{\TPSFOperatorfont}{m}{n}%
1574 \SetSymbolFont{operators}{bold}{\encodingdefault}{\TPSFOperatorfont}{bx}{n}%
1575 }
1576 {%
1577 \SetSymbolFont{operators}{normal}{OT1}{\TPSFOperatorfont}{m}{n}%
1578 \SetSymbolFont{operators}{bold}{OT1}{\TPSFOperatorfont}{bx}{n}%
1579 }
1580 % \end{macrocode}
1581 %
1582 % \subsubsection{Alphabets for ``text inside math''}
1583 %
1584 % \begin{macrocode}
1585 \DeclareMathAlphabet {\mathbf}{\encodingdefault}{\TPSFOperatorfont}{bx}{n}
1586 \DeclareMathAlphabet {\mathsf}{\encodingdefault}{\sfdefault}{m}{n}
1587 \DeclareMathAlphabet {\mathit}{\encodingdefault}{\TPSFOperatorfont}{m}{it}
1588 \DeclareMathAlphabet {\mathtt}{\encodingdefault}{\ttdefault}{m}{n}
1589 \SetMathAlphabet\mathsf{bold}{\encodingdefault}{\sfdefault}{bx}{n}
1590 \SetMathAlphabet\mathit{bold}{\encodingdefault}{\TPSFOperatorfont}{bx}{it}
1591 \SetMathAlphabet{\mathtt}{bold}{\encodingdefault}{\ttdefault}{bx}{n}
1592 % \end{macrocode}
1593 %
1594 % |\oldstylenums| follow in style the math font setting.
1595 % \begin{macrocode}
1596 \def\oldstylenums#1{%
1597 \begingroup
1598 \spaceskip\fontdimen\tw@\font
1599 \usefont{OML}{\TPSFMathfont}{\f@series}{it}%
1600 \mathgroup\symletters #1%
1601 \endgroup
1602 }
1603 % \end{macrocode}
1604 %
1605 % \subsubsection{Configure doublestroke fonts}
1606 %
1607 % \begin{macrocode}
1608 \@ifpackageloaded{dsfont}
1609 {%
1610 \ifthenelse{\equal{\TPSFOperatorfont}{cmr}\or\equal{\TPSFOperatorfont}{cmrm}}
1611 {%
1612 \DeclareMathAlphabet{\mathds}{U}{dsrom}{m}{n}
1613 }
1614 {%
1615 \DeclareMathAlphabet{\mathds}{U}{dsss}{m}{n}
1616 }
1617 }{}%
1618 % \end{macrocode}
1619 %
1620 % \Finale
1621 \endinput