| 1 |
% \iffalse meta-comment |
| 2 |
% |
| 3 |
% Copyright (C) 1993-2025 |
| 4 |
% The LaTeX Project and any individual authors listed elsewhere |
| 5 |
% in this file. |
| 6 |
% |
| 7 |
% This file is part of the LaTeX base system. |
| 8 |
% ------------------------------------------- |
| 9 |
% |
| 10 |
% It may be distributed and/or modified under the |
| 11 |
% conditions of the LaTeX Project Public License, either version 1.3c |
| 12 |
% of this license or (at your option) any later version. |
| 13 |
% The latest version of this license is in |
| 14 |
% https://www.latex-project.org/lppl.txt |
| 15 |
% and version 1.3c or later is part of all distributions of LaTeX |
| 16 |
% version 2008 or later. |
| 17 |
% |
| 18 |
% This file has the LPPL maintenance status "maintained". |
| 19 |
% |
| 20 |
% The list of all files belonging to the LaTeX base distribution is |
| 21 |
% given in the file `manifest.txt'. See also `legal.txt' for additional |
| 22 |
% information. |
| 23 |
% |
| 24 |
% The list of derived (unpacked) files belonging to the distribution |
| 25 |
% and covered by LPPL is defined by the unpacking scripts (with |
| 26 |
% extension .ins) which are part of the distribution. |
| 27 |
% |
| 28 |
% \fi |
| 29 |
% \iffalse |
| 30 |
%%% File: exscale.dtx |
| 31 |
%% Copyright (C) 1992-1997,2007 Frank Mittelbach and Rainer Sch\"opf, |
| 32 |
%% all rights reserved. |
| 33 |
%<package>\NeedsTeXFormat{LaTeX2e} |
| 34 |
%<package>\ProvidesPackage{exscale} |
| 35 |
%<fd, >\ProvidesFile{OMXcmex.fd} |
| 36 |
%<package,fd> [2025/06/05 v2.1i |
| 37 |
%<package> Standard LaTeX package exscale] |
| 38 |
%<fd, > exscale package font definitions] |
| 39 |
%<*driver> |
| 40 |
\documentclass{ltxdoc} |
| 41 |
\usepackage{exscale} |
| 42 |
\GetFileInfo{exscale.sty} |
| 43 |
\begin{document} |
| 44 |
\title{The \texttt{exscale} package\thanks |
| 45 |
{This file has version number \fileversion, dated \filedate.}\\ |
| 46 |
for use with \LaTeX2e} |
| 47 |
\author{Frank Mittelbach \and Rainer Sch\"opf} |
| 48 |
\date{\filedate} |
| 49 |
\MaintainedByLaTeXTeam{latex} |
| 50 |
\maketitle |
| 51 |
\DocInput{exscale.dtx} |
| 52 |
\end{document} |
| 53 |
%</driver> |
| 54 |
% \fi |
| 55 |
% |
| 56 |
% |
| 57 |
% \changes{v2.1g}{1997/06/16}{Documentation fix.} |
| 58 |
% \changes{v2.1d}{1994/05/09}{Added setting \cs{big}... sizes.} |
| 59 |
% \changes{v2.1c}{1994/05/08}{Changed to new documentation standards.} |
| 60 |
% \changes{v2.1a}{1993/12/12}{Update for \LaTeXe} |
| 61 |
% |
| 62 |
% \def\MF{\textsf{Metafont}} |
| 63 |
% \def\dst{{\normalfont\scshape docstrip}} |
| 64 |
% |
| 65 |
% |
| 66 |
% \section{Introduction} |
| 67 |
% |
| 68 |
% On popular request, this package implements scaling of the |
| 69 |
% math extension font `cmex'. If this package is used the site needs |
| 70 |
% scaled versions of the \texttt{cmex10} in the sizes 10.95pt, 12pt, |
| 71 |
% 14.4pt , 17.28pt, 20.74pt, and 24.88pt which corresponds to standard |
| 72 |
% magsteps using |\magstephalf|, and |\magstep1| through |\magstep5|. |
| 73 |
% Additionally `cmex' variants for the sizes 7pt to 9pt are necessary. |
| 74 |
% These fonts are part of the AMS font package and can be found on |
| 75 |
% many servers. |
| 76 |
% |
| 77 |
% We don't think that using a scalable `cmex' font improves the |
| 78 |
% appearance of the document very much because the linear scaling of |
| 79 |
% the font introduces changes to font dimen parameters of the font |
| 80 |
% that are used all over the place in \TeX's math placement routines |
| 81 |
% and definitely shouldn't be scaled linearly. As a positive result, |
| 82 |
% however, symbols from this font will come out in approximately the |
| 83 |
% right size when used with a large basis font size. |
| 84 |
% |
| 85 |
% We therefore strongly recommend the generation of designed fonts for |
| 86 |
% the larger sizes and hope that the corresponding \MF{} sources will |
| 87 |
% be available in the near future. |
| 88 |
% |
| 89 |
% |
| 90 |
% \section{Usage} |
| 91 |
% |
| 92 |
% This file can be used either as a package by placing its name |
| 93 |
% in the argument of |
| 94 |
% |\usepackage|, or by generating from it a |.fd| file which then |
| 95 |
% replaces the normally used |.fd| file |OMXcmex.fd|. |
| 96 |
% |
| 97 |
% For the second solution you should prepare a small \dst{} command |
| 98 |
% file containing the following statements: |
| 99 |
% \begin{quote} |
| 100 |
% |\def\batchfile{|\meta{name-of-your-command-file}|}| \\ |
| 101 |
% |\input docstrip.tex| \\ |
| 102 |
% |\generateFile{OMXcmex.fd}{t}{\from{exscale.dtx}{fd}}| |
| 103 |
% \end{quote} |
| 104 |
% and then run this file through \LaTeX. |
| 105 |
% This would mean however, that your documents may look different if |
| 106 |
% they are printed on another installation whereas when using the |
| 107 |
% package file they would come out the same on both sites. |
| 108 |
% |
| 109 |
% \MaybeStop{} |
| 110 |
% |
| 111 |
% |
| 112 |
% \section{Implementation} |
| 113 |
% |
| 114 |
% |
| 115 |
% In case this should produce a font definition file we write |
| 116 |
% a message to the transcript file only. |
| 117 |
% The explicit spaces are necessary in an |
| 118 |
% |.fd| file and the |\string| guards against situations where |`|, |
| 119 |
% |<| or |>| is active. |
| 120 |
% \changes{v2.1f}{1995/11/27}{Use \cs{ProvidesFile}} |
| 121 |
% \begin{macrocode} |
| 122 |
%\ProvidesFile{OMXcmex.fd}[]% moved to top of the file |
| 123 |
% \end{macrocode} |
| 124 |
% |
| 125 |
% We now define to which external fonts the font/shape Computer Modern |
| 126 |
% Extension Medium Normal. For the sizes 7--10pt we use fonts that are |
| 127 |
% designed for the corresponding size and for the higher sizes we use |
| 128 |
% scaled versions of the 10pt font since for these sizes no designed |
| 129 |
% fonts are easily available. |
| 130 |
% \begin{macrocode} |
| 131 |
%<*fd|package> |
| 132 |
\DeclareFontShape{OMX}{cmex}{m}{n}{% |
| 133 |
% \end{macrocode} |
| 134 |
% According to Michael Downes `cmex5' and `cmex6' are not |
| 135 |
% distributed currently. Therefore we use `cmex7' in those size but |
| 136 |
% we omit a warning. |
| 137 |
% \begin{macrocode} |
| 138 |
<-8>sfixed * cmex7 |
| 139 |
<8> cmex8 |
| 140 |
<9> cmex9 |
| 141 |
<10> <10.95> <12> <14.4> <17.28> <20.74> <24.88>cmex10 |
| 142 |
}{} |
| 143 |
%</fd|package> |
| 144 |
% \end{macrocode} |
| 145 |
% |
| 146 |
% We also redeclare the symbol font for large symbols. This is |
| 147 |
% already done when the base format also uses CM math fonts, but it |
| 148 |
% doesn't hurt either. |
| 149 |
% \begin{macrocode} |
| 150 |
%<*package> |
| 151 |
\DeclareSymbolFont{largesymbols}{OMX}{cmex}{m}{n} |
| 152 |
% \end{macrocode} |
| 153 |
% |
| 154 |
% Finally we redefine the primitive commands |\big|, |\Big|, |\bigg| |
| 155 |
% and |\Bigg| to change size with main size changes. To this end we |
| 156 |
% need a new dimen register |\big@size|. |
| 157 |
% \begin{macrocode} |
| 158 |
\newdimen\big@size |
| 159 |
% \end{macrocode} |
| 160 |
% This dimen is set with every size change to $1.2$ times the height |
| 161 |
% of a left parenthesis. |
| 162 |
% \changes{v2.1e}{1994/11/06}{Renamed \cs{every@size} to |
| 163 |
% \cs{every@math@size}} |
| 164 |
% \changes{v2.1e}{1994/11/06}{Update \cs{big@size} globally} |
| 165 |
% \changes{v2.1h}{2001/10/29}{Use box 0 within group to avoid changing this |
| 166 |
% scratch register} |
| 167 |
% \begin{macrocode} |
| 168 |
\addto@hook\every@math@size{% |
| 169 |
\begingroup |
| 170 |
\setbox\z@\vbox{\hbox{$($}\kern\z@}% |
| 171 |
\global\big@size 1.2\ht\z@ |
| 172 |
\endgroup} |
| 173 |
% \end{macrocode} |
| 174 |
% Now we can define the macros. Note: |\n@space| sets the internal |
| 175 |
% variables |\nulldelimiterspace| and |\mathsurround| to zero length. |
| 176 |
% |
| 177 |
% Older kernels (e.g in roll back didn't have LR-mode with the |
| 178 |
% these commands) so we test for the support comment. This only works |
| 179 |
% if the rollback request is before loading this package but that is |
| 180 |
% where it should be. |
| 181 |
% \changes{v2.1i}{2018/09/24}{Start LR-mode if necessary (gh/49)} |
| 182 |
% \begin{macrocode} |
| 183 |
\ifx\leavevmode@ifvmode\@undefined |
| 184 |
\def\bBigg@#1#2{% |
| 185 |
{\hbox{$\left#2\vcenter to#1\big@size{}\right.\n@space$}}} |
| 186 |
\else |
| 187 |
\def\bBigg@#1#2{\leavevmode@ifvmode |
| 188 |
{\hbox{$\left#2\vcenter to#1\big@size{}\right.\n@space$}}} |
| 189 |
\fi |
| 190 |
\def\big{\bBigg@\@ne} |
| 191 |
\def\Big{\bBigg@{1.5}} |
| 192 |
\def\bigg{\bBigg@\tw@} |
| 193 |
\def\Bigg{\bBigg@{2.5}} |
| 194 |
% \end{macrocode} |
| 195 |
% |
| 196 |
% \begin{macrocode} |
| 197 |
%</package> |
| 198 |
% \end{macrocode} |
| 199 |
% |
| 200 |
% \Finale |
| 201 |
% |
| 202 |
\endinput |