1 % \iffalse meta-comment
4 % The LaTeX3 Project and any individual authors listed elsewhere
7 % This file is part of the LaTeX base system.
8 % -------------------------------------------
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 % http://www.latex-project.org/lppl.txt
15 % and version 1.3c or later is part of all distributions of LaTeX
16 % version 2005/12/01 or later.
18 % This file has the LPPL maintenance status "maintained".
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
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.
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> [2014/09/29 v2.1h
37 %<package> Standard LaTeX package exscale]
38 %<fd, > exscale package font definitions]
40 \documentclass{ltxdoc}
42 \GetFileInfo{exscale.sty}
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}
49 \MaintainedByLaTeXTeam{latex}
51 \DocInput{exscale.dtx}
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}
62 % \def\MF{\textsf{Metafont}}
63 % \def\dst{{\normalfont\scshape docstrip}}
66 % \section{Introduction}
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
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.
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.
92 % This file can be used either as a package by placing its name
94 % |\usepackage|, or by generating from it a |.fd| file which then
95 % replaces the normally used |.fd| file |OMXcmex.fd|.
97 % For the second solution you should prepare a small \dst{} command
98 % file containing the following statements:
100 % |\def\batchfile{|\meta{name-of-your-command-file}|}| \\
101 % |\input docstrip.tex| \\
102 % |\generateFile{OMXcmex.fd}{t}{\from{exscale.dtx}{fd}}|
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.
112 % \section{Implementation}
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}}
122 %\ProvidesFile{OMXcmex.fd}[]% moved to top of the file
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.
132 \DeclareFontShape{OMX}{cmex}{m}{n}{%
134 % According to Michael Downes `cmex5' and `cmex6' are not
135 % distributed currently. Therefore we use `cmex7' in those size but
141 <10> <10.95> <12> <14.4> <17.28> <20.74> <24.88>cmex10
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.
151 \DeclareSymbolFont{largesymbols}{OMX}{cmex}{m}{n}
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|.
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
168 \addto@hook\every@math@size{%
170 \setbox\z@\vbox{\hbox{$($}\kern\z@}%
171 \global\big@size 1.2\ht\z@
174 % Now we can define the macros. Note: |\n@space| sets the internal
175 % variables |\nulldelimiterspace| and |\mathsurround| to zero length.
178 {\hbox{$\left#2\vcenter to#1\big@size{}\right.\n@space$}}}
179 \def\big{\bBigg@\@ne}
180 \def\Big{\bBigg@{1.5}}
181 \def\bigg{\bBigg@\tw@}
182 \def\Bigg{\bBigg@{2.5}}