summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/fixcmex/fixcmex.sty
blob: 669b75fd8f1b50c9b16077d10eb9dd2b432a95ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
%%
%% This is file `fixcmex.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% fixcmex.dtx  (with options: `package')
%% 
%% This is a generated file.
%% 
%% Copyright (C) 2015 by Enrico Gregorio <Enrico dot Gregorio (at) univr dot it>
%% 
%% This file may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License, either version 1.2 of this license
%% or (at your option) any later version.  The latest version of this
%% license is in:
%% 
%%    http://www.latex-project.org/lppl.txt
%% 
%% and version 1.2 or later is part of all distributions of LaTeX version
%% 1999/12/01 or later.
%% 
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{fixcmex}
    [2015/11/10 v1.0 Scalable math extensions font (Enrico Gregorio)]
\def\fixcmex@fix{%
  \DeclareFontShape{OMX}{cmex}{m}{n}{%
    <-7.5> cmex7
    <7.5-8.5> cmex8
    <8.5-9.5> cmex9
    <9.5-> cmex10
  }{}
  \DeclareSymbolFont{largesymbols}{OMX}{cmex}{m}{n}
}
\@onlypreamble\fixcmex@fix
\AtBeginDocument{%
  \begingroup
    \check@mathfonts
    \expandafter\expandafter\expandafter
      \split@name\expandafter\string\the\textfont\thr@@\@nil
    \escapechar=\m@ne
    \edef\fixcmex@cmex{\string\cmex}\edef\fixcmex@lmex{\string\lmex}%
    \ifx\f@family\fixcmex@cmex
      \aftergroup\fixcmex@fix
    \else
      \ifx\f@family
        \fixcmex@lmex\aftergroup\fixcmex@fix
      \else
        \PackageWarningNoLine{fixcmex}
          {No change in the math extension font}%
      \fi
    \fi
  \endgroup
}
\endinput
%%
%% End of file `fixcmex.sty'.