summaryrefslogtreecommitdiff
path: root/fonts/mlmodern/latex/mlmodern.sty
blob: 2f09a736f1d1d615eef2ac917b4336baa90fce05 (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
%This package provides support for the mlmodern fonts. See mlmodern.pdf
%for more information.
%This work 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.
%Copyright 2003--2009 by B. Jackowski and J.M. Nowacki.
%Copyright 2021 by Daniel Benjamin Miller.
%This work has the LPPL maintenance status "maintained".
%The Current Maintainer of this work is Daniel Benjamin Miller.


\ProvidesPackage{mlmodern}[2021/01/11 v1.0 Modified Latin Modern Fonts]

\renewcommand{\rmdefault}{mlmr}
\renewcommand{\sfdefault}{mlmss}
\renewcommand{\ttdefault}{mlmtt}
\renewcommand{\bfdefault}{bx}
\DeclareOption{nomath}{\endinput}
\DeclareOption{variablett}{%
  \renewcommand{\ttdefault}{mlmvtt}
}
\DeclareOption{lighttt}{%
  \let\mlmtt@use@light@as@normal\@empty
}
\ProcessOptions\relax

\SetSymbolFont{operators}   {normal}{OT1}{mlmr} {m}{n}
\SetSymbolFont{letters}     {normal}{OML}{mlmm} {m}{it}
\SetSymbolFont{symbols}     {normal}{OMS}{mlmsy}{m}{n}
\SetSymbolFont{largesymbols}{normal}{OMX}{mlmex}{m}{n}
\SetSymbolFont{operators}   {bold}  {OT1}{mlmr} {bx}{n}
\SetSymbolFont{letters}     {bold}  {OML}{mlmm} {b}{it}
\SetSymbolFont{symbols}     {bold}  {OMS}{mlmsy}{b}{n}
\SetSymbolFont{largesymbols}{bold}  {OMX}{mlmex}{m}{n}

\SetMathAlphabet{\mathbf}{normal}{OT1}{mlmr}{bx}{n}
\SetMathAlphabet{\mathsf}{normal}{OT1}{mlmss}{m}{n}
\SetMathAlphabet{\mathit}{normal}{OT1}{mlmr}{m}{it}
\SetMathAlphabet{\mathtt}{normal}{OT1}{mlmtt}{m}{n}
\SetMathAlphabet{\mathbf}{bold}  {OT1}{mlmr}{bx}{n}
\SetMathAlphabet{\mathsf}{bold}  {OT1}{mlmss}{bx}{n}
\SetMathAlphabet{\mathit}{bold}  {OT1}{mlmr}{bx}{it}
\SetMathAlphabet{\mathtt}{bold}  {OT1}{mlmtt}{m}{n}

\def\mathsterling{\mathit{\mathchar"70BF}}

\endinput