| 1 |
% \CheckSum{635} |
| 2 |
% \iffalse |
| 3 |
% |
| 4 |
% File `eulervm.dtx'. |
| 5 |
% Copyright (c) 1999--2005 Walter Schmidt |
| 6 |
% |
| 7 |
% This file is part of the `Euler-VM Bundle'. |
| 8 |
% ------------------------------------------- |
| 9 |
% |
| 10 |
% It may be distributed and/or modified under the conditions |
| 11 |
% of the LaTeX Project Public License, either version 1.1 |
| 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.1 or later is part of all distributions of LaTeX |
| 16 |
% version 1999/06/01 or later. |
| 17 |
% |
| 18 |
% The list of all files belonging to the `Euler-VM Bundle' is |
| 19 |
% given in the file `manifest.txt'. |
| 20 |
% |
| 21 |
% \fi |
| 22 |
% |
| 23 |
% \iffalse |
| 24 |
%<*driver> |
| 25 |
\ProvidesFile{eulervm.dtx} |
| 26 |
%</driver> |
| 27 |
% |
| 28 |
%<package>\ProvidesPackage{eulervm} |
| 29 |
%<uzeur>\ProvidesFile{uzeur.fd}% |
| 30 |
%<uzeus>\ProvidesFile{uzeus.fd}% |
| 31 |
%<uzeuex>\ProvidesFile{uzeuex.fd}% |
| 32 |
[2005/01/11 v4.0 (WaS)] |
| 33 |
% |
| 34 |
%<*driver> |
| 35 |
\documentclass{ltxdoc} |
| 36 |
\OnlyDescription |
| 37 |
\usepackage{flafter} |
| 38 |
\usepackage{caption}[2004/01/23] |
| 39 |
\renewcommand{\rmdefault}{pplx} |
| 40 |
\linespread{1.06} |
| 41 |
\usepackage[euler-digits]{eulervm} |
| 42 |
% *** We are using Palatino and Euler-VM at 10pt. *** |
| 43 |
% *** Do NOT change this through ltxdoc.cfg! *** |
| 44 |
\def\tempa{cmss}\ifx\sfdefault\tempa |
| 45 |
\usepackage[scaled]{helvet} |
| 46 |
\fi |
| 47 |
\usepackage{url,mflogo} |
| 48 |
\captionsetup{labelfont={small,bf},textfont={small}} |
| 49 |
\DeclareMathAccent\eulerhat\mathalpha{symbols}{222} |
| 50 |
\renewcommand{\TeX}{TeX\@} |
| 51 |
\renewcommand{\LaTeX}{La\TeX} |
| 52 |
\begin{document} |
| 53 |
\DocInput{eulervm.dtx} |
| 54 |
\end{document} |
| 55 |
%</driver> |
| 56 |
% \fi |
| 57 |
% |
| 58 |
% \GetFileInfo{eulervm.dtx} |
| 59 |
% \renewcommand{\labelitemi}{$\triangleright$} |
| 60 |
% \newcommand\Lopt[1]{\textsf{#1}} |
| 61 |
% \let\Lpack\Lopt |
| 62 |
% \title{The Euler Virtual Math Fonts \\ for use with \LaTeX} |
| 63 |
% \author{Walter Schmidt\thanks{\texttt{[email protected]}}} |
| 64 |
% \date{\fileversion{} -- \filedate} |
| 65 |
% |
| 66 |
% \maketitle |
| 67 |
% |
| 68 |
% \begin{abstract}\noindent |
| 69 |
% The Euler math fonts are suitable for math typesetting in conjunction with a |
| 70 |
% variety of popular text fonts which do not provide math character sets |
| 71 |
% of their own. |
| 72 |
% Euler-VM is a set of virtual math fonts based on Euler and CM, accompanied |
| 73 |
% by a macro package for easy use with \LaTeX. |
| 74 |
% \end{abstract} |
| 75 |
% |
| 76 |
% \tableofcontents |
| 77 |
% |
| 78 |
% |
| 79 |
% |
| 80 |
% \section{The Euler math fonts} |
| 81 |
% `With Donald Knuth's assistance and encouragement, Hermann Zapf, one of the |
| 82 |
% premier font designers of this century, was commissioned to create designs |
| 83 |
% for Fraktur and script, and for a somewhat experimental, upright cursive |
| 84 |
% alphabet that would represent a mathematician's handwriting on a blackboard |
| 85 |
% and that could be used in place of italic. The designs that resulted were |
| 86 |
% named Euler, in honor of Leonhard Euler, a prominent mathematician of the |
| 87 |
% eighteenth century. Zapf's designs were rendered in \MF{} code by graduate |
| 88 |
% students at Stanford, working under Knuth's direction. [\dots] |
| 89 |
% Knuth also noticed that the |
| 90 |
% style of some symbols in the Computer Modern extension font, in particular |
| 91 |
% the integral sign, was too slanted to be attractive with Euler, and |
| 92 |
% consequently he prepared a new (partial) extension font for use with Euler.' |
| 93 |
% \cite{amsfndoc} |
| 94 |
% |
| 95 |
% Knuth's book \textit{Concrete Mathematics} was typeset using |
| 96 |
% the Concrete font family for text and the Euler fonts for math. |
| 97 |
% With \LaTeX, the particular math font setup of this book can be mimicked |
| 98 |
% by means of the package \Lpack{euler}, see \cite{euler}. |
| 99 |
% In the meantime it became |
| 100 |
% obvious that the Euler fonts match other text font families equally well. |
| 101 |
% |
| 102 |
% Unfortunately, the Euler fonts do not comprise all symbols required for |
| 103 |
% mathematical typesetting with \LaTeX. As a result, the \Lpack{euler} package |
| 104 |
% needs to redefine most of \LaTeX's math font setup, so that certain |
| 105 |
% symbols are taken from Euler, whereas others must still come from the |
| 106 |
% CM math fonts. |
| 107 |
% |
| 108 |
% |
| 109 |
% \section{The Euler-VM fonts} |
| 110 |
% Euler Virtual Math (Euler-VM) |
| 111 |
% is a set of \emph{virtual} fonts based primarily on the Euler fonts. |
| 112 |
% The missing symbols are taken from Computer Modern, and the encoding |
| 113 |
% follows CM-Math as closely as possible. |
| 114 |
% This approach has several advantages over immediately using the |
| 115 |
% \emph{real} Euler fonts, as practiced in the \Lpack{euler} package: |
| 116 |
% Most noticeably, less \TeX{} resources are consumed, |
| 117 |
% the quality of various math symbols is improved, |
| 118 |
% and there will be far lesser compatibility problems with other packages. |
| 119 |
% |
| 120 |
% Actually, the reason for creating Euler-VM was the fact that the |
| 121 |
% \Lpack{euler} package does not provide a usable \cmd{\hbar} or |
| 122 |
% \cmd{\hslash}, and that the \cmd{\hslash} symbol from the |
| 123 |
% \Lpack{amssymb} package cannot be used, either, because it follows CM Roman style. |
| 124 |
% This made the beautiful Euler fonts more or less unusable for |
| 125 |
% physics and related fields. |
| 126 |
% The only way to fix this was to provide a `faked' Euler-style \cmd{\hslash} |
| 127 |
% using the virtual font mechanism. |
| 128 |
% As a side effect, it was possible to make the layout of the virtual fonts |
| 129 |
% compatible with CM Math to a large extent, and -- since the style file |
| 130 |
% had to be rewritten anyway -- further improvements were introduced. |
| 131 |
% |
| 132 |
% |
| 133 |
% \section{Suitable text font families} |
| 134 |
% Beside the above-mentioned Concrete, the font families Palatino, Aldus |
| 135 |
% and Melior blend well with Euler -- which is not surprising, since they were |
| 136 |
% designed by H.~Zapf, too. |
| 137 |
% The Euler math fonts have also proven to go sufficiently well |
| 138 |
% with other typefaces such Sabon\footnote{the classical one, not Sabon Next -- unfortunately} |
| 139 |
% or Minion, that do not differ too much from Euler as far as the weight (stroke width) |
| 140 |
% and x-height are concerned. |
| 141 |
% |
| 142 |
% Changing the default text font family is easy, see \cite{fntguide}. |
| 143 |
% For instance, in the present document the command |
| 144 |
% \begin{quote} |
| 145 |
% |\renewcommand{\rmdefault}{pplx}| |
| 146 |
% \end{quote} |
| 147 |
% makes \LaTeX{} use Palatino in place of CM~Roman. |
| 148 |
% |
| 149 |
% Do \emph{not} use the Euler math fonts in conjunction |
| 150 |
% with the default Computer Modern text fonts -- this is ugly! |
| 151 |
% |
| 152 |
% |
| 153 |
% \section{The \LaTeX{} package \Lpack{eulervm}} |
| 154 |
% |
| 155 |
% Loading the \Lpack{eulervm} package will redefine \LaTeX's |
| 156 |
% math font setup, so that the Euler-VM fonts and the default body font |
| 157 |
% are substituted for CM Math and CM Roman. Roughly said: |
| 158 |
% \begin{itemize} |
| 159 |
% \item CM Math Italic is replaced with Euler Roman. |
| 160 |
% \item CM Calligraphic is replaced with Euler Script. |
| 161 |
% \item Several operator and delimiter symbols are replaced with |
| 162 |
% alternative variants matching the Euler style. |
| 163 |
% \item In numbers and operator names, |
| 164 |
% CM Roman is replaced with the default text font. |
| 165 |
% \end{itemize} |
| 166 |
% Figure \ref{fig:roman} shows the Euler Roman and Script alphabets. |
| 167 |
% |
| 168 |
% \begin{figure} |
| 169 |
% {\centering |
| 170 |
% $ABCDEFGHIJKLMNOPQRSTUVWXYZ$\\ |
| 171 |
% $abcdefghijklmnopqrstuvwxyz$\\ |
| 172 |
% $\Gamma \Delta \Theta \Lambda \Xi \Pi \Sigma \Upsilon \Phi \Psi \Omega$\\ |
| 173 |
% $ \alpha \beta \gamma \delta \epsilon \varepsilon \zeta \eta \theta \vartheta \iota \kappa |
| 174 |
% \lambda \mu \nu \xi \pi \varpi \rho |
| 175 |
% \sigma \tau \upsilon \phi \varphi \chi \psi \omega$\\ |
| 176 |
% $\mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$\\} |
| 177 |
% \caption{The Euler Roman and Script alphabets} |
| 178 |
% \label{fig:roman} |
| 179 |
% \end{figure} |
| 180 |
% |
| 181 |
% |
| 182 |
% \subsection{Special features} |
| 183 |
% |
| 184 |
% \subsubsection{The package option \Lopt{small}} |
| 185 |
% \label{sec:small} |
| 186 |
% Loading the package with the option \Lopt{small} causes the |
| 187 |
% Euler fonts to be loaded at 95\% of their nominal size, |
| 188 |
% thus blending better with certain text font families, |
| 189 |
% for instance Aldus or Minion. |
| 190 |
% The option acts also on the AMS symbols and Euler Fraktur fonts, |
| 191 |
% which can be used by means of the \Lpack{amssymb} and \Lpack{eufrak} packages; |
| 192 |
% any further math fonts used in your document are, however, |
| 193 |
% unaffected. |
| 194 |
% |
| 195 |
% |
| 196 |
% \subsubsection{Slashed \textit{h}} |
| 197 |
% In contrast to `normal' \LaTeX, a \cmd{\hslash} symbol $\hslash$ |
| 198 |
% is provided, but there is no \cmd{\hbar}. |
| 199 |
% |
| 200 |
% |
| 201 |
% \subsubsection{Bold math alphabet} |
| 202 |
% The package defines a new math alphabet \cmd{\mathbold} to typeset |
| 203 |
% math variables, incl.\ Greek, in a bold style: |
| 204 |
% \begin{verse} |
| 205 |
% Default: $a, b, c, \dots, z$ \qquad \cmd{\mathbold}: $\mathbold{a, b, c, }\dots,\mathbold{z}$ |
| 206 |
% \end{verse} |
| 207 |
% Do not mix this up with \cmd{\mathbf}: The latter will produce |
| 208 |
% characters from the bold \emph{text} font, whereas \cmd{\mathbold} |
| 209 |
% will use the bold series of the Euler math font. |
| 210 |
% |
| 211 |
% |
| 212 |
% \subsubsection{Size of the `large' math symbols} |
| 213 |
% The size of the `large' math symbols is automatically adjusted with respect |
| 214 |
% to the base font size. You need \emph{not} load the extra package |
| 215 |
% \Lpack{exscale} for this purpose. |
| 216 |
% |
| 217 |
% |
| 218 |
% \subsection{Text fonts in math} |
| 219 |
% |
| 220 |
% \subsubsection{Math alphabets} |
| 221 |
% Function names as well as math accents are taken from the default text font family. |
| 222 |
% This holds for the math alphabets \cmd{\mathrm} and \cmd{\mathbf}, too. |
| 223 |
% The \Lpack{eulervm} package determines the default font family |
| 224 |
% (i.e.,\ the meaning of the macro \cmd{\familydefault}) |
| 225 |
% at load time and will apply it for the above purposes then. |
| 226 |
% In the same way, the math alphabets \cmd{\mathsf} and \cmd{\mathtt} |
| 227 |
% are mapped to \cmd{\sfdefault} and \cmd{\ttdefault}. |
| 228 |
% Thus, you should redefine the default text fonts \emph{before} |
| 229 |
% loading the \Lpack{eulervm} package! |
| 230 |
% |
| 231 |
% |
| 232 |
% \subsubsection{Numbers and punctuation in math mode} |
| 233 |
% The normal behavior is to take the digits, the comma and the period |
| 234 |
% from the default text font family. |
| 235 |
% Popular text fonts may, however, not be suitable for typesetting math: |
| 236 |
% Maybe the numeral `1' cannot be distinguished |
| 237 |
% clearly enough from the letter `l', or the style of the numerals does |
| 238 |
% not sufficiently suit the Euler letters, or you are using oldstyle digits. |
| 239 |
% Furthermore, most text fonts are scaled linearly, so that the digits |
| 240 |
% may become too thin when used in super- or subscripts. |
| 241 |
% |
| 242 |
% The \Lpack{eulervm} package provides the option \Lopt{euler-digits}, |
| 243 |
% which makes the digits, the comma and the period come from Euler Roman |
| 244 |
% in math mode. Note that the Euler fonts come with separate designs sizes |
| 245 |
% of 10\,pt, 7\,pt and 5\,pt\,! |
| 246 |
% The option should be used with care, because entering |
| 247 |
% |$1.23$| will yield a different result than |1.23| then, |
| 248 |
% and you will in each case have to decide whether an input fragment |
| 249 |
% is a math or a non-math entity. |
| 250 |
% The samples on page~\pageref{sec:samples} show the Euler digits. |
| 251 |
% |
| 252 |
% |
| 253 |
% \subsubsection{The `hat' accent for math} |
| 254 |
% By default, the math accent |\hat| is taken from the text font |
| 255 |
% With the option \Lopt{euler-hat-accent}, |
| 256 |
% an alternative one from Euler Fraktur will be used. Compare the |
| 257 |
% default accent (in the present document from Palatino) with the |
| 258 |
% alternative variant: |
| 259 |
% \[ |
| 260 |
% \hat{u} \longleftrightarrow \eulerhat{u} |
| 261 |
% \] |
| 262 |
% |
| 263 |
% |
| 264 |
% \subsubsection{Encoding} |
| 265 |
% The default text font encoding |
| 266 |
% (i.e.\ the meaning of the macro \cmd{\encodingdefault}) |
| 267 |
% is determined when \Lpack{eulervm} is loaded; this encoding |
| 268 |
% will then be applied to any text fonts used in math mode (see above.) |
| 269 |
% The \Lpack{eulervm} package can, however, handle the encodings OT1 (\LaTeX's default), |
| 270 |
% T1 and LY1 only. If your preferred text font encoding is a different one, |
| 271 |
% or if you want to override the default setting for one reason or another, |
| 272 |
% you have to specify one of the above as a package option, e.g.: |
| 273 |
% \begin{verse} |
| 274 |
% |\usepackage[OT1]{eulervm}| |
| 275 |
% \end{verse} |
| 276 |
% This makes the \Lpack{eulervm} package use the given encoding for the text |
| 277 |
% fonts in math, without affecting text mode. |
| 278 |
% Be sure that the text fonts are actually available with this encoding! |
| 279 |
% |
| 280 |
% |
| 281 |
% \subsection{Using PostScript fonts} |
| 282 |
% The CM as well as the Euler fonts |
| 283 |
% are available in both \MF\ and Type1 (PostScript) format. |
| 284 |
% The collection of Type1 fonts distributed by the AMS |
| 285 |
% (or in conjunction with VTeX, resp.) is, however, |
| 286 |
% lacking a few sizes. In contrast to the \Lpack{euler} package, |
| 287 |
% \Lpack{eulervm} does \emph{not} make use of these missing fonts; |
| 288 |
% thus, you can create documents which do not require any bitmap fonts. |
| 289 |
% |
| 290 |
% |
| 291 |
% \subsection{Options and command summary} |
| 292 |
% \noindent Options of the \Lpack{eulervm} package: |
| 293 |
% \begin{itemize} |
| 294 |
% \item \Lopt{small}\quad Load the Euler fonts at 95\% of their nominal size. |
| 295 |
% \item \Lopt{euler-digits}\quad Take numerals, comma and period from |
| 296 |
% Euler Roman in math mode. |
| 297 |
% \item \Lopt{euler-hat-accent}\quad Use the \cmd{\hat} accent from Euler Fraktur. |
| 298 |
% \item \Lopt{OT1}\quad Use OT1 encoding for text fonts in math, regardless |
| 299 |
% of the default text font encoding. |
| 300 |
% \item \Lopt{T1}\quad ditto, T1 |
| 301 |
% \item \Lopt{LY1}\quad ditto, LY1 |
| 302 |
% \end{itemize} |
| 303 |
% New commands: |
| 304 |
% \begin{itemize} |
| 305 |
% \item \cmd{\mathbold}\quad A bold Euler-style math alphabet. |
| 306 |
% \item \cmd{\hslash}\quad A slashed Euler-style h. |
| 307 |
% \end{itemize} |
| 308 |
% |
| 309 |
% |
| 310 |
% \subsection{Known problems and deficiencies} |
| 311 |
% \begin{itemize} |
| 312 |
% \item Certain symbols in the bold math fonts are far from perfect. |
| 313 |
% E.g., the bold equals sign of the Euler fonts |
| 314 |
% is actually smaller than the regular one! |
| 315 |
% \item The dot-generating macros such as \cmd{\dots}, \cmd{vdots} etc.\ take |
| 316 |
% their dots from different fonts. This results partially from a design flaw |
| 317 |
% in \LaTeX, which can be fixed by loading of the package \Lpack{mathdots}; |
| 318 |
% yet, the macros \cmd{\cdot} and \cmd{\cdots} will always produce dots from the |
| 319 |
% Computer Modern Symbols font, which may not perfectly match the other dot |
| 320 |
% symbols used. |
| 321 |
% \end{itemize} |
| 322 |
% |
| 323 |
% |
| 324 |
% \section{Credits} |
| 325 |
% Frank Jensen's \Lpack{euler} package \cite{euler} served as a model |
| 326 |
% for parts of \Lpack{eulervm}. The implementation |
| 327 |
% of the \Lopt{OT1}, \Lopt{T1} and \Lopt{LY1} options was adopted |
| 328 |
% from Frank Mittelbach's \Lpack{lucidabr} package \cite{lucidabr}. |
| 329 |
% Special thanks to Henning `Hraban' Ramm for typographical and |
| 330 |
% Frank Mittelbach for \TeX{}nical advice. |
| 331 |
% |
| 332 |
% |
| 333 |
% \section{Sample Formulas} |
| 334 |
% \label{sec:samples} |
| 335 |
% \subsubsection*{From the \MF\ book, p.\,298} |
| 336 |
% [...] If $n > 2$, the identity |
| 337 |
% \[ |
| 338 |
% t[u_1,\dots,u_n] = t\bigl[t[u_1,\dots,u_{n_1}], t[u_2,\dots,u_n]\bigr] |
| 339 |
% \] |
| 340 |
% defines $t[u_1,\dots,u_n]$ recursively, and it can be shown that the alternative definition |
| 341 |
% \[ |
| 342 |
% t[u_1,\dots,u_n] = t\bigl[t[u_1,u_2],\dots,t[u_{n-1},u_n]\bigr] |
| 343 |
% \] |
| 344 |
% gives the same result. Indeed, we have |
| 345 |
% \[ |
| 346 |
% 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{,} |
| 347 |
% \] |
| 348 |
% a Bernstein polynomial of order $n-1$. |
| 349 |
% |
| 350 |
% \subsubsection*{From the \MF\ book, p.\,59} |
| 351 |
% \[ |
| 352 |
% \frac{x_1 + 20}{x_2 - 20} + \sqrt{a^2 - \frac{2}{3}\sqrt b} |
| 353 |
% \] |
| 354 |
% |
| 355 |
% \subsubsection*{From the \TeX\ book, exercise 19.13} |
| 356 |
% \[ |
| 357 |
% \int_{-\infty}^{+\infty} \mathrm{e}^{-x^2}\,\mathrm{d}x = \sqrt{\pi} |
| 358 |
% \] |
| 359 |
% |
| 360 |
% |
| 361 |
% \StopEventually{ |
| 362 |
% \begin{thebibliography}{1} |
| 363 |
% \raggedright |
| 364 |
% \bibitem{amsfndoc} |
| 365 |
% American Mathematical Society:\\ |
| 366 |
% \textit{User's Guide to AMSFonts Version 2.2}.\\ |
| 367 |
% Jan.\ 1995.\\ |
| 368 |
% CTAN: \path{fonts/amsfonts/doc/amsfndoc.ps} |
| 369 |
% \bibitem{concrete} |
| 370 |
% Ronald L.\ Graham, Donald E. Knuth, and |
| 371 |
% Oren Patashnik:\\ |
| 372 |
% \textit{Concrete Mathematics}.\\ |
| 373 |
% Addison-Wesley, 1989. |
| 374 |
% \bibitem{fntguide} |
| 375 |
% \LaTeX3 Project Team (Ed.):\\ |
| 376 |
% \textit{LaTeX2e font selection.} |
| 377 |
% (Part of the \LaTeX{} online documentation.) |
| 378 |
% \bibitem{euler} |
| 379 |
% Frank Jensen:\\ |
| 380 |
% \textit{The \Lpack{euler} package, v2.5}.\\ |
| 381 |
% Mar.\ 1995.\\ |
| 382 |
% CTAN: \path{macros/latex/contrib/euler/} |
| 383 |
% \bibitem{lucidabr} |
| 384 |
% Frank Mittelbach:\\ |
| 385 |
% \textit{The \Lpack{lucidabr} package, v4.10}.\\ |
| 386 |
% Jan.\ 1998.\\ |
| 387 |
% CTAN: \path{macros/latex/contrib/psnfssx/lucidabr/} |
| 388 |
% \end{thebibliography} |
| 389 |
% } |
| 390 |
% |
| 391 |
% {\sloppy |
| 392 |
% \section{The implementation of the \Lpack{eulervm} package} |
| 393 |
% |
| 394 |
% \subsection{Switching off font warnings} |
| 395 |
% We suppress the annoying `warnings' about math fonts being redefined: |
| 396 |
% \begin{macrocode} |
| 397 |
%<*package> |
| 398 |
\let\evm@info\@font@info |
| 399 |
\let\evm@warning\@font@warning |
| 400 |
\let\@font@info\@gobble |
| 401 |
\let\@font@warning\@gobble |
| 402 |
% \end{macrocode} |
| 403 |
% |
| 404 |
% \subsection{Options} |
| 405 |
% In addition to usual options processing we also have to memorize the |
| 406 |
% options via \cmd{\newif}'s in order to handle some cross-dependencies. |
| 407 |
% |
| 408 |
% The option \Lopt{small}. |
| 409 |
% Note that only a fixed scaling of 0.95 is provided, |
| 410 |
% for the time being. This suits, for instance, the Aldus, |
| 411 |
% and Minion text fonts. |
| 412 |
% \begin{macrocode} |
| 413 |
\DeclareOption{small}{% |
| 414 |
\def\zeu@Scale{.95}} |
| 415 |
% \end{macrocode} |
| 416 |
% |
| 417 |
% The option \Lopt{euler-digits}: |
| 418 |
% \begin{macrocode} |
| 419 |
\newif\ifevm@ed |
| 420 |
\DeclareOption{euler-digits}{% |
| 421 |
\evm@edtrue |
| 422 |
\DeclareMathSymbol{0}\mathalpha{letters}{"30} |
| 423 |
\DeclareMathSymbol{1}\mathalpha{letters}{"31} |
| 424 |
\DeclareMathSymbol{2}\mathalpha{letters}{"32} |
| 425 |
\DeclareMathSymbol{3}\mathalpha{letters}{"33} |
| 426 |
\DeclareMathSymbol{4}\mathalpha{letters}{"34} |
| 427 |
\DeclareMathSymbol{5}\mathalpha{letters}{"35} |
| 428 |
\DeclareMathSymbol{6}\mathalpha{letters}{"36} |
| 429 |
\DeclareMathSymbol{7}\mathalpha{letters}{"37} |
| 430 |
\DeclareMathSymbol{8}\mathalpha{letters}{"38} |
| 431 |
\DeclareMathSymbol{9}\mathalpha{letters}{"39} |
| 432 |
} |
| 433 |
% \end{macrocode} |
| 434 |
% |
| 435 |
% The option \Lopt{euler-hat-accent}: |
| 436 |
% \begin{macrocode} |
| 437 |
\newif\ifevm@eha |
| 438 |
\DeclareOption{euler-hat-accent}{\evm@ehatrue} |
| 439 |
% \end{macrocode} |
| 440 |
% |
| 441 |
% The text encoding for the `operators' font: |
| 442 |
% \begin{macrocode} |
| 443 |
\edef\operator@encoding{\encodingdefault} |
| 444 |
\DeclareOption{OT1}{\def\operator@encoding{OT1}} |
| 445 |
\DeclareOption{T1}{\def\operator@encoding{T1}} |
| 446 |
\DeclareOption{LY1}{\def\operator@encoding{LY1}} |
| 447 |
% \end{macrocode} |
| 448 |
% |
| 449 |
% The \Lopt{icomma} option is provided only for compatibility |
| 450 |
% with previous versions. |
| 451 |
% \begin{macrocode} |
| 452 |
\newif\ifevm@ic |
| 453 |
\DeclareOption{icomma}{\evm@ictrue} |
| 454 |
% \end{macrocode} |
| 455 |
% |
| 456 |
% |
| 457 |
% \subsection{Math font setup} |
| 458 |
% We redefine the `letters', `symbols' and `largesymbols' |
| 459 |
% alphabets. |
| 460 |
% The `operators' font will be redefined only after processing |
| 461 |
% of the options. |
| 462 |
% \begin{macrocode} |
| 463 |
\DeclareSymbolFont{letters} {U}{zeur}{m}{n} |
| 464 |
\SetSymbolFont{letters}{bold} {U}{zeur}{b}{n} |
| 465 |
\DeclareSymbolFont{symbols} {U}{zeus}{m}{n} |
| 466 |
\SetSymbolFont{symbols}{bold} {U}{zeus}{b}{n} |
| 467 |
\DeclareSymbolFont{largesymbols} {U}{zeuex}{m}{n} |
| 468 |
\DeclareMathAlphabet{\mathbold} {U}{zeur}{b}{n} |
| 469 |
% \end{macrocode} |
| 470 |
% |
| 471 |
% |
| 472 |
% \subsection{The `letters' math font} |
| 473 |
% |
| 474 |
% The uppercase Greek letters are to be taken from Euler Roman now: |
| 475 |
% \begin{macrocode} |
| 476 |
\DeclareMathSymbol\Gamma {\mathalpha}{letters}{"00} |
| 477 |
\DeclareMathSymbol\Delta {\mathalpha}{letters}{"01} |
| 478 |
\DeclareMathSymbol\Theta {\mathalpha}{letters}{"02} |
| 479 |
\DeclareMathSymbol\Lambda {\mathalpha}{letters}{"03} |
| 480 |
\DeclareMathSymbol\Xi {\mathalpha}{letters}{"04} |
| 481 |
\DeclareMathSymbol\Pi {\mathalpha}{letters}{"05} |
| 482 |
\DeclareMathSymbol\Sigma {\mathalpha}{letters}{"06} |
| 483 |
\DeclareMathSymbol\Upsilon {\mathalpha}{letters}{"07} |
| 484 |
\DeclareMathSymbol\Phi {\mathalpha}{letters}{"08} |
| 485 |
\DeclareMathSymbol\Psi {\mathalpha}{letters}{"09} |
| 486 |
\DeclareMathSymbol\Omega {\mathalpha}{letters}{"0A} |
| 487 |
% \end{macrocode} |
| 488 |
% Lowercase Greek letters are made |\mathalpha|, too, because |
| 489 |
% we want the |\mathbold| command to act on them: |
| 490 |
% \begin{macrocode} |
| 491 |
\DeclareMathSymbol{\alpha} {\mathalpha}{letters}{"0B} |
| 492 |
\DeclareMathSymbol{\beta} {\mathalpha}{letters}{"0C} |
| 493 |
\DeclareMathSymbol{\gamma} {\mathalpha}{letters}{"0D} |
| 494 |
\DeclareMathSymbol{\delta} {\mathalpha}{letters}{"0E} |
| 495 |
\DeclareMathSymbol{\epsilon}{\mathalpha}{letters}{"0F} |
| 496 |
\DeclareMathSymbol{\zeta} {\mathalpha}{letters}{"10} |
| 497 |
\DeclareMathSymbol{\eta} {\mathalpha}{letters}{"11} |
| 498 |
\DeclareMathSymbol{\theta} {\mathalpha}{letters}{"12} |
| 499 |
\DeclareMathSymbol{\iota} {\mathalpha}{letters}{"13} |
| 500 |
\DeclareMathSymbol{\kappa} {\mathalpha}{letters}{"14} |
| 501 |
\DeclareMathSymbol{\lambda} {\mathalpha}{letters}{"15} |
| 502 |
\DeclareMathSymbol{\mu} {\mathalpha}{letters}{"16} |
| 503 |
\DeclareMathSymbol{\nu} {\mathalpha}{letters}{"17} |
| 504 |
\DeclareMathSymbol{\xi} {\mathalpha}{letters}{"18} |
| 505 |
\DeclareMathSymbol{\pi} {\mathalpha}{letters}{"19} |
| 506 |
\DeclareMathSymbol{\rho} {\mathalpha}{letters}{"1A} |
| 507 |
\DeclareMathSymbol{\sigma} {\mathalpha}{letters}{"1B} |
| 508 |
\DeclareMathSymbol{\tau} {\mathalpha}{letters}{"1C} |
| 509 |
\DeclareMathSymbol{\upsilon}{\mathalpha}{letters}{"1D} |
| 510 |
\DeclareMathSymbol{\phi} {\mathalpha}{letters}{"1E} |
| 511 |
\DeclareMathSymbol{\chi} {\mathalpha}{letters}{"1F} |
| 512 |
\DeclareMathSymbol{\psi} {\mathalpha}{letters}{"20} |
| 513 |
\DeclareMathSymbol{\omega} {\mathalpha}{letters}{"21} |
| 514 |
\DeclareMathSymbol{\varepsilon}{\mathalpha}{letters}{"22} |
| 515 |
\DeclareMathSymbol{\vartheta}{\mathalpha}{letters}{"23} |
| 516 |
\DeclareMathSymbol{\varpi} {\mathalpha}{letters}{"24} |
| 517 |
\DeclareMathSymbol{\varphi} {\mathalpha}{letters}{"27} |
| 518 |
% \end{macrocode} |
| 519 |
% |
| 520 |
% {\sloppy |
| 521 |
% When the upper-case Greek letters are of type |\mathalpha| |
| 522 |
% and do \emph{not} come from the operators font, |\mathrm{\Omega}| |
| 523 |
% yields garbage. |
| 524 |
% This is likely to happen in conjunction with the packages |
| 525 |
% \Lpack{gensymb} and \Lpack{units}. As a countermeasure, we provide |
| 526 |
% a macro |\upOmega| with type |\mathord|. The \Lpack{gensymb} package will |
| 527 |
% automatically use this macro, rather than |\Omega|. This is the only way |
| 528 |
% to make |\unit{\ohm}| work as expected. |
| 529 |
% For the sake of full compatibility with other packages, a corresponding |
| 530 |
% |\upDelta| is made available, too. |
| 531 |
% } |
| 532 |
% \begin{macrocode} |
| 533 |
\DeclareMathSymbol\upOmega {\mathord}{letters}{"0A} |
| 534 |
\DeclareMathSymbol\upDelta {\mathord}{letters}{"01} |
| 535 |
% \end{macrocode} |
| 536 |
% |
| 537 |
% Euler doesn't have the special variants of |\sigma| and |\rho|: |
| 538 |
% \begin{macrocode} |
| 539 |
\let\varsigma=\sigma |
| 540 |
\let\varrho=\rho |
| 541 |
% \end{macrocode} |
| 542 |
% |
| 543 |
% Euler-VM has its own |\hslash|, but there is no |\hbar|: |
| 544 |
% \begin{macrocode} |
| 545 |
\DeclareMathSymbol{\evm@hslash}{\mathord}{letters}{128} |
| 546 |
\def\evm@hbar{\evm@hslash% |
| 547 |
\PackageWarning{eulervm}{% |
| 548 |
Symbol \protect\hbar\space not available;\MessageBreak |
| 549 |
\protect\hslash\space will be used instead}} |
| 550 |
% \end{macrocode} |
| 551 |
% The actual macros \cmd{\hbar} and \cmd{\hslash} will be defined |
| 552 |
% after the preamble. |
| 553 |
% |
| 554 |
% The slash used to come from `operators': |
| 555 |
% \begin{macrocode} |
| 556 |
\DeclareMathDelimiter{/}{\mathord}{letters}{61}{largesymbols}{"0E} |
| 557 |
% \end{macrocode} |
| 558 |
% |
| 559 |
% |
| 560 |
% \subsection{The `symbols' math font} |
| 561 |
% The following characters are usually taken from the `operators' |
| 562 |
% font; now they come from `symbols': |
| 563 |
% \begin{macrocode} |
| 564 |
\DeclareMathSymbol{+}\mathbin {symbols}{171} |
| 565 |
\DeclareMathSymbol{:}\mathrel {symbols}{186} |
| 566 |
\DeclareMathSymbol{=}\mathrel {symbols}{189} |
| 567 |
% \end{macrocode} |
| 568 |
% \begin{macrocode} |
| 569 |
\DeclareMathDelimiter{(}{\mathopen} {symbols}{168}{largesymbols}{"00} |
| 570 |
\DeclareMathDelimiter{)}{\mathclose}{symbols}{169}{largesymbols}{"01} |
| 571 |
\DeclareMathDelimiter{[}{\mathopen} {symbols}{219}{largesymbols}{"02} |
| 572 |
\DeclareMathDelimiter{]}{\mathclose}{symbols}{221}{largesymbols}{"03} |
| 573 |
% \end{macrocode} |
| 574 |
% |
| 575 |
% The font family \texttt{zeus} provides a semicolon in slot~187, |
| 576 |
% an exclamation mark in slot~161, and a question mark in slot~191, too; |
| 577 |
% for the time being these are unused. |
| 578 |
% |
| 579 |
% |
| 580 |
% \subsection{Extensible arrows} |
| 581 |
% |
| 582 |
% The long arrows are made using the macros |\Relbar| (for double |
| 583 |
% arrows) and |\relbar| (for single arrows). The standard \LaTeX\ |
| 584 |
% definitions of these macros use the `\texttt{=}' and `\texttt{-}' |
| 585 |
% characters to produce the extension part of the long arrows. |
| 586 |
% These characters come, however, from Euler Fraktur now. Thus we |
| 587 |
% have to redefine the |\Relbar| and |\relbar| macros so as to use |
| 588 |
% appropriately scaled characters from CM, which are |
| 589 |
% provided in our virtual `letters' font. |
| 590 |
% \begin{macrocode} |
| 591 |
\DeclareMathSymbol{\cm@minus}{\mathord}{letters}{129} |
| 592 |
\def\relbar{\mathrel{\smash\cm@minus}} |
| 593 |
\let\Relbar\undefined |
| 594 |
\DeclareMathSymbol{\Relbar}{\mathrel}{letters}{130} |
| 595 |
% \end{macrocode} |
| 596 |
% Unfortunately, since the definitions of the `arrow-filling' macros |
| 597 |
% (|\leftarrowfill| and |\rightarrowfill|) in standard \LaTeX\ still |
| 598 |
% use explicit minus signs (instead of |\relbar|), we also have to |
| 599 |
% redefine those macros: |
| 600 |
% \begin{macrocode} |
| 601 |
\def\leftarrowfill |
| 602 |
{$\m@th\mathord\leftarrow\mkern-6mu% |
| 603 |
\cleaders\hbox{$\mkern-2mu\cm@minus\mkern-2mu$}\hfill |
| 604 |
\mkern-6mu\cm@minus$} |
| 605 |
\def\rightarrowfill |
| 606 |
{$\m@th\cm@minus\mkern-6mu% |
| 607 |
\cleaders\hbox{$\mkern-2mu\cm@minus\mkern-2mu$}\hfill |
| 608 |
\mkern-6mu\mathord\rightarrow$} |
| 609 |
% \end{macrocode} |
| 610 |
% |
| 611 |
% |
| 612 |
% \subsection{Miscellaneous} |
| 613 |
% Our virtual `largesymbols' font comprises \texttt{euex10}, which |
| 614 |
% provides also the $\infty$ symbol. |
| 615 |
% \begin{macrocode} |
| 616 |
\DeclareMathSymbol{\infty}{\mathord}{largesymbols}{153} |
| 617 |
% \end{macrocode} |
| 618 |
% |
| 619 |
% Knuth wanted a little extra space before the prime superscript: |
| 620 |
% \begin{macrocode} |
| 621 |
\begingroup |
| 622 |
\catcode`\'=\active |
| 623 |
\gdef'{^\bgroup\mskip2mu\prim@s} |
| 624 |
\endgroup |
| 625 |
% \end{macrocode} |
| 626 |
% |
| 627 |
% |
| 628 |
% \subsection{Options procesing} |
| 629 |
% This must be done before the `operators' font is defined. |
| 630 |
% \begin{macrocode} |
| 631 |
\ProcessOptions\relax |
| 632 |
% \end{macrocode} |
| 633 |
% We still have to map the comma and the period to the text font, |
| 634 |
% in case the \Lopt{euler-digits} option has \emph{not} been selected: |
| 635 |
% \begin{macrocode} |
| 636 |
\ifevm@ed\relax\else |
| 637 |
\DeclareMathSymbol{,}{\mathpunct}{operators}{44} |
| 638 |
\DeclareMathSymbol{.}{\mathord}{operators}{46} |
| 639 |
\DeclareMathSymbol{\ldotp}{\mathpunct}{operators}{46} |
| 640 |
\fi |
| 641 |
% \end{macrocode} |
| 642 |
% |
| 643 |
% |
| 644 |
% \subsection{Text fonts in math}\label{text-fonts} |
| 645 |
% |
| 646 |
% The text fonts used in particular math alphabets and in the |
| 647 |
% `operators' symbol font should be the same as the fonts used for the |
| 648 |
% main text. (It is now easy to replace the fonts for the `operators' |
| 649 |
% symbol font, since the uppercase Greek letters are taken from |
| 650 |
% the Euler Roman fonts.) |
| 651 |
% |
| 652 |
% In order to reduce the total number of fonts needed, we shall -- if |
| 653 |
% possible -- use text fonts in the same encoding for both text and |
| 654 |
% math. We have already determined which encoding has been selected |
| 655 |
% as the default encoding. |
| 656 |
% |
| 657 |
% We redefine the `operators' symbol font and the math alphabets |
| 658 |
% |\mathsf|, |\mathit| and |\mathtt|. |
| 659 |
% Due to the current implementation of math accents |
| 660 |
% which take their glyphs from text fonts, |
| 661 |
% all text fonts must be used in a common encoding. |
| 662 |
% \begin{macrocode} |
| 663 |
\DeclareSymbolFont{operators}{\operator@encoding}{\familydefault}{m}{n} |
| 664 |
\SetSymbolFont{operators}{bold}{\operator@encoding}{\familydefault}{b}{n} |
| 665 |
\SetSymbolFont{operators}{normal}{\operator@encoding}{\familydefault}{m}{n} |
| 666 |
% \end{macrocode} |
| 667 |
% |
| 668 |
% \begin{macrocode} |
| 669 |
% \DeclareSymbolFontAlphabet{\mathrm} {operators} |
| 670 |
% \DeclareSymbolFontAlphabet{\mathnormal} {letters} |
| 671 |
\DeclareMathAlphabet{\mathsf} {\operator@encoding}{\sfdefault}{m}{n} |
| 672 |
\DeclareMathAlphabet{\mathit} {\operator@encoding}{\rmdefault}{m}{it} |
| 673 |
\DeclareMathAlphabet{\mathtt} {\operator@encoding}{\ttdefault}{m}{n} |
| 674 |
\SetMathAlphabet{\mathsf}{bold}{\operator@encoding}{\sfdefault}{b}{n} |
| 675 |
\SetMathAlphabet{\mathit}{bold}{\operator@encoding}{\rmdefault}{b}{it} |
| 676 |
\SetMathAlphabet{\mathtt}{bold}{\operator@encoding}{\ttdefault}{b}{n} |
| 677 |
\DeclareMathAlphabet\mathbf \operator@encoding{\rmdefault}{b}{n} |
| 678 |
% \end{macrocode} |
| 679 |
% Note that |\mathrm| and |\mathnormal| will automatically follow |
| 680 |
% the `operators' font. |
| 681 |
% |
| 682 |
% Before redefining the math accents with respect to the actual |
| 683 |
% encoding of the `operators' symbol font, they should be `undefined'. |
| 684 |
% This is required for compatibility with older versions of the \Lpack{amsmath} |
| 685 |
% package. |
| 686 |
% \begin{macrocode} |
| 687 |
\let\acute\undefined |
| 688 |
\let\grave\undefined |
| 689 |
\let\ddot\undefined |
| 690 |
\let\tilde\undefined |
| 691 |
\let\bar\undefined |
| 692 |
\let\breve\undefined |
| 693 |
\let\check\undefined |
| 694 |
\let\hat\undefined |
| 695 |
\let\dot\undefined |
| 696 |
% \end{macrocode} |
| 697 |
% |
| 698 |
% \begin{macrocode} |
| 699 |
\def\@tempa{T1} |
| 700 |
\ifx\operator@encoding\@tempa |
| 701 |
\DeclareMathAccent{\acute}{\mathalpha}{operators}{1} |
| 702 |
\DeclareMathAccent{\grave}{\mathalpha}{operators}{0} |
| 703 |
\DeclareMathAccent{\ddot}{\mathalpha}{operators}{4} |
| 704 |
\DeclareMathAccent{\tilde}{\mathalpha}{operators}{3} |
| 705 |
\DeclareMathAccent{\bar}{\mathalpha}{operators}{9} |
| 706 |
\DeclareMathAccent{\breve}{\mathalpha}{operators}{8} |
| 707 |
\DeclareMathAccent{\check}{\mathalpha}{operators}{7} |
| 708 |
\DeclareMathAccent{\hat}{\mathalpha}{operators}{2} |
| 709 |
\DeclareMathAccent{\dot}{\mathalpha}{operators}{10} |
| 710 |
% \end{macrocode} |
| 711 |
% |
| 712 |
% \begin{macrocode} |
| 713 |
\else |
| 714 |
\def\@tempa{OT1} |
| 715 |
\ifx\operator@encoding\@tempa |
| 716 |
\DeclareMathAccent{\acute}{\mathalpha}{operators}{19} |
| 717 |
\DeclareMathAccent{\grave}{\mathalpha}{operators}{18} |
| 718 |
\DeclareMathAccent{\ddot}{\mathalpha}{operators}{127} |
| 719 |
\DeclareMathAccent{\tilde}{\mathalpha}{operators}{126} |
| 720 |
\DeclareMathAccent{\bar}{\mathalpha}{operators}{22} |
| 721 |
\DeclareMathAccent{\breve}{\mathalpha}{operators}{21} |
| 722 |
\DeclareMathAccent{\check}{\mathalpha}{operators}{20} |
| 723 |
\DeclareMathAccent{\hat}{\mathalpha}{operators}{94} |
| 724 |
\DeclareMathAccent{\dot}{\mathalpha}{operators}{95} |
| 725 |
% \end{macrocode} |
| 726 |
% |
| 727 |
% \begin{macrocode} |
| 728 |
\else |
| 729 |
\def\@tempa{LY1} |
| 730 |
\ifx\operator@encoding\@tempa |
| 731 |
\DeclareMathAccent{\acute}{\mathalpha}{operators}{19} |
| 732 |
\DeclareMathAccent{\grave}{\mathalpha}{operators}{18} |
| 733 |
\DeclareMathAccent{\ddot}{\mathalpha}{operators}{127} |
| 734 |
\DeclareMathAccent{\tilde}{\mathalpha}{operators}{126} |
| 735 |
\DeclareMathAccent{\bar}{\mathalpha}{operators}{22} |
| 736 |
\DeclareMathAccent{\breve}{\mathalpha}{operators}{21} |
| 737 |
\DeclareMathAccent{\check}{\mathalpha}{operators}{20} |
| 738 |
\DeclareMathAccent{\hat}{\mathalpha}{operators}{94} |
| 739 |
\DeclareMathAccent{\dot}{\mathalpha}{operators}{5} |
| 740 |
% \end{macrocode} |
| 741 |
% |
| 742 |
% \begin{macrocode} |
| 743 |
\else |
| 744 |
\PackageWarningNoLine{eulervm} |
| 745 |
{Unknown Operator Encoding!\MessageBreak |
| 746 |
Math accents may be wrong: assuming OT1 positions} |
| 747 |
\fi\fi\fi |
| 748 |
% \end{macrocode} |
| 749 |
% The \cmd{\hat} accent is normally taken from the `operators' symbol font. |
| 750 |
% With the option \Lopt{euler-hat accent}, however, we take an alternative |
| 751 |
% one from Euler Fraktur, which is provided in the `symbols' alphabet. |
| 752 |
% The above definition must be overwritten then: |
| 753 |
% \begin{macrocode} |
| 754 |
\ifevm@eha |
| 755 |
\DeclareMathAccent\hat\mathalpha{symbols}{222} |
| 756 |
\fi |
| 757 |
% \end{macrocode} |
| 758 |
% |
| 759 |
% \subsection{An intelligent comma} |
| 760 |
% \label{sec:icomma} |
| 761 |
% An `intelligent' comma for use within decimal numbers, |
| 762 |
% which was once posted by Donald Arseneau on the |
| 763 |
% \path{comp.text.tex} news group. |
| 764 |
% It does not work with arbitarily long numbers, so |
| 765 |
% it is no longer advertised, and I recommend to use the |
| 766 |
% newer package \path{icomma.sty} instead. |
| 767 |
% \begin{macrocode} |
| 768 |
\ifevm@ic |
| 769 |
\mathchardef\mathcomma\mathcode`\, |
| 770 |
\mathcode`\,="8000 |
| 771 |
\catcode`,=\active |
| 772 |
\def,{\afterassignment\domathcomma\finalhyphendemerits=1} |
| 773 |
\def\domathcomma{\ifnum\finalhyphendemerits>1\mathord\fi |
| 774 |
\mathcomma |
| 775 |
\expandafter\@gobble\number\finalhyphendemerits} |
| 776 |
\catcode`\,=12 |
| 777 |
\fi |
| 778 |
% \end{macrocode} |
| 779 |
% |
| 780 |
% \subsection{Using extra AMS fonts} |
| 781 |
% Euler Fraktur and the AMS symbol fonts should be used with the same design sizes |
| 782 |
% as the Euler-VM fonts, and should honor the \Lopt{small} option. |
| 783 |
% We defer the font definitions until |\AtBeginDocument|, to ensure |
| 784 |
% against loading of \Lpack{eufrak} or \Lpack{ammssymb} with the \Lopt{psamsfonts} option. |
| 785 |
% \begin{macrocode} |
| 786 |
\AtBeginDocument{% |
| 787 |
\begingroup |
| 788 |
\nfss@catcodes |
| 789 |
\expandafter\ifx\csname zeu@Scale\endcsname\relax |
| 790 |
\let\zeu@@Scale\@empty |
| 791 |
\else |
| 792 |
\edef\zeu@@Scale{s*[\csname zeu@Scale\endcsname]}% |
| 793 |
\fi |
| 794 |
\DeclareFontFamily{U}{euf}{} |
| 795 |
\DeclareFontShape{U}{euf}{m}{n}{% |
| 796 |
<-6>\zeu@@Scale eufm5% |
| 797 |
<6-9>\zeu@@Scale eufm7% |
| 798 |
<9->\zeu@@Scale eufm10% |
| 799 |
}{} |
| 800 |
\DeclareFontShape{U}{euf}{b}{n}{% |
| 801 |
<-6>\zeu@@Scale eufb5% |
| 802 |
<6-9>\zeu@@Scale eufb7% |
| 803 |
<9->\zeu@@Scale eufb10% |
| 804 |
}{} |
| 805 |
\DeclareFontFamily{U}{msa}{}% |
| 806 |
\DeclareFontShape{U}{msa}{m}{n}{% |
| 807 |
<-6>\zeu@@Scale msam5% |
| 808 |
<6-9>\zeu@@Scale msam7% |
| 809 |
<9->\zeu@@Scale msam10% |
| 810 |
}{}% |
| 811 |
\DeclareFontFamily{U}{msb}{}% |
| 812 |
\DeclareFontShape{U}{msb}{m}{n}{% |
| 813 |
<-6>\zeu@@Scale msbm5% |
| 814 |
<6-9>\zeu@@Scale msbm7% |
| 815 |
<9->\zeu@@Scale msbm10% |
| 816 |
}{}% |
| 817 |
\endgroup |
| 818 |
} |
| 819 |
|
| 820 |
% \end{macrocode} |
| 821 |
% \subsection{Peaceful coexistence with the AMS packages} |
| 822 |
% |
| 823 |
% We define \cmd{\hslash} and \cmd{\hbar} after the premable only, |
| 824 |
% in order to protect them from being overwritten by \Lpack{amsfonts}: |
| 825 |
% \begin{macrocode} |
| 826 |
\AtBeginDocument{ |
| 827 |
\let\hslash\evm@hslash\let\hbar\evm@hbar |
| 828 |
% \end{macrocode} |
| 829 |
% When the \texttt{amsmath} package is loaded, the |
| 830 |
% multiple integral signs must be fixed wrt.\ the Euler extension font, |
| 831 |
% and we have to take care of the macros \cmd{\relbar} and |
| 832 |
% \cmd{\Relbar}: |
| 833 |
% \begin{macrocode} |
| 834 |
\@ifpackageloaded{amsmath}{% |
| 835 |
\def\intkern@{\mkern -4mu }% |
| 836 |
\def\relbar{\mathrel{\smash\cm@minus}} |
| 837 |
\let\Relbar\undefined |
| 838 |
\DeclareMathSymbol{\Relbar}{\mathrel}{letters}{130} |
| 839 |
}% |
| 840 |
% \end{macrocode} |
| 841 |
% Scaling of the math extension font requires the following patches |
| 842 |
% (see the description of the \Lpack{exscale} package), unless \Lpack{amsmath} |
| 843 |
% is also loaded: |
| 844 |
% \begin{macrocode} |
| 845 |
{% |
| 846 |
\newdimen\big@size |
| 847 |
\addto@hook\every@math@size{\setbox\z@\vbox{\hbox{$($}\kern\z@}% |
| 848 |
\global\big@size 1.2\ht\z@} |
| 849 |
\def\bBigg@#1#2{% |
| 850 |
{\hbox{$\left#2\vcenter to#1\big@size{}\right.\n@space$}}} |
| 851 |
\def\big{\bBigg@\@ne} |
| 852 |
\def\Big{\bBigg@{1.5}} |
| 853 |
\def\bigg{\bBigg@\tw@} |
| 854 |
\def\Bigg{\bBigg@{2.5}} |
| 855 |
} |
| 856 |
} |
| 857 |
% \end{macrocode} |
| 858 |
% |
| 859 |
% \subsection{Restoring normal font warnings} |
| 860 |
% \begin{macrocode} |
| 861 |
\let\@font@info\evm@info |
| 862 |
\let\@font@warning\evm@warning |
| 863 |
%</package> |
| 864 |
% \end{macrocode} |
| 865 |
% |
| 866 |
% \section{The font definition files} |
| 867 |
% |
| 868 |
% \subsection{Common code for scaling} |
| 869 |
% \begin{macrocode} |
| 870 |
%<uzeur|uzeus|uzeuex> \expandafter\ifx\csname zeu@Scale\endcsname\relax |
| 871 |
%<uzeur|uzeus|uzeuex> \let\zeu@@Scale\@empty |
| 872 |
%<uzeur|uzeus|uzeuex> \else |
| 873 |
%<uzeur|uzeus|uzeuex> \edef\zeu@@Scale{s*[\csname zeu@Scale\endcsname]}% |
| 874 |
%<uzeur|uzeus|uzeuex> \fi |
| 875 |
% \end{macrocode} |
| 876 |
% |
| 877 |
% \subsection{Euler Roman} |
| 878 |
% \begin{macrocode} |
| 879 |
%<*uzeur> |
| 880 |
\DeclareFontFamily{U}{zeur}{\skewchar \font =127} |
| 881 |
\DeclareFontShape{U}{zeur}{m}{n}{ |
| 882 |
<9-> \zeu@@Scale zeurm10 |
| 883 |
<6-9> \zeu@@Scale zeurm7 |
| 884 |
<-6> \zeu@@Scale zeurm5 |
| 885 |
}{} |
| 886 |
\DeclareFontShape{U}{zeur}{b}{n}{ |
| 887 |
<9-> \zeu@@Scale zeurb10 |
| 888 |
<6-9> \zeu@@Scale zeurb7 |
| 889 |
<-6> \zeu@@Scale zeurb5 |
| 890 |
}{} |
| 891 |
\DeclareFontShape{U}{zeur}{bx}{n}{<->ssub * zeur/b/n}{} |
| 892 |
%</uzeur> |
| 893 |
% \end{macrocode} |
| 894 |
% |
| 895 |
% \subsection{Euler Script} |
| 896 |
% \begin{macrocode} |
| 897 |
%<*uzeus> |
| 898 |
\DeclareFontFamily{U}{zeus}{\skewchar \font =176} |
| 899 |
\DeclareFontShape{U}{zeus}{m}{n}{ |
| 900 |
<9-> \zeu@@Scale zeusm10 |
| 901 |
<6-9> \zeu@@Scale zeusm7 |
| 902 |
<-6> \zeu@@Scale zeusm5 |
| 903 |
}{} |
| 904 |
\DeclareFontShape{U}{zeus}{b}{n}{ |
| 905 |
<9-> \zeu@@Scale zeusb10 |
| 906 |
<6-9> \zeu@@Scale zeusb7 |
| 907 |
<-6> \zeu@@Scale zeusb5 |
| 908 |
}{} |
| 909 |
\DeclareFontShape{U}{zeus}{bx}{n}{<->ssub * zeus/b/n}{} |
| 910 |
%</uzeus> |
| 911 |
% \end{macrocode} |
| 912 |
% |
| 913 |
% \subsection{Euler Extension} |
| 914 |
% \begin{macrocode} |
| 915 |
%<*uzeuex> |
| 916 |
\DeclareFontFamily{U}{zeuex}{} |
| 917 |
\DeclareFontShape{U}{zeuex}{m}{n}{ |
| 918 |
<-> \zeu@@Scale zeuex10 |
| 919 |
}{} |
| 920 |
%</uzeuex> |
| 921 |
% \end{macrocode} |
| 922 |
% |
| 923 |
% } |
| 924 |
% |
| 925 |
% \Finale |
| 926 |
% |
| 927 |
% \iffalse |
| 928 |
% The next line of code prevents DocStrip from adding the |
| 929 |
% character table to all modules: |
| 930 |
\endinput |
| 931 |
% \fi |
| 932 |
% |
| 933 |
%% \CharacterTable |
| 934 |
%% {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 |
| 935 |
%% 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 |
| 936 |
%% Digits \0\1\2\3\4\5\6\7\8\9 |
| 937 |
%% Exclamation \! Double quote \" Hash (number) \# |
| 938 |
%% Dollar \$ Percent \% Ampersand \& |
| 939 |
%% Acute accent \' Left paren \( Right paren \) |
| 940 |
%% Asterisk \* Plus \+ Comma \, |
| 941 |
%% Minus \- Point \. Solidus \/ |
| 942 |
%% Colon \: Semicolon \; Less than \< |
| 943 |
%% Equals \= Greater than \> Question mark \? |
| 944 |
%% Commercial at \@ Left bracket \[ Backslash \\ |
| 945 |
%% Right bracket \] Circumflex \^ Underscore \_ |
| 946 |
%% Grave accent \` Left brace \{ Vertical bar \| |
| 947 |
%% Right brace \} Tilde \~} |
| 948 |
%% |