summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/fixcmex/fixcmex.sty
blob: 159b032b6dcd9f1c9fef0ccf980b1cab0215ab1c (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-2019 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.3c 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.3c or later is part of all distributions of LaTeX
%% 
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{fixcmex}
    [2019/08/05 v1.1 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
  }{}%
  \SetSymbolFont{largesymbols}{normal}{OMX}{cmex}{m}{n}%
  \SetSymbolFont{largesymbols}{bold}{OMX}{cmex}{m}{n}%
  \mathversion{\math@version}%
}
\@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'.