| 1 |
%\CheckSum{1101} |
| 2 |
% |
| 3 |
% \iffalse |
| 4 |
% |
| 5 |
% file: psfonts.dtx |
| 6 |
% |
| 7 |
% Copyright 1995--1998 Sebastian Rahtz |
| 8 |
% Copyright 1999--2020 Sebastian Rahtz, Walter Schmidt |
| 9 |
% |
| 10 |
% This program may be distributed and/or modified under the |
| 11 |
% conditions of the LaTeX Project Public License, either version 1.2 |
| 12 |
% of this license or (at your option) any later version. |
| 13 |
% The latest version of this license is in |
| 14 |
% http://www.latex-project.org/lppl.txt |
| 15 |
% and version 1.2 or later is part of all distributions of LaTeX |
| 16 |
% version 1999/12/01 or later. |
| 17 |
% |
| 18 |
% This program consists of all files listed in manifest.txt. |
| 19 |
% |
| 20 |
% \fi |
| 21 |
% |
| 22 |
% \iffalse |
| 23 |
%<*driver> |
| 24 |
\ProvidesFile{psfonts.drv} |
| 25 |
%</driver> |
| 26 |
%<times>\ProvidesPackage{times}% |
| 27 |
%<mathptm>\ProvidesPackage{mathptm}% |
| 28 |
%<mathptmx>\ProvidesPackage{mathptmx}% |
| 29 |
%<mathpple>\ProvidesPackage{mathpple}% |
| 30 |
%<palatino>\ProvidesPackage{palatino}% |
| 31 |
%<chancery>\ProvidesPackage{chancery}% |
| 32 |
%<pifont>\ProvidesPackage{pifont}% |
| 33 |
%<bookman>\ProvidesPackage{bookman}% |
| 34 |
%<newcent>\ProvidesPackage{newcent}% |
| 35 |
%<avant>\ProvidesPackage{avant}% |
| 36 |
%<helvet>\ProvidesPackage{helvet}% |
| 37 |
%<courier>\ProvidesPackage{courier}% |
| 38 |
%<charter>\ProvidesPackage{charter}% |
| 39 |
%<utopia>\ProvidesPackage{utopia}% |
| 40 |
%<mathpazo>\ProvidesPackage{mathpazo}% |
| 41 |
[2020/03/25 PSNFSS-v9.3 |
| 42 |
%<times>(SPQR) |
| 43 |
%<mathptm>Times w/ Math (SPQR, WaS) |
| 44 |
%<mathptmx>Times w/ Math, improved (SPQR, WaS) |
| 45 |
%<mathpple>Palatino w/ Math (WaS) |
| 46 |
%<palatino>(SPQR) |
| 47 |
%<chancery>(SPQR) |
| 48 |
%<pifont>Pi font support (SPQR) |
| 49 |
%<bookman>(SPQR) |
| 50 |
%<newcent>(SPQR) |
| 51 |
%<avant>(SPQR) |
| 52 |
%<helvet>(WaS) |
| 53 |
%<courier>(WaS) |
| 54 |
%<charter>(P.Dyballa) |
| 55 |
%<utopia>(P.Dyballa) |
| 56 |
%<mathpazo> Palatino w/ Pazo Math (D.Puga, WaS) |
| 57 |
] |
| 58 |
% |
| 59 |
%<*driver> |
| 60 |
\documentclass{ltxdoc} |
| 61 |
\begin{document} |
| 62 |
\DocInput{psfonts.dtx} |
| 63 |
\end{document} |
| 64 |
%</driver> |
| 65 |
% \fi |
| 66 |
% |
| 67 |
% \DeleteShortVerb{\|} |
| 68 |
% \MakeShortVerb{\+} |
| 69 |
% \GetFileInfo{psfonts.drv} |
| 70 |
% \title{The packages of the PSNFSS bundle} |
| 71 |
% \author{Walter Schmidt\thanks{\texttt{<[email protected]>}}} |
| 72 |
% \date{\fileversion{} -- \filedate} |
| 73 |
% \maketitle |
| 74 |
% |
| 75 |
% \noindent |
| 76 |
% The source file \texttt{psfonts.dtx} contains suitable package files |
| 77 |
% to use common PostScript fonts with \LaTeX. |
| 78 |
% See the file \texttt{README} for the installation instructions; |
| 79 |
% it also explains how to obtain the |
| 80 |
% related Type1 fonts, font definition files, font metrics and virtual fonts. |
| 81 |
% |
| 82 |
% See the document `Using common PostScript fonts with \LaTeX', |
| 83 |
% filename \texttt{psnfss2e.pdf}, for a description of the user interface. |
| 84 |
% |
| 85 |
% \StopEventually{} |
| 86 |
% |
| 87 |
% \section{The \textsf{times} package} |
| 88 |
% \begin{macrocode} |
| 89 |
%<*times> |
| 90 |
\renewcommand{\sfdefault}{phv} |
| 91 |
\renewcommand{\rmdefault}{ptm} |
| 92 |
\renewcommand{\ttdefault}{pcr} |
| 93 |
%</times> |
| 94 |
% \end{macrocode} |
| 95 |
% |
| 96 |
% \section{The \textsf{palatino} package} |
| 97 |
% \begin{macrocode} |
| 98 |
%<*palatino> |
| 99 |
\renewcommand{\rmdefault}{ppl} |
| 100 |
\renewcommand{\sfdefault}{phv} |
| 101 |
\renewcommand{\ttdefault}{pcr} |
| 102 |
%</palatino> |
| 103 |
% \end{macrocode} |
| 104 |
% |
| 105 |
% \section{The \textsf{helvet} package} |
| 106 |
% Options processing uses the \textsf{keyval} package |
| 107 |
% and a hack borrowed from \textsf{hyperref}: |
| 108 |
% \begin{macrocode} |
| 109 |
%<*helvet> |
| 110 |
\RequirePackage{keyval} |
| 111 |
\define@key{Hel}{scaled}[.95]{% |
| 112 |
\def\Hv@scale{#1}} |
| 113 |
\def\ProcessOptionsWithKV#1{% |
| 114 |
\let\@tempc\relax |
| 115 |
\let\Hv@tempa\@empty |
| 116 |
\ifx\@classoptionslist\relax\else |
| 117 |
\@for\CurrentOption:=\@classoptionslist\do{% |
| 118 |
\@ifundefined{KV@#1@\CurrentOption}% |
| 119 |
{}% |
| 120 |
{% |
| 121 |
\edef\Hv@tempa{\Hv@tempa,\CurrentOption,}% |
| 122 |
\@expandtwoargs\@removeelement\CurrentOption |
| 123 |
\@unusedoptionlist\@unusedoptionlist |
| 124 |
}% |
| 125 |
}% |
| 126 |
\fi |
| 127 |
\edef\Hv@tempa{% |
| 128 |
\noexpand\setkeys{#1}{% |
| 129 |
\Hv@tempa\@ptionlist{\@currname.\@currext}% |
| 130 |
}% |
| 131 |
}% |
| 132 |
\Hv@tempa |
| 133 |
\let\CurrentOption\@empty |
| 134 |
} |
| 135 |
\ProcessOptionsWithKV{Hel} |
| 136 |
\AtEndOfPackage{% |
| 137 |
\let\@unprocessedoptions\relax |
| 138 |
} |
| 139 |
% \end{macrocode} |
| 140 |
% The +.fd+ files will evaluate the macro +\Hv@scale+ and scale |
| 141 |
% Helvetica appropriately. |
| 142 |
% |
| 143 |
% Now it's time to redefine the default sans font: |
| 144 |
% \begin{macrocode} |
| 145 |
\renewcommand{\sfdefault}{phv} |
| 146 |
%</helvet> |
| 147 |
% \end{macrocode} |
| 148 |
% |
| 149 |
% \section{The \textsf{avant} package} |
| 150 |
% \begin{macrocode} |
| 151 |
%<*avant> |
| 152 |
\renewcommand{\sfdefault}{pag} |
| 153 |
%</avant> |
| 154 |
% \end{macrocode} |
| 155 |
% |
| 156 |
% \section{The \textsf{newcent} package} |
| 157 |
% \begin{macrocode} |
| 158 |
%<*newcent> |
| 159 |
\renewcommand{\rmdefault}{pnc} |
| 160 |
\renewcommand{\sfdefault}{pag} |
| 161 |
\renewcommand{\ttdefault}{pcr} |
| 162 |
%</newcent> |
| 163 |
% \end{macrocode} |
| 164 |
% |
| 165 |
% \section{The \textsf{bookman} package} |
| 166 |
% \begin{macrocode} |
| 167 |
%<*bookman> |
| 168 |
\renewcommand{\rmdefault}{pbk} |
| 169 |
\renewcommand{\sfdefault}{pag} |
| 170 |
\renewcommand{\ttdefault}{pcr} |
| 171 |
%</bookman> |
| 172 |
% \end{macrocode} |
| 173 |
% |
| 174 |
% \section{The \textsf{courier} package} |
| 175 |
% \begin{macrocode} |
| 176 |
%<*courier> |
| 177 |
\renewcommand{\ttdefault}{pcr} |
| 178 |
%</courier> |
| 179 |
% \end{macrocode} |
| 180 |
% |
| 181 |
% \section{The \textsf{pifont} package} |
| 182 |
% Some useful commands for Pi fonts (Dingbats, Symbol etc); they |
| 183 |
% all assume you know the character number of the (unmapped) font |
| 184 |
% \begin{macrocode} |
| 185 |
%<*pifont> |
| 186 |
\newcommand{\Pifont}[1]{\fontfamily{#1}\fontencoding{U}% |
| 187 |
\fontseries{m}\fontshape{n}\selectfont} |
| 188 |
\newcommand{\Pisymbol}[2]{{\Pifont{#1}\char#2}} |
| 189 |
\newcommand{\Pifill}[2]{\leavevmode |
| 190 |
\leaders\hbox{\makebox[0.2in]{\Pisymbol{#1}{#2}}}\hfill |
| 191 |
\kern\z@} |
| 192 |
\newcommand{\Piline}[2]{\par\noindent\hspace{0.5in}\Pifill{#1}{#2}% |
| 193 |
\hspace{0.5in}\kern\z@\par} |
| 194 |
\newenvironment{Pilist}[2]% |
| 195 |
{\begin{list}{\Pisymbol{#1}{#2}}{}}% |
| 196 |
{\end{list}}% |
| 197 |
% \end{macrocode} |
| 198 |
% A Pi number generator (from ideas by David Carlisle), for use in |
| 199 |
% lists where items are suffixed by symbols taken in sequence from a |
| 200 |
% Pi font. Usage is in lists just like enumerate. |
| 201 |
% |
| 202 |
% +\Pinumber+ outputs the appropriate symbol, where +#2+ is the name of a |
| 203 |
% \LaTeX\ counter and +#1+ is the font family. |
| 204 |
% \begin{macrocode} |
| 205 |
\def\Pinumber#1#2{\protect\Pisymbol{#1}{\arabic{#2}}} |
| 206 |
\newenvironment{Piautolist}[2]{% |
| 207 |
\ifnum \@enumdepth >3 \@toodeep\else |
| 208 |
\advance\@enumdepth \@ne |
| 209 |
% \end{macrocode} |
| 210 |
% We force the labels and cross-references into a very plain style (e.g., |
| 211 |
% no brackets around `numbers', or dots after them). |
| 212 |
% \begin{macrocode} |
| 213 |
\edef\@enumctr{enum\romannumeral\the\@enumdepth}% |
| 214 |
\expandafter\def\csname p@enum\romannumeral\the\@enumdepth\endcsname{}% |
| 215 |
\expandafter\def\csname labelenum\romannumeral\the\@enumdepth\endcsname{% |
| 216 |
\csname theenum\romannumeral\the\@enumdepth\endcsname}% |
| 217 |
\expandafter\def\csname theenum\romannumeral\the\@enumdepth\endcsname{% |
| 218 |
\Pinumber{#1}{enum\romannumeral\the\@enumdepth}}% |
| 219 |
\list{\csname label\@enumctr\endcsname}{% |
| 220 |
\@nmbrlisttrue |
| 221 |
\def\@listctr{\@enumctr}% |
| 222 |
\setcounter{\@enumctr}{#2}% |
| 223 |
\addtocounter{\@enumctr}{-1}% |
| 224 |
\def\makelabel##1{\hss\llap{##1}}} |
| 225 |
\fi |
| 226 |
}{\endlist} |
| 227 |
% \end{macrocode} |
| 228 |
% All the old Dingbat commands still work; |
| 229 |
% they are now implemented using the +\Pi...+ commands. |
| 230 |
% \begin{macrocode} |
| 231 |
\newcommand{\ding}{\Pisymbol{pzd}} |
| 232 |
\def\dingfill#1{\Pifill{pzd}{#1}} |
| 233 |
\def\dingline#1{\Piline{pzd}{#1}} |
| 234 |
\newenvironment{dinglist}[1]{\begin{Pilist}{pzd}{#1}}% |
| 235 |
{\end{Pilist}} |
| 236 |
\newenvironment{dingautolist}[1]{\begin{Piautolist}{pzd}{#1}}% |
| 237 |
{\end{Piautolist}} |
| 238 |
{\Pifont{pzd}} |
| 239 |
{\Pifont{psy}} |
| 240 |
%</pifont> |
| 241 |
% \end{macrocode} |
| 242 |
% |
| 243 |
% \section{The \textsf{chancery} package} |
| 244 |
% \begin{macrocode} |
| 245 |
%<*chancery> |
| 246 |
\renewcommand{\rmdefault}{pzc} |
| 247 |
%</chancery> |
| 248 |
% \end{macrocode} |
| 249 |
% |
| 250 |
% \section{The \textsf{mathptm} and \textsf{mathptmx} packages} |
| 251 |
% Setting up the fonts for \textsf{mathptm}: |
| 252 |
% \begin{macrocode} |
| 253 |
%<*mathptm> |
| 254 |
\PackageWarningNoLine{mathptm}{% |
| 255 |
This package is to be regarded as obsolete.\MessageBreak |
| 256 |
See the PSNFSS documentation} |
| 257 |
\def\rmdefault{ptm} |
| 258 |
\DeclareSymbolFont{operators} {OT1}{ptmcm}{m}{n} |
| 259 |
\DeclareSymbolFont{letters} {OML}{ptmcm}{m}{it} |
| 260 |
\DeclareSymbolFont{symbols} {OMS}{pzccm}{m}{n} |
| 261 |
\DeclareSymbolFont{largesymbols}{OMX}{psycm}{m}{n} |
| 262 |
\DeclareSymbolFont{bold} {OT1}{ptm}{bx}{n} |
| 263 |
\DeclareSymbolFont{italic} {OT1}{ptm}{m}{it} |
| 264 |
%</mathptm> |
| 265 |
% \end{macrocode} |
| 266 |
% |
| 267 |
% Setting up the fonts for \textsf{mathptmx}: |
| 268 |
% \begin{macrocode} |
| 269 |
%<*mathptmx> |
| 270 |
\def\rmdefault{ptm} |
| 271 |
\DeclareSymbolFont{operators} {OT1}{ztmcm}{m}{n} |
| 272 |
\DeclareSymbolFont{letters} {OML}{ztmcm}{m}{it} |
| 273 |
\DeclareSymbolFont{symbols} {OMS}{ztmcm}{m}{n} |
| 274 |
\DeclareSymbolFont{largesymbols}{OMX}{ztmcm}{m}{n} |
| 275 |
\DeclareSymbolFont{bold} {OT1}{ptm}{bx}{n} |
| 276 |
\DeclareSymbolFont{italic} {OT1}{ptm}{m}{it} |
| 277 |
%</mathptmx> |
| 278 |
% \end{macrocode} |
| 279 |
% |
| 280 |
% Define +\mathbf+ and +\mathit+: |
| 281 |
% \begin{macrocode} |
| 282 |
%<*mathptm|mathptmx> |
| 283 |
\@ifundefined{mathbf}{}{\DeclareMathAlphabet{\mathbf}{OT1}{ptm}{bx}{n}} |
| 284 |
\@ifundefined{mathit}{}{\DeclareMathAlphabet{\mathit}{OT1}{ptm}{m}{it}} |
| 285 |
% \end{macrocode} |
| 286 |
% |
| 287 |
% An +\omicron+ command, to fill the gap: |
| 288 |
% \begin{macrocode} |
| 289 |
\DeclareMathSymbol{\omicron}{0}{operators}{`\o} |
| 290 |
% \end{macrocode} |
| 291 |
% |
| 292 |
% Lock unavailabe symbols: |
| 293 |
% \begin{macrocode} |
| 294 |
\renewcommand{\jmath}{% |
| 295 |
\PackageError |
| 296 |
%<mathptm> {mathptm} |
| 297 |
%<mathptmx> {mathptmx} |
| 298 |
{The symbols \protect\jmath, \protect\amalg\space and |
| 299 |
\protect\coprod\MessageBreak |
| 300 |
are not available with this package} |
| 301 |
{Type \space <return> \space to proceed; |
| 302 |
your command will be ignored.}} |
| 303 |
\let\amalg=\jmath |
| 304 |
\let\coprod=\jmath |
| 305 |
% \end{macrocode} |
| 306 |
% |
| 307 |
% Reduce the space around math operators: |
| 308 |
% \begin{macrocode} |
| 309 |
\thinmuskip=2mu |
| 310 |
\medmuskip=2.5mu plus 1mu minus 1mu |
| 311 |
\thickmuskip=4mu plus 1.5mu minus 1mu |
| 312 |
%</mathptm|mathptmx> |
| 313 |
% \end{macrocode} |
| 314 |
% |
| 315 |
% Make +\hbar+ work with Times. |
| 316 |
% \begin{macrocode} |
| 317 |
%<*mathptm> |
| 318 |
\def\hbar{{\mskip1.6mu\mathchar'26\mkern-7.6muh}} |
| 319 |
%</mathptm> |
| 320 |
% \end{macrocode} |
| 321 |
% With \textsf{mathptmx}, PSNFSS 9.0 and later is using an improved definition, |
| 322 |
% which was adopted from Frank Mittelbach's \textsf{mathtime} package: |
| 323 |
% \begin{macrocode} |
| 324 |
%<*mathptmx> |
| 325 |
\DeclareRobustCommand\hbar{{% |
| 326 |
\[email protected]% |
| 327 |
\[email protected]% |
| 328 |
\def\@tempa##1##2{{% |
| 329 |
\lower##1\dimen@\rlap{\kern##1\dimen@ii\the##2 0\char22}}}% |
| 330 |
\mathchoice\@tempa\@ne\textfont |
| 331 |
\@tempa\@ne\textfont |
| 332 |
\@tempa\defaultscriptratio\scriptfont |
| 333 |
\@tempa\defaultscriptscriptratio\scriptscriptfont |
| 334 |
h}} |
| 335 |
%</mathptmx> |
| 336 |
% \end{macrocode} |
| 337 |
% |
| 338 |
% No bold math: |
| 339 |
% \begin{macrocode} |
| 340 |
%<*mathptm|mathptmx> |
| 341 |
\def\boldmath{% |
| 342 |
\PackageWarning% |
| 343 |
%<mathptm> {mathptm}% |
| 344 |
%<mathptmx> {mathptmx}% |
| 345 |
{There are no bold math fonts}% |
| 346 |
\global\let\boldmath=\relax |
| 347 |
} |
| 348 |
%</mathptm|mathptmx> |
| 349 |
% \end{macrocode} |
| 350 |
% |
| 351 |
% Use larger font sizes for super- and subscripts: |
| 352 |
% \begin{macrocode} |
| 353 |
%<*mathptmx> |
| 354 |
\def\defaultscriptratio{.74} |
| 355 |
\def\defaultscriptscriptratio{.6} |
| 356 |
%</mathptmx> |
| 357 |
%<*mathptm|mathptmx> |
| 358 |
\DeclareMathSizes{5}{5}{5}{5} |
| 359 |
\DeclareMathSizes{6}{6}{5}{5} |
| 360 |
\DeclareMathSizes{7}{7}{5}{5} |
| 361 |
\DeclareMathSizes{8}{8}{6}{5} |
| 362 |
\DeclareMathSizes{9}{9}{7}{5} |
| 363 |
\DeclareMathSizes{10}{10}{7.4}{6} |
| 364 |
\DeclareMathSizes{10.95}{10.95}{8}{6} |
| 365 |
\DeclareMathSizes{12}{12}{9}{7} |
| 366 |
\DeclareMathSizes{14.4}{14.4}{10.95}{8} |
| 367 |
\DeclareMathSizes{17.28}{17.28}{12}{10} |
| 368 |
\DeclareMathSizes{20.74}{20.74}{14.4}{12} |
| 369 |
\DeclareMathSizes{24.88}{24.88}{17.28}{14.4} |
| 370 |
%</mathptm|mathptmx> |
| 371 |
% \end{macrocode} |
| 372 |
% |
| 373 |
% Option: Use slanted greek capitals (with \textsf{mathptmx} only): |
| 374 |
% \begin{macrocode} |
| 375 |
%<*mathptmx> |
| 376 |
\DeclareOption{slantedGreek}{% |
| 377 |
\DeclareMathSymbol{\Gamma}{\mathalpha}{letters}{0} |
| 378 |
\DeclareMathSymbol{\Delta}{\mathalpha}{letters}{1} |
| 379 |
\DeclareMathSymbol{\Theta}{\mathalpha}{letters}{2} |
| 380 |
\DeclareMathSymbol{\Lambda}{\mathalpha}{letters}{3} |
| 381 |
\DeclareMathSymbol{\Xi}{\mathalpha}{letters}{4} |
| 382 |
\DeclareMathSymbol{\Pi}{\mathalpha}{letters}{5} |
| 383 |
\DeclareMathSymbol{\Sigma}{\mathalpha}{letters}{6} |
| 384 |
\DeclareMathSymbol{\Upsilon}{\mathalpha}{letters}{7} |
| 385 |
\DeclareMathSymbol{\Phi}{\mathalpha}{letters}{8} |
| 386 |
\DeclareMathSymbol{\Psi}{\mathalpha}{letters}{9} |
| 387 |
\DeclareMathSymbol{\Omega}{\mathalpha}{letters}{10} |
| 388 |
} |
| 389 |
\DeclareMathSymbol{\upGamma}{\mathord}{operators}{0} |
| 390 |
\DeclareMathSymbol{\upDelta}{\mathord}{operators}{1} |
| 391 |
\DeclareMathSymbol{\upTheta}{\mathord}{operators}{2} |
| 392 |
\DeclareMathSymbol{\upLambda}{\mathord}{operators}{3} |
| 393 |
\DeclareMathSymbol{\upXi}{\mathord}{operators}{4} |
| 394 |
\DeclareMathSymbol{\upPi}{\mathord}{operators}{5} |
| 395 |
\DeclareMathSymbol{\upSigma}{\mathord}{operators}{6} |
| 396 |
\DeclareMathSymbol{\upUpsilon}{\mathord}{operators}{7} |
| 397 |
\DeclareMathSymbol{\upPhi}{\mathord}{operators}{8} |
| 398 |
\DeclareMathSymbol{\upPsi}{\mathord}{operators}{9} |
| 399 |
\DeclareMathSymbol{\upOmega}{\mathord}{operators}{10} |
| 400 |
% \end{macrocode} |
| 401 |
% |
| 402 |
% Options processing: |
| 403 |
% \begin{macrocode} |
| 404 |
\ProcessOptions\relax |
| 405 |
%</mathptmx> |
| 406 |
% \end{macrocode} |
| 407 |
% |
| 408 |
% \begin{macrocode} |
| 409 |
%<*mathptm|mathptmx> |
| 410 |
\let\s@vedhbar\hbar |
| 411 |
\AtBeginDocument{% |
| 412 |
%</mathptm|mathptmx> |
| 413 |
% \end{macrocode} |
| 414 |
% Ensure proper scaling of the AMS fonts, even when not used |
| 415 |
% through the amssymb or amsfonts packages (\textsf{mathptmx} only): |
| 416 |
% \begin{macrocode} |
| 417 |
%<*mathptmx> |
| 418 |
\DeclareFontFamily{U}{msa}{}% |
| 419 |
\DeclareFontShape{U}{msa}{m}{n}{<->msam10}{}% |
| 420 |
\DeclareFontFamily{U}{msb}{}% |
| 421 |
\DeclareFontShape{U}{msb}{m}{n}{<->msbm10}{}% |
| 422 |
\DeclareFontFamily{U}{euf}{}% |
| 423 |
\DeclareFontShape{U}{euf}{m}{n}{<-6>eufm5<6-8>eufm7<8->eufm10}{}% |
| 424 |
\DeclareFontShape{U}{euf}{b}{n}{<-6>eufb5<6-8>eufb7<8->eufb10}{}% |
| 425 |
%</mathptmx> |
| 426 |
% \end{macrocode} |
| 427 |
% In case the \textsf{amsfonts} package is loaded additionally, |
| 428 |
% we must restore our +\hbar+: |
| 429 |
% \begin{macrocode} |
| 430 |
%<*mathptm|mathptmx> |
| 431 |
\@ifpackageloaded{amsfonts}{\let\hbar\s@vedhbar}{} |
| 432 |
% \end{macrocode} |
| 433 |
% Take care of +\big+ \&\ friends working with scaled math extension font, |
| 434 |
% unless amsmath.sty is also loaded: |
| 435 |
% \begin{macrocode} |
| 436 |
\@ifpackageloaded{amsmath}{}{% |
| 437 |
\newdimen\big@size |
| 438 |
\addto@hook\every@math@size{\setbox\z@\vbox{\hbox{$($}\kern\z@}% |
| 439 |
\global\big@size 1.2\ht\z@} |
| 440 |
\def\bBigg@#1#2{% |
| 441 |
{\hbox{$\left#2\vcenter to#1\big@size{}\right.\n@space$}}} |
| 442 |
\def\big{\bBigg@\@ne} |
| 443 |
\def\Big{\bBigg@{1.5}} |
| 444 |
\def\bigg{\bBigg@\tw@} |
| 445 |
\def\Bigg{\bBigg@{2.5}} |
| 446 |
} |
| 447 |
} |
| 448 |
%</mathptm|mathptmx> |
| 449 |
% \end{macrocode} |
| 450 |
% |
| 451 |
% \subsection*{Credits} |
| 452 |
% The virtual mathptm and mathptmx fonts and the related packages |
| 453 |
% were created by Alan Jeffrey, Sebastian Rahtz and Ulrik Vieth. |
| 454 |
% |
| 455 |
% \section{The \textsf{mathpple} package} |
| 456 |
% Suppress info about math fonts being redefined: |
| 457 |
% \begin{macrocode} |
| 458 |
%<*mathpple> |
| 459 |
\PackageWarningNoLine{mathpple}{% |
| 460 |
This package is to be regarded as obsolete.\MessageBreak |
| 461 |
See the PSNFSS documentation} |
| 462 |
\let\s@ved@info\@font@info |
| 463 |
\let\@font@info\@gobble |
| 464 |
% \end{macrocode} |
| 465 |
% |
| 466 |
% Make Palatino the default roman font: |
| 467 |
% \begin{macrocode} |
| 468 |
\renewcommand{\rmdefault}{ppl} |
| 469 |
% \end{macrocode} |
| 470 |
% |
| 471 |
% Typeset mathematics using the mathpple fonts: |
| 472 |
% \begin{macrocode} |
| 473 |
\DeclareSymbolFont{operators} {OT1}{zpple}{m}{n} |
| 474 |
\DeclareSymbolFont{letters} {OML}{zpple}{m}{it} |
| 475 |
\DeclareSymbolFont{symbols} {OMS}{zpple}{m}{n} |
| 476 |
\DeclareSymbolFont{largesymbols}{OMX}{zpple}{m}{n} |
| 477 |
\DeclareMathAlphabet{\mathbf} {OT1}{zpple}{b}{n} |
| 478 |
\DeclareMathAlphabet{\mathit} {OT1}{ppl}{m}{it} |
| 479 |
% \end{macrocode} |
| 480 |
% |
| 481 |
% Support for bold mathversion: |
| 482 |
% \begin{macrocode} |
| 483 |
\SetSymbolFont{operators}{bold}{OT1}{zpple}{b}{n} |
| 484 |
\SetSymbolFont{letters}{bold}{OML}{zpple}{b}{it} |
| 485 |
\SetSymbolFont{symbols}{bold}{OMS}{zpple}{b}{n} |
| 486 |
\SetSymbolFont{largesymbols}{bold}{OMX}{zpple}{m}{n} |
| 487 |
\SetMathAlphabet\mathit{bold}{OT1}{ppl}{b}{it} |
| 488 |
% \end{macrocode} |
| 489 |
% |
| 490 |
% Reduce the space around math operators: |
| 491 |
% \begin{macrocode} |
| 492 |
%\thinmuskip=2.5mu |
| 493 |
\medmuskip=3.5mu plus 1mu minus 1mu |
| 494 |
%\thickmuskip=4.5mu plus 1.5mu minus 1mu |
| 495 |
% \end{macrocode} |
| 496 |
% |
| 497 |
% Compensate for increased letter spacing |
| 498 |
% \begin{macrocode} |
| 499 |
\def\joinrel{\mathrel{\mkern-3.45mu}} |
| 500 |
% \end{macrocode} |
| 501 |
% |
| 502 |
% Make +\hbar+ work with Palatino: |
| 503 |
% \begin{macrocode} |
| 504 |
\def\hbar{{\mathchar'26\mkern-7muh}} |
| 505 |
% \end{macrocode} |
| 506 |
% |
| 507 |
% Define a new math alphabet for bold italic variables: |
| 508 |
% \begin{macrocode} |
| 509 |
\DeclareMathAlphabet{\mathbold}{OML}{zpple}{b}{it} |
| 510 |
% \end{macrocode} |
| 511 |
% |
| 512 |
% Make +\mathbold+ act on lowercase greek, too: |
| 513 |
% \begin{macrocode} |
| 514 |
\DeclareMathSymbol{\alpha}{\mathalpha}{letters}{11} |
| 515 |
\DeclareMathSymbol{\beta}{\mathalpha}{letters}{12} |
| 516 |
\DeclareMathSymbol{\gamma}{\mathalpha}{letters}{13} |
| 517 |
\DeclareMathSymbol{\delta}{\mathalpha}{letters}{14} |
| 518 |
\DeclareMathSymbol{\epsilon}{\mathalpha}{letters}{15} |
| 519 |
\DeclareMathSymbol{\zeta}{\mathalpha}{letters}{16} |
| 520 |
\DeclareMathSymbol{\eta}{\mathalpha}{letters}{17} |
| 521 |
\DeclareMathSymbol{\theta}{\mathalpha}{letters}{18} |
| 522 |
\DeclareMathSymbol{\iota}{\mathalpha}{letters}{19} |
| 523 |
\DeclareMathSymbol{\kappa}{\mathalpha}{letters}{20} |
| 524 |
\DeclareMathSymbol{\lambda}{\mathalpha}{letters}{21} |
| 525 |
\DeclareMathSymbol{\mu}{\mathalpha}{letters}{22} |
| 526 |
\DeclareMathSymbol{\nu}{\mathalpha}{letters}{23} |
| 527 |
\DeclareMathSymbol{\xi}{\mathalpha}{letters}{24} |
| 528 |
\DeclareMathSymbol{\pi}{\mathalpha}{letters}{25} |
| 529 |
\DeclareMathSymbol{\rho}{\mathalpha}{letters}{26} |
| 530 |
\DeclareMathSymbol{\sigma}{\mathalpha}{letters}{27} |
| 531 |
\DeclareMathSymbol{\tau}{\mathalpha}{letters}{28} |
| 532 |
\DeclareMathSymbol{\upsilon}{\mathalpha}{letters}{29} |
| 533 |
\DeclareMathSymbol{\phi}{\mathalpha}{letters}{30} |
| 534 |
\DeclareMathSymbol{\chi}{\mathalpha}{letters}{31} |
| 535 |
\DeclareMathSymbol{\psi}{\mathalpha}{letters}{32} |
| 536 |
\DeclareMathSymbol{\omega}{\mathalpha}{letters}{33} |
| 537 |
\DeclareMathSymbol{\varepsilon}{\mathalpha}{letters}{34} |
| 538 |
\DeclareMathSymbol{\vartheta}{\mathalpha}{letters}{35} |
| 539 |
\DeclareMathSymbol{\varpi}{\mathalpha}{letters}{36} |
| 540 |
\DeclareMathSymbol{\varphi}{\mathalpha}{letters}{39} |
| 541 |
\let\varrho\rho |
| 542 |
\let\varsigma\sigma |
| 543 |
% \end{macrocode} |
| 544 |
% |
| 545 |
% We redefine the default sizes for super- and subscripts. |
| 546 |
% Palatino, like most other type 1 fonts, is scaled linearly, so the |
| 547 |
% default ratios (.7 and .5) may produce unreadably small characters: |
| 548 |
% \begin{macrocode} |
| 549 |
\def\defaultscriptratio{.76} |
| 550 |
\def\defaultscriptscriptratio{.6} |
| 551 |
% \end{macrocode} |
| 552 |
% |
| 553 |
% These default ratios are not used for any sizes that have been |
| 554 |
% explicitly declared, so we redeclare the sizes used by the standard |
| 555 |
% classes. At least for the lower sizes this is important as we don't |
| 556 |
% want to end up with a 5pt font being reduced even further: |
| 557 |
% \begin{macrocode} |
| 558 |
\DeclareMathSizes{5} {5} {5} {5} |
| 559 |
\DeclareMathSizes{6} {6} {5} {5} |
| 560 |
\DeclareMathSizes{7} {7} {5} {5} |
| 561 |
\DeclareMathSizes{8} {8} {6} {5} |
| 562 |
\DeclareMathSizes{9} {9} {7} {5} |
| 563 |
\DeclareMathSizes{10} {10} {7.6} {6} |
| 564 |
\DeclareMathSizes{10.95}{10.95}{8} {6} |
| 565 |
\DeclareMathSizes{12} {12} {9} {7} |
| 566 |
\DeclareMathSizes{14.4} {14.4} {10} {8} |
| 567 |
\DeclareMathSizes{17.28}{17.28}{12} {10} |
| 568 |
\DeclareMathSizes{20.74}{20.74}{14.4} {12} |
| 569 |
\DeclareMathSizes{24.88}{24.88}{20.74}{14.4} |
| 570 |
% \end{macrocode} |
| 571 |
% |
| 572 |
% Option: Use slanted greek capitals: |
| 573 |
% \begin{macrocode} |
| 574 |
\DeclareOption{slantedGreek}{% |
| 575 |
\DeclareMathSymbol{\Gamma}{\mathalpha}{letters}{0} |
| 576 |
\DeclareMathSymbol{\Delta}{\mathalpha}{letters}{1} |
| 577 |
\DeclareMathSymbol{\Theta}{\mathalpha}{letters}{2} |
| 578 |
\DeclareMathSymbol{\Lambda}{\mathalpha}{letters}{3} |
| 579 |
\DeclareMathSymbol{\Xi}{\mathalpha}{letters}{4} |
| 580 |
\DeclareMathSymbol{\Pi}{\mathalpha}{letters}{5} |
| 581 |
\DeclareMathSymbol{\Sigma}{\mathalpha}{letters}{6} |
| 582 |
\DeclareMathSymbol{\Upsilon}{\mathalpha}{letters}{7} |
| 583 |
\DeclareMathSymbol{\Phi}{\mathalpha}{letters}{8} |
| 584 |
\DeclareMathSymbol{\Psi}{\mathalpha}{letters}{9} |
| 585 |
\DeclareMathSymbol{\Omega}{\mathalpha}{letters}{10} |
| 586 |
} |
| 587 |
\let\upOmega\Omega |
| 588 |
\let\upDelta\Delta |
| 589 |
% \end{macrocode} |
| 590 |
% |
| 591 |
% Options processing: |
| 592 |
% \begin{macrocode} |
| 593 |
\ProcessOptions\relax |
| 594 |
% \end{macrocode} |
| 595 |
% |
| 596 |
% \begin{macrocode} |
| 597 |
\let\s@vedhbar\hbar |
| 598 |
\AtBeginDocument{% |
| 599 |
% \end{macrocode} |
| 600 |
% Ensure proper scaling of the AMS fonts, even when not used |
| 601 |
% through the amssymb or amsfonts packages: |
| 602 |
% \begin{macrocode} |
| 603 |
\DeclareFontFamily{U}{msa}{}% |
| 604 |
\DeclareFontShape{U}{msa}{m}{n}{<->s*[1.042]msam10}{}% |
| 605 |
\DeclareFontFamily{U}{msb}{}% |
| 606 |
\DeclareFontShape{U}{msb}{m}{n}{<->s*[1.042]msbm10}{}% |
| 607 |
\DeclareFontFamily{U}{euf}{}% |
| 608 |
\DeclareFontShape{U}{euf}{m}{n}{<-6>eufm5<6-8>eufm7<8->eufm10}{}% |
| 609 |
\DeclareFontShape{U}{euf}{b}{n}{<-6>eufb5<6-8>eufb7<8->eufb10}{}% |
| 610 |
% \end{macrocode} |
| 611 |
% In case the \textsf{amsfonts} package is loaded additionally, |
| 612 |
% we must restore our +\hbar+: |
| 613 |
% \begin{macrocode} |
| 614 |
\@ifpackageloaded{amsfonts}{\let\hbar\s@vedhbar}{} |
| 615 |
% \end{macrocode} |
| 616 |
% Take care of +\big+ \&\ friends working with scaled math extension font, |
| 617 |
% unless amsmath.sty is also loaded: |
| 618 |
% \begin{macrocode} |
| 619 |
\@ifpackageloaded{amsmath}{}{% |
| 620 |
\newdimen\big@size |
| 621 |
\addto@hook\every@math@size{\setbox\z@\vbox{\hbox{$($}\kern\z@}% |
| 622 |
\global\big@size 1.2\ht\z@} |
| 623 |
\def\bBigg@#1#2{% |
| 624 |
{\hbox{$\left#2\vcenter to#1\big@size{}\right.\n@space$}}} |
| 625 |
\def\big{\bBigg@\@ne} |
| 626 |
\def\Big{\bBigg@{1.5}} |
| 627 |
\def\bigg{\bBigg@\tw@} |
| 628 |
\def\Bigg{\bBigg@{2.5}} |
| 629 |
} |
| 630 |
} |
| 631 |
% \end{macrocode} |
| 632 |
% |
| 633 |
% Restore font info: |
| 634 |
% \begin{macrocode} |
| 635 |
\let\@font@info\s@ved@info |
| 636 |
%</mathpple> |
| 637 |
% \end{macrocode} |
| 638 |
% |
| 639 |
% \subsection*{Credits} |
| 640 |
% \textsf{mathpple} is based on the package \textsf{mathppl} |
| 641 |
% and the related virtual fonts, created by Aloysius Helminck. |
| 642 |
% These were distributed in conjunction with \textsc{fontinst}~v1.335, |
| 643 |
% but are no longer available from CTAN. |
| 644 |
% The main changes with regard to Helminck's model are: |
| 645 |
% \begin{itemize} |
| 646 |
% \item |
| 647 |
% italic Greek letters from the Euler fonts; |
| 648 |
% \item |
| 649 |
% +\mathcal+ from CM instead of Zapf~Chancery; |
| 650 |
% \item |
| 651 |
% positioning of math accents substantially improved; |
| 652 |
% \item |
| 653 |
% improved spacing; |
| 654 |
% \item |
| 655 |
% use those Type~1 fonts only, which are part of the free |
| 656 |
% `BlueSky' distribution. |
| 657 |
% \end{itemize} |
| 658 |
% Special thanks to Daniel Schlieper, who suggested the |
| 659 |
% development of the \textsf{mathpple} package, |
| 660 |
% contributed many good ideas and helped with testing. |
| 661 |
% |
| 662 |
% |
| 663 |
% \section{The \textsf{charter} package} |
| 664 |
% \begin{macrocode} |
| 665 |
%<*charter> |
| 666 |
\renewcommand{\rmdefault}{bch} |
| 667 |
\renewcommand{\bfdefault}{b} |
| 668 |
%</charter> |
| 669 |
% \end{macrocode} |
| 670 |
% |
| 671 |
% \section{The \textsf{utopia} package} |
| 672 |
% \begin{macrocode} |
| 673 |
%<*utopia> |
| 674 |
\PackageWarningNoLine{utopia}{% |
| 675 |
This package is to be regarded as obsolete.\MessageBreak |
| 676 |
See the PSNFSS documentation} |
| 677 |
\renewcommand{\rmdefault}{put} |
| 678 |
\renewcommand\bfdefault{b} |
| 679 |
%</utopia> |
| 680 |
% \end{macrocode} |
| 681 |
% |
| 682 |
% |
| 683 |
% \section{The \textsf{mathpazo} package} |
| 684 |
% Suppress info about math fonts being redefined: |
| 685 |
% \begin{macrocode} |
| 686 |
%<*mathpazo> |
| 687 |
\let\s@ved@info\@font@info |
| 688 |
\let\@font@info\@gobble |
| 689 |
% \end{macrocode} |
| 690 |
% |
| 691 |
% Options processing: |
| 692 |
% \begin{macrocode} |
| 693 |
\newif\ifpazo@osf |
| 694 |
\newif\ifpazo@sc |
| 695 |
\newif\ifpazo@slGreek |
| 696 |
\newif\ifpazo@BB \pazo@BBtrue |
| 697 |
\DeclareOption{osf}{\pazo@osftrue} |
| 698 |
\DeclareOption{sc}{\pazo@sctrue} |
| 699 |
\DeclareOption{slantedGreek}{\pazo@slGreektrue} |
| 700 |
\DeclareOption{noBBpl}{\pazo@BBfalse} |
| 701 |
\DeclareOption{osfeqnnum}{\OptionNotUsed} |
| 702 |
\ProcessOptions\relax |
| 703 |
% \end{macrocode} |
| 704 |
% |
| 705 |
% Make Palatino (+ppl+) the default roman font. |
| 706 |
% If the options +osf+ or +sc+ were specified, |
| 707 |
% use +pplj+ or +pplx+ instead, |
| 708 |
% and make sure that +\oldstylenums+ switches to +pplj+, too. |
| 709 |
% \begin{macrocode} |
| 710 |
\ifpazo@osf |
| 711 |
\renewcommand{\rmdefault}{pplj} |
| 712 |
\renewcommand{\oldstylenums}[1]{% |
| 713 |
{\fontfamily{pplj}\selectfont #1}} |
| 714 |
\else\ifpazo@sc |
| 715 |
\renewcommand{\rmdefault}{pplx} |
| 716 |
\renewcommand{\oldstylenums}[1]{% |
| 717 |
{\fontfamily{pplj}\selectfont #1}} |
| 718 |
\else |
| 719 |
\renewcommand{\rmdefault}{ppl} |
| 720 |
\fi\fi |
| 721 |
% \end{macrocode} |
| 722 |
% |
| 723 |
% The Pazo fonts provide an Euro symbol, which is now available in the |
| 724 |
% Palatino text companion fonts. For the sake of compatibility, we still define |
| 725 |
% the macro +\ppleuro+, which was introduced with version 8.2, and |
| 726 |
% we make it work with the |
| 727 |
% \textsf{eurofont} and \textsf{europs} packages: |
| 728 |
% \begin{macrocode} |
| 729 |
\newcommand{\ppleuro}{{\fontencoding{U}\fontfamily{fplm}\selectfont \char160}} |
| 730 |
\AtBeginDocument{\@ifpackageloaded{europs}{\renewcommand{\EURtm}{\ppleuro}}{}} |
| 731 |
% \end{macrocode} |
| 732 |
% |
| 733 |
% Now we declare the math fonts. The \textsf{mathpazo} package uses |
| 734 |
% a Palatino text font family with OT1 encoding |
| 735 |
% as the +operators+ and +\mathit+ alphabets. |
| 736 |
% If the +sc+ option was specified, we use the family +pplx+. |
| 737 |
% Otherwise we just take +ppl+, thus making sure that no oldstyle digits are |
| 738 |
% used in math mode. Note that specifying both +sc+ and +osf+ gives |
| 739 |
% oldstyle numbers in text and uses the family +pplx+ in math mode, |
| 740 |
% so that the +ppl+ family is not required at all. Thus, the number |
| 741 |
% of TFM's loaded by \TeX{} is minimized. |
| 742 |
% \begin{macrocode} |
| 743 |
\ifpazo@sc |
| 744 |
\DeclareSymbolFont{operators} {OT1}{pplx}{m}{n} |
| 745 |
\SetSymbolFont{operators}{bold} {OT1}{pplx}{b}{n} |
| 746 |
\DeclareMathAlphabet{\mathit} {OT1}{pplx}{m}{it} |
| 747 |
\SetMathAlphabet{\mathit}{bold} {OT1}{pplx}{b}{it} |
| 748 |
\else |
| 749 |
\DeclareSymbolFont{operators} {OT1}{ppl}{m}{n} |
| 750 |
\SetSymbolFont{operators}{bold} {OT1}{ppl}{b}{n} |
| 751 |
\DeclareMathAlphabet{\mathit} {OT1}{ppl}{m}{it} |
| 752 |
\SetMathAlphabet{\mathit}{bold} {OT1}{ppl}{b}{it} |
| 753 |
\fi |
| 754 |
% \end{macrocode} |
| 755 |
% Uppercase upright Greek |
| 756 |
% and math symbols such as `plus', `equal' and others |
| 757 |
% are taken from a new symbol font named +upright+. |
| 758 |
% Its spacing is less tight than in the text font. |
| 759 |
% \begin{macrocode} |
| 760 |
\DeclareSymbolFont{upright} {OT1}{zplm}{m}{n} |
| 761 |
\DeclareSymbolFont{letters} {OML}{zplm}{m}{it} |
| 762 |
\DeclareSymbolFont{symbols} {OMS}{zplm}{m}{n} |
| 763 |
\DeclareSymbolFont{largesymbols} {OMX}{zplm}{m}{n} |
| 764 |
% \end{macrocode} |
| 765 |
% \begin{macrocode} |
| 766 |
\SetSymbolFont{upright}{bold} {OT1}{zplm}{b}{n} |
| 767 |
\SetSymbolFont{letters}{bold} {OML}{zplm}{b}{it} |
| 768 |
\SetSymbolFont{symbols}{bold} {OMS}{zplm}{b}{n} |
| 769 |
\SetSymbolFont{largesymbols}{bold}{OMX}{zplm}{m}{n} |
| 770 |
% \end{macrocode} |
| 771 |
% \begin{macrocode} |
| 772 |
\DeclareMathAlphabet{\mathbf} {OT1}{zplm}{b}{n} |
| 773 |
\DeclareMathAlphabet{\mathbold} {OML}{zplm}{b}{it} |
| 774 |
% \end{macrocode} |
| 775 |
% \begin{macrocode} |
| 776 |
\DeclareSymbolFontAlphabet{\mathrm} {operators} |
| 777 |
\DeclareSymbolFontAlphabet{\mathnormal}{letters} |
| 778 |
\DeclareSymbolFontAlphabet{\mathcal} {symbols} |
| 779 |
% \end{macrocode} |
| 780 |
% |
| 781 |
% The following symbols used to come from `operators'; |
| 782 |
% we take them from the `upright' symbol font now: |
| 783 |
% \begin{macrocode} |
| 784 |
\DeclareMathSymbol{!}{\mathclose}{upright}{"21} |
| 785 |
\DeclareMathSymbol{+}{\mathbin}{upright}{"2B} |
| 786 |
\DeclareMathSymbol{:}{\mathrel}{upright}{"3A} |
| 787 |
% \DeclareMathSymbol{;}{\mathpunct}{operators}{"3B} % punctuation! |
| 788 |
\DeclareMathSymbol{=}{\mathrel}{upright}{"3D} |
| 789 |
\DeclareMathSymbol{?}{\mathclose}{upright}{"3F} |
| 790 |
\DeclareMathDelimiter{(}{\mathopen} {upright}{"28}{largesymbols}{"00} |
| 791 |
\DeclareMathDelimiter{)}{\mathclose}{upright}{"29}{largesymbols}{"01} |
| 792 |
\DeclareMathDelimiter{[}{\mathopen} {upright}{"5B}{largesymbols}{"02} |
| 793 |
\DeclareMathDelimiter{]}{\mathclose}{upright}{"5D}{largesymbols}{"03} |
| 794 |
\DeclareMathDelimiter{/}{\mathord}{upright}{"2F}{largesymbols}{"0E} |
| 795 |
% \DeclareMathSymbol{\colon}{\mathpunct}{operators}{"3A} % punctuation! |
| 796 |
\DeclareMathAccent{\acute}{\mathalpha}{upright}{"13} |
| 797 |
\DeclareMathAccent{\grave}{\mathalpha}{upright}{"12} |
| 798 |
\DeclareMathAccent{\ddot}{\mathalpha}{upright}{"7F} |
| 799 |
\DeclareMathAccent{\tilde}{\mathalpha}{upright}{"7E} |
| 800 |
\DeclareMathAccent{\bar}{\mathalpha}{upright}{"16} |
| 801 |
\DeclareMathAccent{\breve}{\mathalpha}{upright}{"15} |
| 802 |
\DeclareMathAccent{\check}{\mathalpha}{upright}{"14} |
| 803 |
\DeclareMathAccent{\hat}{\mathalpha}{upright}{"5E} |
| 804 |
\DeclareMathAccent{\dot}{\mathalpha}{upright}{"5F} |
| 805 |
\DeclareMathAccent{\mathring}{\mathalpha}{upright}{"17} |
| 806 |
\DeclareMathSymbol{\mathdollar}{\mathord}{upright}{"24} |
| 807 |
% \end{macrocode} |
| 808 |
% As to uppercase Greek, see below! |
| 809 |
% |
| 810 |
% The follwowing symbols used to come from `letters'. |
| 811 |
% Now they are taken from `operators', with respect to |
| 812 |
% correct spacing of decimal numbers: |
| 813 |
% \begin{macrocode} |
| 814 |
\DeclareMathSymbol{,}{\mathpunct}{operators}{44} |
| 815 |
\DeclareMathSymbol{.}{\mathord}{operators}{46} |
| 816 |
% \end{macrocode} |
| 817 |
% |
| 818 |
% Use Pazo as (partial) +\mathbb+ font: |
| 819 |
% \begin{macrocode} |
| 820 |
\ifpazo@BB |
| 821 |
\AtBeginDocument{% |
| 822 |
\let\mathbb\relax |
| 823 |
\DeclareMathAlphabet\PazoBB{U}{fplmbb}{m}{n} |
| 824 |
\newcommand{\mathbb}{\PazoBB} |
| 825 |
} |
| 826 |
\fi |
| 827 |
% \end{macrocode} |
| 828 |
% |
| 829 |
% Reduce the space around math operators: |
| 830 |
% \begin{macrocode} |
| 831 |
%\thinmuskip=2.5mu |
| 832 |
\medmuskip=3.5mu plus 1mu minus 1mu |
| 833 |
%\thickmuskip=4.5mu plus 1.5mu minus 1mu |
| 834 |
% \end{macrocode} |
| 835 |
% |
| 836 |
% Compensate for increased letter spacing: |
| 837 |
% \begin{macrocode} |
| 838 |
\def\joinrel{\mathrel{\mkern-3.45mu}} |
| 839 |
% \end{macrocode} |
| 840 |
% |
| 841 |
% Make +\hbar+ work with Palatino: |
| 842 |
% \begin{macrocode} |
| 843 |
\renewcommand{\hbar}{{\mkern0.8mu\mathchar'26\mkern-6.8muh}} |
| 844 |
% \end{macrocode} |
| 845 |
% |
| 846 |
% Optionally use slanted greek capitals: |
| 847 |
% \begin{macrocode} |
| 848 |
\ifpazo@slGreek |
| 849 |
\DeclareMathSymbol{\Gamma} {\mathalpha}{letters}{"00} |
| 850 |
\DeclareMathSymbol{\Delta} {\mathalpha}{letters}{"01} |
| 851 |
\DeclareMathSymbol{\Theta} {\mathalpha}{letters}{"02} |
| 852 |
\DeclareMathSymbol{\Lambda} {\mathalpha}{letters}{"03} |
| 853 |
\DeclareMathSymbol{\Xi} {\mathalpha}{letters}{"04} |
| 854 |
\DeclareMathSymbol{\Pi} {\mathalpha}{letters}{"05} |
| 855 |
\DeclareMathSymbol{\Sigma} {\mathalpha}{letters}{"06} |
| 856 |
\DeclareMathSymbol{\Upsilon}{\mathalpha}{letters}{"07} |
| 857 |
\DeclareMathSymbol{\Phi} {\mathalpha}{letters}{"08} |
| 858 |
\DeclareMathSymbol{\Psi} {\mathalpha}{letters}{"09} |
| 859 |
\DeclareMathSymbol{\Omega} {\mathalpha}{letters}{"0A} |
| 860 |
\else |
| 861 |
\DeclareMathSymbol{\Gamma}{\mathalpha}{upright}{"00} |
| 862 |
\DeclareMathSymbol{\Delta}{\mathalpha}{upright}{"01} |
| 863 |
\DeclareMathSymbol{\Theta}{\mathalpha}{upright}{"02} |
| 864 |
\DeclareMathSymbol{\Lambda}{\mathalpha}{upright}{"03} |
| 865 |
\DeclareMathSymbol{\Xi}{\mathalpha}{upright}{"04} |
| 866 |
\DeclareMathSymbol{\Pi}{\mathalpha}{upright}{"05} |
| 867 |
\DeclareMathSymbol{\Sigma}{\mathalpha}{upright}{"06} |
| 868 |
\DeclareMathSymbol{\Upsilon}{\mathalpha}{upright}{"07} |
| 869 |
\DeclareMathSymbol{\Phi}{\mathalpha}{upright}{"08} |
| 870 |
\DeclareMathSymbol{\Psi}{\mathalpha}{upright}{"09} |
| 871 |
\DeclareMathSymbol{\Omega}{\mathalpha}{upright}{"0A} |
| 872 |
\fi |
| 873 |
% \end{macrocode} |
| 874 |
% These symbols should always be upright: |
| 875 |
% \begin{macrocode} |
| 876 |
\DeclareMathSymbol{\upGamma}{\mathord}{upright}{0} |
| 877 |
\DeclareMathSymbol{\upDelta}{\mathord}{upright}{1} |
| 878 |
\DeclareMathSymbol{\upTheta}{\mathord}{upright}{2} |
| 879 |
\DeclareMathSymbol{\upLambda}{\mathord}{upright}{3} |
| 880 |
\DeclareMathSymbol{\upXi}{\mathord}{upright}{4} |
| 881 |
\DeclareMathSymbol{\upPi}{\mathord}{upright}{5} |
| 882 |
\DeclareMathSymbol{\upSigma}{\mathord}{upright}{6} |
| 883 |
\DeclareMathSymbol{\upUpsilon}{\mathord}{upright}{7} |
| 884 |
\DeclareMathSymbol{\upPhi}{\mathord}{upright}{8} |
| 885 |
\DeclareMathSymbol{\upPsi}{\mathord}{upright}{9} |
| 886 |
\DeclareMathSymbol{\upOmega}{\mathord}{upright}{10} |
| 887 |
% \end{macrocode} |
| 888 |
% Make +\mathbold+ act on lowercase greek too |
| 889 |
% \begin{macrocode} |
| 890 |
\DeclareMathSymbol{\alpha}{\mathalpha}{letters}{"0B} |
| 891 |
\DeclareMathSymbol{\beta}{\mathalpha}{letters}{"0C} |
| 892 |
\DeclareMathSymbol{\gamma}{\mathalpha}{letters}{"0D} |
| 893 |
\DeclareMathSymbol{\delta}{\mathalpha}{letters}{"0E} |
| 894 |
\DeclareMathSymbol{\epsilon}{\mathalpha}{letters}{"0F} |
| 895 |
\DeclareMathSymbol{\zeta}{\mathalpha}{letters}{"10} |
| 896 |
\DeclareMathSymbol{\eta}{\mathalpha}{letters}{"11} |
| 897 |
\DeclareMathSymbol{\theta}{\mathalpha}{letters}{"12} |
| 898 |
\DeclareMathSymbol{\iota}{\mathalpha}{letters}{"13} |
| 899 |
\DeclareMathSymbol{\kappa}{\mathalpha}{letters}{"14} |
| 900 |
\DeclareMathSymbol{\lambda}{\mathalpha}{letters}{"15} |
| 901 |
\DeclareMathSymbol{\mu}{\mathalpha}{letters}{"16} |
| 902 |
\DeclareMathSymbol{\nu}{\mathalpha}{letters}{"17} |
| 903 |
\DeclareMathSymbol{\xi}{\mathalpha}{letters}{"18} |
| 904 |
\DeclareMathSymbol{\pi}{\mathalpha}{letters}{"19} |
| 905 |
\DeclareMathSymbol{\rho}{\mathalpha}{letters}{"1A} |
| 906 |
\DeclareMathSymbol{\sigma}{\mathalpha}{letters}{"1B} |
| 907 |
\DeclareMathSymbol{\tau}{\mathalpha}{letters}{"1C} |
| 908 |
\DeclareMathSymbol{\upsilon}{\mathalpha}{letters}{"1D} |
| 909 |
\DeclareMathSymbol{\phi}{\mathalpha}{letters}{"1E} |
| 910 |
\DeclareMathSymbol{\chi}{\mathalpha}{letters}{"1F} |
| 911 |
\DeclareMathSymbol{\psi}{\mathalpha}{letters}{"20} |
| 912 |
\DeclareMathSymbol{\omega}{\mathalpha}{letters}{"21} |
| 913 |
\DeclareMathSymbol{\varepsilon}{\mathalpha}{letters}{"22} |
| 914 |
\DeclareMathSymbol{\vartheta}{\mathalpha}{letters}{"23} |
| 915 |
\DeclareMathSymbol{\varpi}{\mathalpha}{letters}{"24} |
| 916 |
\DeclareMathSymbol{\varrho}{\mathalpha}{letters}{"25} |
| 917 |
\DeclareMathSymbol{\varsigma}{\mathalpha}{letters}{"26} |
| 918 |
\DeclareMathSymbol{\varphi}{\mathalpha}{letters}{"27} |
| 919 |
% \end{macrocode} |
| 920 |
% |
| 921 |
% Finally, we save our new definition of +\hbar+ and defer some code |
| 922 |
% until +\begin{document}+: |
| 923 |
% \begin{macrocode} |
| 924 |
\let\s@vedhbar\hbar |
| 925 |
\AtBeginDocument{% |
| 926 |
% \end{macrocode} |
| 927 |
% Ensure proper scaling of the AMS fonts, even when not used |
| 928 |
% through the amssymb or amsfonts packages: |
| 929 |
% \begin{macrocode} |
| 930 |
\DeclareFontFamily{U}{msa}{}% |
| 931 |
\DeclareFontShape{U}{msa}{m}{n}{<->s*[1.042]msam10}{}% |
| 932 |
\DeclareFontFamily{U}{msb}{}% |
| 933 |
\DeclareFontShape{U}{msb}{m}{n}{<->s*[1.042]msbm10}{}% |
| 934 |
\DeclareFontFamily{U}{euf}{}% |
| 935 |
\DeclareFontShape{U}{euf}{m}{n}{<-6>eufm5<6-8>eufm7<8->eufm10}{}% |
| 936 |
\DeclareFontShape{U}{euf}{b}{n}{<-6>eufb5<6-8>eufb7<8->eufb10}{}% |
| 937 |
% \end{macrocode} |
| 938 |
% In case the \textsf{amsfonts} package is loaded additionally, |
| 939 |
% we must restore our +\hbar+: |
| 940 |
% \begin{macrocode} |
| 941 |
\@ifpackageloaded{amsfonts}{\let\hbar\s@vedhbar}{} |
| 942 |
% \end{macrocode} |
| 943 |
% Take care of +\big+ \&\ friends working with scaled math extension font, |
| 944 |
% unless amsmath.sty is also loaded: |
| 945 |
% \begin{macrocode} |
| 946 |
\@ifpackageloaded{amsmath}{}{% |
| 947 |
\newdimen\big@size |
| 948 |
\addto@hook\every@math@size{\setbox\z@\vbox{\hbox{$($}\kern\z@}% |
| 949 |
\global\big@size 1.2\ht\z@} |
| 950 |
\def\bBigg@#1#2{% |
| 951 |
{\hbox{$\left#2\vcenter to#1\big@size{}\right.\n@space$}}} |
| 952 |
\def\big{\bBigg@\@ne} |
| 953 |
\def\Big{\bBigg@{1.5}} |
| 954 |
\def\bigg{\bBigg@\tw@} |
| 955 |
\def\Bigg{\bBigg@{2.5}} |
| 956 |
} |
| 957 |
} |
| 958 |
% \end{macrocode} |
| 959 |
% |
| 960 |
% We redefine the default sizes for super and subscripts. |
| 961 |
% Palatino, like most other type 1 fonts, is scaled linearly, so the |
| 962 |
% default ratios (0.7 and 0.5) may produce unreadably small characters. |
| 963 |
% \begin{macrocode} |
| 964 |
\def\defaultscriptratio{.76} |
| 965 |
\def\defaultscriptscriptratio{.6} |
| 966 |
% \end{macrocode} |
| 967 |
% These default ratios are not used for any sizes that have been |
| 968 |
% explicitly declared, so we redeclare the sizes used by the standard |
| 969 |
% classes. At least for the lower sizes this is important as we don't |
| 970 |
% want to end up with a 5pt font being reduced even further. |
| 971 |
% \begin{macrocode} |
| 972 |
\DeclareMathSizes{5} {5} {5} {5} |
| 973 |
\DeclareMathSizes{6} {6} {5} {5} |
| 974 |
\DeclareMathSizes{7} {7} {5} {5} |
| 975 |
\DeclareMathSizes{8} {8} {6} {5} |
| 976 |
\DeclareMathSizes{9} {9} {7} {5} |
| 977 |
\DeclareMathSizes{10} {10} {7.6} {6} |
| 978 |
\DeclareMathSizes{10.95}{10.95}{8} {6} |
| 979 |
\DeclareMathSizes{12} {12} {9} {7} |
| 980 |
\DeclareMathSizes{14.4} {14.4} {10} {8} |
| 981 |
\DeclareMathSizes{17.28}{17.28}{12} {10} |
| 982 |
\DeclareMathSizes{20.74}{20.74}{14.4} {12} |
| 983 |
\DeclareMathSizes{24.88}{24.88}{20.74}{14.4} |
| 984 |
% \end{macrocode} |
| 985 |
% |
| 986 |
% Restore font info: |
| 987 |
% \begin{macrocode} |
| 988 |
\let\@font@info\s@ved@info |
| 989 |
%</mathpazo> |
| 990 |
% \end{macrocode} |
| 991 |
% |
| 992 |
% \subsection*{Credits} |
| 993 |
% The Pazo fonts and the related virtual fonts |
| 994 |
% were created by Diego Puga. |
| 995 |
% The \textsf{mathpazo} package was written by D.~Puga and W.~Schmidt. |
| 996 |
% \Finale |
| 997 |
% |
| 998 |
\endinput |
| 999 |
% |
| 1000 |
%% \CharacterTable |
| 1001 |
%% {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 |
| 1002 |
%% 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 |
| 1003 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
| 1004 |
%% Exclamation \! Double quote \" Hash (number) \# |
| 1005 |
%% Dollar \$ Percent \% Ampersand \& |
| 1006 |
%% Acute accent \' Left paren \( Right paren \) |
| 1007 |
%% Asterisk \* Plus \+ Comma \, |
| 1008 |
%% Minus \- Point \. Solidus \/ |
| 1009 |
%% Colon \: Semicolon \; Less than \< |
| 1010 |
%% Equals \= Greater than \> Question mark \? |
| 1011 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
| 1012 |
%% Right bracket \] Circumflex \^ Underscore \_ |
| 1013 |
%% Grave accent \` Left brace \{ Vertical bar \| |
| 1014 |
%% Right brace \} Tilde \~} |