| 1 |
%\CheckSum{368} |
| 2 |
% |
| 3 |
% \iffalse |
| 4 |
% |
| 5 |
% File `cmbright.dtx'. |
| 6 |
% Copyright (c) 1994--2005 Walter Schmidt |
| 7 |
% |
| 8 |
% This work may be distributed and/or modified under the |
| 9 |
% conditions of the LaTeX Project Public License, either version 1.3 |
| 10 |
% of this license or (at your option) any later version. |
| 11 |
% The latest version of this license is in |
| 12 |
% http://www.latex-project.org/lppl.txt |
| 13 |
% and version 1.3 or later is part of all distributions of LaTeX |
| 14 |
% version 2003/12/01 or later. |
| 15 |
% |
| 16 |
% This work has the LPPL maintenance status "maintained". |
| 17 |
% |
| 18 |
% This Current Maintainer of this work is Walter Schmidt |
| 19 |
% |
| 20 |
% This work consists of the files cmbright.dtx and cmbright.ins |
| 21 |
% \fi |
| 22 |
% |
| 23 |
% \iffalse |
| 24 |
% |
| 25 |
%<cm>\ProvidesFile{ot1cmbr.fd} |
| 26 |
%<ec>\ProvidesFile{t1cmbr.fd} |
| 27 |
%<ts1cmbr>\ProvidesFile{ts1cmbr.fd} |
| 28 |
%<ot1cmtl>\ProvidesFile{ot1cmtl.fd} |
| 29 |
%<t1cmtl>\ProvidesFile{t1cmtl.fd} |
| 30 |
%<ts1cmtl>\ProvidesFile{ts1cmtl.fd} |
| 31 |
%<omlcmbrm>\ProvidesFile{omlcmbrm.fd} |
| 32 |
%<omscmbrs>\ProvidesFile{omscmbrs.fd} |
| 33 |
%<omlcmbr>\ProvidesFile{omlcmbr.fd} |
| 34 |
%<omscmbr>\ProvidesFile{omscmbr.fd} |
| 35 |
%<package>\ProvidesPackage{cmbright} |
| 36 |
%<*driver> |
| 37 |
\ProvidesFile{cmbright.drv} |
| 38 |
%</driver> |
| 39 |
[2005/04/13 v8.1 (WaS)] |
| 40 |
% |
| 41 |
%<*driver> |
| 42 |
\documentclass[11pt]{ltxdoc} |
| 43 |
\OnlyDescription |
| 44 |
\CodelineNumbered |
| 45 |
\usepackage[enlarged-baselineskips]{cmbright} |
| 46 |
\usepackage{exscale} |
| 47 |
\usepackage{manfnt} |
| 48 |
\newcommand{\danger}{\marginpar[\hfill\textdbend]{\textdbend\hfill}} |
| 49 |
\usepackage{mflogo} |
| 50 |
\newcommand\Lopt[1]{\texttt{#1}} |
| 51 |
\let\Lpack\Lopt |
| 52 |
\parindent1em |
| 53 |
\leftmargini=2em |
| 54 |
\leftmarginii=2em |
| 55 |
\leftmarginiii=2em |
| 56 |
\leftmarginiv=2em |
| 57 |
\leftmargin\leftmargini |
| 58 |
\labelwidth\leftmargin \advance\labelwidth by -\labelsep |
| 59 |
\begin{document} |
| 60 |
\DocInput{cmbright.dtx} |
| 61 |
\end{document} |
| 62 |
%</driver> |
| 63 |
% \fi |
| 64 |
% |
| 65 |
% \GetFileInfo{cmbright.drv} |
| 66 |
% \DeleteShortVerb{\|} |
| 67 |
% |
| 68 |
% \title{Using the CM Bright typeface with \LaTeX} |
| 69 |
% \author{Walter Schmidt\thanks{{\ttfamily [email protected]}}} |
| 70 |
% \date{(\fileversion{} -- \filedate)} |
| 71 |
% \maketitle |
| 72 |
% |
| 73 |
% \section{The CM Bright fonts} |
| 74 |
% `Computer Modern Bright' is a sans serif typeface family, |
| 75 |
% based on Donald Knuth's `Computer Modern'. |
| 76 |
% It comprises OT1, T1 and TS1 encoded text fonts of various |
| 77 |
% shapes as well as all the fonts necessary for mathematical |
| 78 |
% typesetting, including the AMS symbols. |
| 79 |
% |
| 80 |
% CM~Bright has been designed as a well legible standalone |
| 81 |
% font. It is `lighter' and less obtrusive than CM~Sans~Serif, which, |
| 82 |
% in contrast, is more appropriate for markup purposes within |
| 83 |
% a CM~Roman environment. |
| 84 |
% |
| 85 |
% Together with CM~Bright there comes a family of typewriter |
| 86 |
% fonts, named `CM Typwewriter Light', which look better in |
| 87 |
% combination with CM~Bright than the ordinary \texttt{cmtt} fonts would do. |
| 88 |
% |
| 89 |
% The present document is typeset using the CM~Bright and CM~Typewriter Light |
| 90 |
% typefaces. |
| 91 |
% Samples of mathematical formulas are provided in section~\ref{sec:samples}. |
| 92 |
% |
| 93 |
% \section{The macro package `cmbright'} |
| 94 |
% |
| 95 |
% \subsection{Basics} |
| 96 |
% The macro package \Lpack{cmbright} |
| 97 |
% supports the use of the typeface family CM~Bright with \LaTeX: |
| 98 |
% Loading the package |
| 99 |
% \begin{verse} |
| 100 |
% \verb+\usepackage{cmbright}+ |
| 101 |
% \end{verse} |
| 102 |
% effects the following: |
| 103 |
% \begin{itemize} |
| 104 |
% \item The default sans serif font family for typesetting text and math |
| 105 |
% is changed to \texttt{cmbr} (CM~Bright). |
| 106 |
% \item |
| 107 |
% The sans serif font family is made the default one for the whole document. |
| 108 |
% \item |
| 109 |
% The packages \Lpack{amsfonts} or \Lpack{amssymb}, when loaded additionally, |
| 110 |
% will use the `CM~Bright' versions of the AMS symbol fonts. |
| 111 |
% \item |
| 112 |
% The default typewriter font family is changed to \texttt{cmtl} |
| 113 |
% (CM Typewriter Light). |
| 114 |
% \end{itemize} |
| 115 |
% |
| 116 |
% \subsection{Line spacing} |
| 117 |
% Because of the large x-height of the CM~Bright typeface, it is often necessary to enlarge |
| 118 |
% the line spacing, as compared with the default setting of the standard \LaTeX\ document |
| 119 |
% classes. |
| 120 |
% By default, the package \Lpack{cmbright} |
| 121 |
% increases the line spacing (\verb+\baselineskip+) for the font sizes 8--12\,pt |
| 122 |
% to approx. $1.25 \times \mathrm{size}$. |
| 123 |
% However, this behavior may cause obscure problems. |
| 124 |
% particularly \danger in conjunction with other macro packages or with `moving arguments'. |
| 125 |
% Furhermore, in narrow columns no changes to the default line spacing may be necessary |
| 126 |
% at all. |
| 127 |
% |
| 128 |
% To stop the package from altering the line spacing, it can be loaded with the option |
| 129 |
% \Lopt{standard-baselineskips}, |
| 130 |
% You may still influence the line spacing yourself, for instance, |
| 131 |
% by using the command \verb+\linespread{...}+ in the preamble. |
| 132 |
% |
| 133 |
% \subsection{Greek letters in math mode} |
| 134 |
% When the macro package is loaded using the option \Lopt{slantedGreek}, |
| 135 |
% uppercase Greek letters in math mode will, by default, be slanted. |
| 136 |
% Regardless of the option, the new commands |
| 137 |
% \cmd{\upGamma}, \cmd{\upDelta} \dots \cmd{\upOmega} provide |
| 138 |
% upright uppercase Greek letters: $\upGamma, \upDelta\dots \upOmega$ still. |
| 139 |
% |
| 140 |
% \subsection{Bold type in math mode} |
| 141 |
% A new mathematical alphabet \cmd{\mathbold} provides bold slanted |
| 142 |
% letters, inluding uppercase and lowercase Greek. |
| 143 |
% Emboldening of complete formulas throgh the command \cmd{\mathversion} is, |
| 144 |
% however, not possible, \danger because because there is no comprehensive set of bold math fonts. |
| 145 |
% |
| 146 |
% \subsection{Scaling of the `large' math symbols} |
| 147 |
% In order to achieve proper scaling of the `large' math symbols, it is recommended |
| 148 |
% to load the standard package \Lpack{exscale} in addition to \Lpack{cmbright}. |
| 149 |
% This is redundant, if you are using the package \Lpack{amsmath}, which |
| 150 |
% includes the required functionality, too. |
| 151 |
% |
| 152 |
% |
| 153 |
% \section{NFSS classification of the fonts} |
| 154 |
% Table~\ref{tab:nfss} lists the font series and shapes available in |
| 155 |
% the CM~Bright and CM Typewriter Light families. Notice, that |
| 156 |
% \begin{itemize} |
| 157 |
% \item the \texttt{bx} series of the text fonts is available with sizes |
| 158 |
% of 9\,pt and above only; |
| 159 |
% \item there is no special CM~Bright font for the `extensible math symbols', |
| 160 |
% so that OMX/cmex is used instead; |
| 161 |
% \item |
| 162 |
% the font definitions for the AMS fonts are part of the package \Lpack{cmbright}; |
| 163 |
% there are no separate\texttt{.fd} files for them. |
| 164 |
% \end{itemize} |
| 165 |
% |
| 166 |
% \begin{table} |
| 167 |
% \caption{NFSS classification of the fonts} |
| 168 |
% \label{tab:nfss} |
| 169 |
% \begin{center} |
| 170 |
% \begin{tabular}{|l|l|l|l|} |
| 171 |
% \hline |
| 172 |
% \textbf{encoding} & \textbf{family} & \textbf{series} & \textbf{shape(s)}\\ |
| 173 |
% \hline\hline |
| 174 |
% \multicolumn{4}{|c|}{\textit{CM~Bright}}\\ \hline |
| 175 |
% OT1, T1, TS1 & cmbr & m & n, sl \\ \hline |
| 176 |
% T1, TS1 & cmbr & sb & n, sl\\ \hline |
| 177 |
% OT1, T1, TS1 & cmbr & bx & n\\ \hline \hline |
| 178 |
% \multicolumn{4}{|c|}{\textit{CM Typewriter Light}}\\ \hline |
| 179 |
% OT1, T1, TS1 & cmtl & m & n, sl\\ \hline \hline |
| 180 |
% \multicolumn{4}{|c|}{\textit{CM~Bright Math}}\\ \hline |
| 181 |
% OML & cmbrm & m, b & it \\ \hline |
| 182 |
% OMS & cmbrs & m & n \\ \hline \hline |
| 183 |
% \multicolumn{4}{|c|}{\textit{CM~Bright AMS A, B}}\\ \hline |
| 184 |
% U & msa, msb & m &n\\ \hline |
| 185 |
% \end{tabular} |
| 186 |
% \end{center} |
| 187 |
% \end{table} |
| 188 |
% |
| 189 |
% ^^A \clearpage |
| 190 |
% \section{Sample Formulas} |
| 191 |
% \label{sec:samples} |
| 192 |
% \subsubsection*{From the \MF\ book, p.\,298} |
| 193 |
% [...] If $n > 2$, the identity |
| 194 |
% \[ |
| 195 |
% t[u_1,\dots,u_n] = t\bigl[t[u_1,\dots,u_{n_1}], t[u_2,\dots,u_n]\bigr] |
| 196 |
% \] |
| 197 |
% defines $t[u_1,\dots,u_n]$ recursively, and it can be shown that the alternative definition |
| 198 |
% \[ |
| 199 |
% t[u_1,\dots,u_n] = t\bigl[t[u_1,u_2],\dots,t[u_{n-1},u_n]\bigr] |
| 200 |
% \] |
| 201 |
% gives the same result. Indeed, we have |
| 202 |
% \[ |
| 203 |
% t[u_1,\dots,u_n] = \sum_{k=1}^n{{n-1} \choose {k-1}} (1-t)^{n-k}t^{k-1}u_k\,\mbox{,} |
| 204 |
% \] |
| 205 |
% a Bernstein polynomial of order $n-1$. |
| 206 |
% |
| 207 |
% \subsubsection*{From the \MF\ book, p.\,59} |
| 208 |
% \[ |
| 209 |
% \frac{x_1 + 20}{x_2 - 20} + \sqrt{a^2 - \frac{2}{3}\sqrt b} |
| 210 |
% \] |
| 211 |
% |
| 212 |
% \subsubsection*{From the \TeX\ book, exercise 19.13} |
| 213 |
% \[ |
| 214 |
% \int_{-\infty}^{+\infty} \mathrm{e}^{-x^2}\,\mathrm{d}x = \sqrt{\pi} |
| 215 |
% \] |
| 216 |
% |
| 217 |
% \StopEventually{} |
| 218 |
% |
| 219 |
% \clearpage |
| 220 |
% \section{The package code} |
| 221 |
% |
| 222 |
% We require a sufficiently recent \LaTeX. |
| 223 |
% \begin{macrocode} |
| 224 |
%<*package> |
| 225 |
\NeedsTeXFormat{LaTeX2e}[1995/06/01] |
| 226 |
% \end{macrocode} |
| 227 |
% |
| 228 |
% \subsection{Text font families} |
| 229 |
% The sans serif font family is made the default one: |
| 230 |
% \begin{macrocode} |
| 231 |
\renewcommand{\familydefault}{\sfdefault} |
| 232 |
% \end{macrocode} |
| 233 |
% CM~Bright is to be used as the default sans serif font family: |
| 234 |
% \begin{macrocode} |
| 235 |
\renewcommand{\sfdefault}{cmbr} |
| 236 |
% \end{macrocode} |
| 237 |
% |
| 238 |
% CM Typewriter Light is to be used as the default typewriter font family, |
| 239 |
% because the CM~Typewriter fonts look too dark in combination with CM~Bright: |
| 240 |
% \begin{macrocode} |
| 241 |
\renewcommand{\ttdefault}{cmtl} |
| 242 |
% \end{macrocode} |
| 243 |
% |
| 244 |
% \subsection{Mathematical fonts} |
| 245 |
% Default definitions which remain unchanged are commented out: |
| 246 |
% \begin{macrocode} |
| 247 |
\DeclareSymbolFont {operators} {OT1}{cmbr}{m}{n} |
| 248 |
\DeclareSymbolFont {letters} {OML}{cmbrm}{m}{it} |
| 249 |
\SetSymbolFont {letters}{bold} {OML}{cmbrm}{b}{it} |
| 250 |
\DeclareSymbolFont {symbols} {OMS}{cmbrs}{m}{n} |
| 251 |
% \DeclareSymbolFont {largesymbols} {OMX}{cmex}{m}{n} |
| 252 |
% |
| 253 |
% \DeclareSymbolFontAlphabet {\mathrm} {operators} |
| 254 |
% \DeclareSymbolFontAlphabet{\mathnormal} {letters} |
| 255 |
% \DeclareSymbolFontAlphabet {\mathcal} {symbols} |
| 256 |
% |
| 257 |
\DeclareMathAlphabet{\mathit} {OT1}{cmbr}{m}{sl} |
| 258 |
\DeclareMathAlphabet{\mathbf} {OT1}{cmbr}{bx}{n} |
| 259 |
\DeclareMathAlphabet{\mathtt} {OT1}{cmtl}{m}{n} |
| 260 |
% \end{macrocode} |
| 261 |
% Despite its name, \cmd{\mathrm} is not a font with serifs, |
| 262 |
% but it is, what the user expects it to be: |
| 263 |
% the upright font used, e.g.,\ for operator names. |
| 264 |
% |
| 265 |
% We make a bold slanted mathematical alphabet available: |
| 266 |
% \begin{macrocode} |
| 267 |
\DeclareMathAlphabet{\mathbold}{OML}{cmbrm}{b}{it} |
| 268 |
% \end{macrocode} |
| 269 |
% |
| 270 |
% The command \cmd{\mathbold} should act on lowercase Greek, too: |
| 271 |
% \begin{macrocode} |
| 272 |
\DeclareMathSymbol{\alpha}{\mathalpha}{letters}{11} |
| 273 |
\DeclareMathSymbol{\beta}{\mathalpha}{letters}{12} |
| 274 |
\DeclareMathSymbol{\gamma}{\mathalpha}{letters}{13} |
| 275 |
\DeclareMathSymbol{\delta}{\mathalpha}{letters}{14} |
| 276 |
\DeclareMathSymbol{\epsilon}{\mathalpha}{letters}{15} |
| 277 |
\DeclareMathSymbol{\zeta}{\mathalpha}{letters}{16} |
| 278 |
\DeclareMathSymbol{\eta}{\mathalpha}{letters}{17} |
| 279 |
\DeclareMathSymbol{\theta}{\mathalpha}{letters}{18} |
| 280 |
\DeclareMathSymbol{\iota}{\mathalpha}{letters}{19} |
| 281 |
\DeclareMathSymbol{\kappa}{\mathalpha}{letters}{20} |
| 282 |
\DeclareMathSymbol{\lambda}{\mathalpha}{letters}{21} |
| 283 |
\DeclareMathSymbol{\mu}{\mathalpha}{letters}{22} |
| 284 |
\DeclareMathSymbol{\nu}{\mathalpha}{letters}{23} |
| 285 |
\DeclareMathSymbol{\xi}{\mathalpha}{letters}{24} |
| 286 |
\DeclareMathSymbol{\pi}{\mathalpha}{letters}{25} |
| 287 |
\DeclareMathSymbol{\rho}{\mathalpha}{letters}{26} |
| 288 |
\DeclareMathSymbol{\sigma}{\mathalpha}{letters}{27} |
| 289 |
\DeclareMathSymbol{\tau}{\mathalpha}{letters}{28} |
| 290 |
\DeclareMathSymbol{\upsilon}{\mathalpha}{letters}{29} |
| 291 |
\DeclareMathSymbol{\phi}{\mathalpha}{letters}{30} |
| 292 |
\DeclareMathSymbol{\chi}{\mathalpha}{letters}{31} |
| 293 |
\DeclareMathSymbol{\psi}{\mathalpha}{letters}{32} |
| 294 |
\DeclareMathSymbol{\omega}{\mathalpha}{letters}{33} |
| 295 |
\DeclareMathSymbol{\varepsilon}{\mathalpha}{letters}{34} |
| 296 |
\DeclareMathSymbol{\vartheta}{\mathalpha}{letters}{35} |
| 297 |
\DeclareMathSymbol{\varpi}{\mathalpha}{letters}{36} |
| 298 |
\DeclareMathSymbol{\varrho}{\mathalpha}{letters}{37} |
| 299 |
\DeclareMathSymbol{\varsigma}{\mathalpha}{letters}{38} |
| 300 |
\DeclareMathSymbol{\varphi}{\mathalpha}{letters}{39} |
| 301 |
% \end{macrocode} |
| 302 |
% |
| 303 |
% The \texttt{slantedGreek} option: |
| 304 |
% \begin{macrocode} |
| 305 |
\DeclareOption{slantedGreek}{% |
| 306 |
\DeclareMathSymbol{\Gamma}{\mathalpha}{letters}{0} |
| 307 |
\DeclareMathSymbol{\Delta}{\mathalpha}{letters}{1} |
| 308 |
\DeclareMathSymbol{\Theta}{\mathalpha}{letters}{2} |
| 309 |
\DeclareMathSymbol{\Lambda}{\mathalpha}{letters}{3} |
| 310 |
\DeclareMathSymbol{\Xi}{\mathalpha}{letters}{4} |
| 311 |
\DeclareMathSymbol{\Pi}{\mathalpha}{letters}{5} |
| 312 |
\DeclareMathSymbol{\Sigma}{\mathalpha}{letters}{6} |
| 313 |
\DeclareMathSymbol{\Upsilon}{\mathalpha}{letters}{7} |
| 314 |
\DeclareMathSymbol{\Phi}{\mathalpha}{letters}{8} |
| 315 |
\DeclareMathSymbol{\Psi}{\mathalpha}{letters}{9} |
| 316 |
\DeclareMathSymbol{\Omega}{\mathalpha}{letters}{10} |
| 317 |
} |
| 318 |
% \end{macrocode} |
| 319 |
% Save the default definitions of the upright uc Greek characters |
| 320 |
% under new names: |
| 321 |
% \begin{macrocode} |
| 322 |
\let\upDelta\Delta |
| 323 |
\let\upOmega\Omega |
| 324 |
\let\upGamma\Gamma |
| 325 |
\let\upTheta\Theta |
| 326 |
\let\upLambda\Lambda |
| 327 |
\let\upXi\Xi |
| 328 |
\let\upPi\Pi |
| 329 |
\let\upSigma\Sigma |
| 330 |
\let\upUpsilon\Upsilon |
| 331 |
\let\upPhi\Phi |
| 332 |
\let\upPsi\Psi |
| 333 |
% \end{macrocode} |
| 334 |
% |
| 335 |
% \subsection{Leading} |
| 336 |
% The \verb+\baselineskip+ should be larger than with CM Roman. For text sizes, |
| 337 |
% i.e., 8--12\,pt, a value of $1.25 \times \mathrm{size}$ is recommended. |
| 338 |
% In order to overwrite the \verb+\baselineskip+ defined in the commands |
| 339 |
% like \cmd{\normalsize}, \cmd{\small}, etc., we use a trick from Frank Jensen's |
| 340 |
% package \Lpack{beton} (v1.3). |
| 341 |
% First we set up a table containing our \verb+\baselineskip+ values: |
| 342 |
% \begin{macrocode} |
| 343 |
\def\bright@baselineskip@table |
| 344 |
{<\@viiipt>10<\@ixpt>11.25<\@xpt>12.5<\@xipt>13.7<\@xiipt>15} |
| 345 |
% \end{macrocode} |
| 346 |
% All the standard \LaTeX\ size-changing commands |
| 347 |
% are defined in terms of the \cmd{\@setfontsize} macro. This |
| 348 |
% macro is called with the following three arguments: \verb+#1+~is the |
| 349 |
% size-changing command; \verb+#2+~is the font size; \verb+#3+~is the |
| 350 |
% \verb+\baselineskip+ value. We modify this macro to check |
| 351 |
% the above \verb+\bright@baselineskip@table+ for an alternative \verb+\baselineskip+ |
| 352 |
% value: |
| 353 |
% \begin{macrocode} |
| 354 |
\def\bright@setfontsize#1#2#3% |
| 355 |
{\edef\@tempa{\def\noexpand\@tempb####1<#2}% |
| 356 |
\@tempa>##2<##3\@nil{\def\bright@baselineskip@value{##2}}% |
| 357 |
\edef\@tempa{\noexpand\@tempb\bright@baselineskip@table<#2}% |
| 358 |
\@tempa><\@nil |
| 359 |
\ifx\bright@baselineskip@value\@empty |
| 360 |
\def\bright@baselineskip@value{#3}% |
| 361 |
\fi |
| 362 |
\old@setfontsize{#1}{#2}\bright@baselineskip@value} |
| 363 |
% \end{macrocode} |
| 364 |
% Finally, we save the default meaning of \cmd{\@setfontsize}\dots |
| 365 |
% \begin{macrocode} |
| 366 |
\let\old@setfontsize=\@setfontsize |
| 367 |
% \end{macrocode} |
| 368 |
% \dots and declare an option to set up tbe enlarged line space: |
| 369 |
% \begin{macrocode} |
| 370 |
\DeclareOption{enlarged-baselineskips}{% |
| 371 |
\let\@setfontsize=\bright@setfontsize} |
| 372 |
% \end{macrocode} |
| 373 |
% The \verb+\baselineskip+ values specified in the above table should be |
| 374 |
% appropriate for most purposes, i.e., for one-column material in the |
| 375 |
% normal article/report/book formats. However, it is sometimes |
| 376 |
% desirable to turn off the above automatic mechanism: |
| 377 |
% \begin{macrocode} |
| 378 |
\DeclareOption{standard-baselineskips}{% |
| 379 |
\let\@setfontsize=\old@setfontsize} |
| 380 |
% \end{macrocode} |
| 381 |
% |
| 382 |
% |
| 383 |
% \subsection{Missing symbols} |
| 384 |
% The OT1 encoded CM~Bright fonts do not contain the symbol \pounds. |
| 385 |
% We must therefore redefine the |
| 386 |
% commands \cmd{\textsterling} and \cmd{\mathsterling}, so that they use |
| 387 |
% the roman text font family: |
| 388 |
% \begin{macrocode} |
| 389 |
\DeclareTextCommand{\textsterling}{OT1}{{% |
| 390 |
\ifdim \fontdimen\@ne\font >\z@ |
| 391 |
\fontfamily{\rmdefault}\fontshape{it}\selectfont |
| 392 |
\else |
| 393 |
\fontfamily{\rmdefault}\fontshape{ui}\selectfont |
| 394 |
\fi |
| 395 |
\char`\$}} |
| 396 |
% \end{macrocode} |
| 397 |
% The following is not entirely correct, because the size will be wrong |
| 398 |
% in super- or subscripts: |
| 399 |
% \begin{macrocode} |
| 400 |
\def\mathsterling{\textsl{\textsterling}} |
| 401 |
% \end{macrocode} |
| 402 |
% |
| 403 |
% \subsection{Declaring the AMS symbol fonts} |
| 404 |
% In case the package \Lpack{amsfonts} is loaded additionally, |
| 405 |
% the CM~Bright versions of the AMS symbol fonts are to be used. |
| 406 |
% The \Lpack{amsfonts} package, when loaded with the \texttt[psamsfonts] option, |
| 407 |
% will issue its own font definition commands, so we have to defer ours |
| 408 |
% after loading of the packages, so as not to let them be overwritten. |
| 409 |
% \begin{macrocode} |
| 410 |
\AtBeginDocument{% |
| 411 |
\DeclareFontFamily{U}{msa}{} |
| 412 |
\DeclareFontShape{U}{msa}{m}{n}{% |
| 413 |
<-9>cmbras8% |
| 414 |
<9-10>cmbras9% |
| 415 |
<10->cmbras10% |
| 416 |
}{} |
| 417 |
\DeclareFontFamily{U}{msb}{} |
| 418 |
\DeclareFontShape{U}{msb}{m}{n}{% |
| 419 |
<-9>cmbrbs8% |
| 420 |
<9-10>cmbrbs9% |
| 421 |
<10->cmbrbs10% |
| 422 |
}{} |
| 423 |
} |
| 424 |
% \end{macrocode} |
| 425 |
% |
| 426 |
% \subsection{Logos} |
| 427 |
% The definitions of the \TeX\ and \LaTeX\ logos must be adapted to work |
| 428 |
% with the CM Bright fonts: |
| 429 |
% \begin{macrocode} |
| 430 |
\def\TeX{T\kern-.19em\lower.5ex\hbox{E}\kern-.05emX\@} |
| 431 |
\DeclareRobustCommand{\LaTeX}{L\kern-.3em% |
| 432 |
{\sbox\z@ T% |
| 433 |
\vbox to\ht\z@{\hbox{\check@mathfonts |
| 434 |
\fontsize\sf@size\z@ |
| 435 |
\math@fontsfalse\selectfont |
| 436 |
A}% |
| 437 |
\vss}% |
| 438 |
}% |
| 439 |
\kern-.15em% |
| 440 |
\TeX} |
| 441 |
\DeclareRobustCommand{\LaTeXe}{\mbox{\m@th |
| 442 |
\if b\expandafter\@car\f@series\@nil\boldmath\fi |
| 443 |
\LaTeX\kern.15em2$_{\textstyle\varepsilon}$}} |
| 444 |
% \end{macrocode} |
| 445 |
% |
| 446 |
% \subsection{Processing the options} |
| 447 |
% \begin{macrocode} |
| 448 |
\ExecuteOptions{enlarged-baselineskips} |
| 449 |
\ProcessOptions\relax |
| 450 |
% \end{macrocode} |
| 451 |
% |
| 452 |
% \subsection{Initialization} |
| 453 |
% We ensure that any package loaded after \texttt{cmbright} |
| 454 |
% will find the (possibly) changed value of the line space, as well as |
| 455 |
% the changed default font. |
| 456 |
% \begin{macrocode} |
| 457 |
\normalfont\normalsize |
| 458 |
%</package> |
| 459 |
% \end{macrocode} |
| 460 |
% |
| 461 |
% \section{The font definition files} |
| 462 |
% |
| 463 |
% \subsection{CM~Bright, OT1 encoding} |
| 464 |
% |
| 465 |
% \begin{macrocode} |
| 466 |
%<*cm> |
| 467 |
\DeclareFontFamily{OT1}{cmbr}{\hyphenchar\font45} |
| 468 |
\DeclareFontShape{OT1}{cmbr}{m}{n}{% |
| 469 |
<-9>cmbr8% |
| 470 |
<9-10>cmbr9% |
| 471 |
<10-17>cmbr10% |
| 472 |
<17->cmbr17% |
| 473 |
}{} |
| 474 |
\DeclareFontShape{OT1}{cmbr}{m}{sl}{% |
| 475 |
<-9>cmbrsl8% |
| 476 |
<9-10>cmbrsl9% |
| 477 |
<10-17>cmbrsl10% |
| 478 |
<17->cmbrsl17% |
| 479 |
}{} |
| 480 |
\DeclareFontShape{OT1}{cmbr}{m}{it}{% |
| 481 |
<->ssub*cmbr/m/sl% |
| 482 |
}{} |
| 483 |
\DeclareFontShape{OT1}{cmbr}{b}{n}{% |
| 484 |
<->ssub*cmbr/bx/n% |
| 485 |
}{} |
| 486 |
\DeclareFontShape{OT1}{cmbr}{bx}{n}{% |
| 487 |
<-9>sub*cmbr/m/n% |
| 488 |
<9->cmbrbx10% |
| 489 |
}{} |
| 490 |
%</cm> |
| 491 |
% \end{macrocode} |
| 492 |
% |
| 493 |
% \subsection{CM~Bright, T1 encoding} |
| 494 |
% |
| 495 |
% \begin{macrocode} |
| 496 |
%<*ec> |
| 497 |
\DeclareFontFamily{T1}{cmbr}{} |
| 498 |
\DeclareFontShape{T1}{cmbr}{m}{n}{% |
| 499 |
<-9>ebmr8% |
| 500 |
<9-10>ebmr9% |
| 501 |
<10-17>ebmr10% |
| 502 |
<17->ebmr17% |
| 503 |
}{} |
| 504 |
\DeclareFontShape{T1}{cmbr}{m}{sl}{% |
| 505 |
<-9>ebmo8% |
| 506 |
<9-10>ebmo9% |
| 507 |
<10-17>ebmo10% |
| 508 |
<17->ebmo17% |
| 509 |
}{} |
| 510 |
\DeclareFontShape{T1}{cmbr}{m}{it}{% |
| 511 |
<->ssub*cmbr/m/sl% |
| 512 |
}{} |
| 513 |
\DeclareFontShape{T1}{cmbr}{sb}{n}{% |
| 514 |
<-9>ebsr8% |
| 515 |
<9-10>ebsr9% |
| 516 |
<10-17>ebsr10% |
| 517 |
<17->ebsr17% |
| 518 |
}{} |
| 519 |
\DeclareFontShape{T1}{cmbr}{sb}{sl}{% |
| 520 |
<-9>ebso8% |
| 521 |
<9-10>ebso9% |
| 522 |
<10-17>ebso10% |
| 523 |
<17->ebso17% |
| 524 |
}{} |
| 525 |
\DeclareFontShape{T1}{cmbr}{sb}{it}{% |
| 526 |
<->ssub*cmbr/sb/sl% |
| 527 |
}{} |
| 528 |
\DeclareFontShape{T1}{cmbr}{b}{n}{% |
| 529 |
<->ssub*cmbr/bx/n% |
| 530 |
}{} |
| 531 |
\DeclareFontShape{T1}{cmbr}{bx}{n}{% |
| 532 |
<-9>sub*cmbr/sb/n% |
| 533 |
<9->ebbx10% |
| 534 |
}{} |
| 535 |
%</ec> |
| 536 |
% \end{macrocode} |
| 537 |
% |
| 538 |
% \subsection{CM Typewriter Light, OT1 encoding} |
| 539 |
% |
| 540 |
% \begin{macrocode} |
| 541 |
%<*ot1cmtl> |
| 542 |
\DeclareFontFamily{OT1}{cmtl}{\hyphenchar\font\m@ne} |
| 543 |
\DeclareFontShape{OT1}{cmtl}{m}{n}{% |
| 544 |
<->cmtl10% |
| 545 |
}{} |
| 546 |
\DeclareFontShape{OT1}{cmtl}{m}{sl}{% |
| 547 |
<->cmsltl10% |
| 548 |
}{} |
| 549 |
\DeclareFontShape{OT1}{cmtl}{m}{it}{<->ssub*cmtl/m/sl}{} |
| 550 |
%</ot1cmtl> |
| 551 |
% \end{macrocode} |
| 552 |
% |
| 553 |
% \subsection{CM Typewriter Light, T1 encoding} |
| 554 |
% |
| 555 |
% \begin{macrocode} |
| 556 |
%<*t1cmtl> |
| 557 |
\DeclareFontFamily{T1}{cmtl}{\hyphenchar\font\m@ne} |
| 558 |
\DeclareFontShape{T1}{cmtl}{m}{n}{% |
| 559 |
<->ebtl10% |
| 560 |
}{} |
| 561 |
\DeclareFontShape{T1}{cmtl}{m}{sl}{% |
| 562 |
<->ebto10% |
| 563 |
}{} |
| 564 |
\DeclareFontShape{T1}{cmtl}{m}{it}{<->ssub*cmtl/m/sl}{} |
| 565 |
%</t1cmtl> |
| 566 |
% \end{macrocode} |
| 567 |
% |
| 568 |
% \subsection{CM~Bright Math Inclined, OML encoding} |
| 569 |
% |
| 570 |
% \begin{macrocode} |
| 571 |
%<*omlcmbrm> |
| 572 |
\DeclareFontFamily{OML}{cmbrm}{\skewchar\font 127} |
| 573 |
\DeclareFontShape{OML}{cmbrm}{m}{it}{% |
| 574 |
<-9>cmbrmi8% |
| 575 |
<9-10>cmbrmi9% |
| 576 |
<10->cmbrmi10% |
| 577 |
}{} |
| 578 |
\DeclareFontShape{OML}{cmbrm}{b}{it}{% |
| 579 |
<->cmbrmb10% |
| 580 |
}{} |
| 581 |
%</omlcmbrm> |
| 582 |
% \end{macrocode} |
| 583 |
% |
| 584 |
% \subsection{CM~Bright Symbols, OMS encoding} |
| 585 |
% |
| 586 |
% \begin{macrocode} |
| 587 |
%<*omscmbrs> |
| 588 |
\DeclareFontFamily{OMS}{cmbrs}{\skewchar\font 48} |
| 589 |
\DeclareFontShape{OMS}{cmbrs}{m}{n}{% |
| 590 |
<-9>cmbrsy8% |
| 591 |
<9-10>cmbrsy9% |
| 592 |
<10->cmbrsy10% |
| 593 |
}{} |
| 594 |
%</omscmbrs> |
| 595 |
% \end{macrocode} |
| 596 |
% |
| 597 |
% \subsection{CM~Bright, OML encoding} |
| 598 |
% We need this for some special tex symbols which may be taken from |
| 599 |
% the `math italic' font. |
| 600 |
% \begin{macrocode} |
| 601 |
%<*omlcmbr> |
| 602 |
\DeclareFontFamily{OML}{cmbr}{\skewchar\font 127} |
| 603 |
\DeclareFontShape{OML}{cmbr}{m}{it}{<->ssub*cmbrm/m/it}{} |
| 604 |
\DeclareFontShape{OML}{cmbr}{sb}{it}{<->ssub*cmbrm/b/it}{} |
| 605 |
\DeclareFontShape{OML}{cmbr}{bx}{it}{<->ssub*cmbrm/b/it}{} |
| 606 |
%</omlcmbr> |
| 607 |
% \end{macrocode} |
| 608 |
% |
| 609 |
% \subsection{CM~Bright, OMS encoding} |
| 610 |
% We need this for some special text symbols which may be taken from |
| 611 |
% the mathematical symbol font. |
| 612 |
% \begin{macrocode} |
| 613 |
%<*omscmbr> |
| 614 |
\DeclareFontFamily{OMS}{cmbr}{\skewchar\font 48} |
| 615 |
\DeclareFontShape{OMS}{cmbr}{m}{n}{<->ssub*cmbrs/m/n}{} |
| 616 |
%</omscmbr> |
| 617 |
% \end{macrocode} |
| 618 |
% |
| 619 |
% \subsection{CM~Bright, TS1 encoding} |
| 620 |
% |
| 621 |
% \begin{macrocode} |
| 622 |
%<*ts1cmbr> |
| 623 |
\DeclareFontFamily{TS1}{cmbr}{\hyphenchar\font\m@ne} |
| 624 |
\DeclareFontShape{TS1}{cmbr}{m}{n}{% |
| 625 |
<-9>tbmr8% |
| 626 |
<9-10>tbmr9% |
| 627 |
<10-17>tbmr10% |
| 628 |
<17->tbmr17% |
| 629 |
}{} |
| 630 |
\DeclareFontShape{TS1}{cmbr}{m}{sl}{% |
| 631 |
<-9>tbmo8% |
| 632 |
<9-10>tbmo9% |
| 633 |
<10-17>tbmo10% |
| 634 |
<17>tbmo17% |
| 635 |
}{} |
| 636 |
\DeclareFontShape{TS1}{cmbr}{m}{it}{% |
| 637 |
<->ssub*cmbr/m/sl}{} |
| 638 |
\DeclareFontShape{TS1}{cmbr}{sb}{n}{% |
| 639 |
<-9>tbsr8% |
| 640 |
<9-10>tbsr9% |
| 641 |
<10-17>tbsr10% |
| 642 |
<17->tbsr17% |
| 643 |
}{} |
| 644 |
\DeclareFontShape{TS1}{cmbr}{sb}{sl}{% |
| 645 |
<-9>tbso8% |
| 646 |
<9-10>tbso9% |
| 647 |
<10-17>tbso10% |
| 648 |
<17->tbso17% |
| 649 |
}{} |
| 650 |
\DeclareFontShape{TS1}{cmbr}{sb}{it}{<->ssub*cmbr/sb/sl}{} |
| 651 |
\DeclareFontShape{TS1}{cmbr}{b}{n}{<->ssub*cmbr/bx/n}{} |
| 652 |
\DeclareFontShape{TS1}{cmbr}{bx}{n}{% |
| 653 |
<-9>sub*cmbr/sb/n% |
| 654 |
<9->tbbx10% |
| 655 |
}{} |
| 656 |
%</ts1cmbr> |
| 657 |
% \end{macrocode} |
| 658 |
% |
| 659 |
% \subsection{CM Typewriter Light, TS1 encoding} |
| 660 |
% |
| 661 |
% \begin{macrocode} |
| 662 |
%<*ts1cmtl> |
| 663 |
\DeclareFontFamily{TS1}{cmtl}{\hyphenchar\font\m@ne} |
| 664 |
\DeclareFontShape{TS1}{cmtl}{m}{n}{% |
| 665 |
<->tbtl10% |
| 666 |
}{} |
| 667 |
\DeclareFontShape{TS1}{cmtl}{m}{sl}{% |
| 668 |
<->tbto10% |
| 669 |
}{} |
| 670 |
\DeclareFontShape{TS1}{cmtl}{m}{it}{<->ssub*cmtl/m/sl}{} |
| 671 |
%</ts1cmtl> |
| 672 |
% \end{macrocode} |
| 673 |
% |
| 674 |
% The next line of code prevents DocStrip from adding the |
| 675 |
% character table to all modules: |
| 676 |
% \begin{macrocode} |
| 677 |
\endinput |
| 678 |
% \end{macrocode} |
| 679 |
% \Finale |
| 680 |
%% \CharacterTable |
| 681 |
%% {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 |
| 682 |
%% 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 |
| 683 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
| 684 |
%% Exclamation \! Double quote \" Hash (number) \# |
| 685 |
%% Dollar \$ Percent \% Ampersand \& |
| 686 |
%% Acute accent \' Left paren \( Right paren \) |
| 687 |
%% Asterisk \* Plus \+ Comma \, |
| 688 |
%% Minus \- Point \. Solidus \/ |
| 689 |
%% Colon \: Semicolon \; Less than \< |
| 690 |
%% Equals \= Greater than \> Question mark \? |
| 691 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
| 692 |
%% Right bracket \] Circumflex \^ Underscore \_ |
| 693 |
%% Grave accent \` Left brace \{ Vertical bar \| |
| 694 |
%% Right brace \} Tilde \~} |
| 695 |
%% |