summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lxfonts/lxfonts.sty
blob: b3bccce55133adb1e99069c55f5256588ab86316 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
%%
%% This is file `lxfonts.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% lxfonts.dtx  (with options: `lxsty')
%%   ______________________________________________________
%%   The LXfonts package
%%   Copyright (C) 2008-2013 Claudio Beccari
%%   All rights reserved
%% 
%%   Distributable under the LaTeX Project Public License,
%%   version 1.3c or higher (your choice). The latest version of
%%   this license is at: http://www.latex-project.org/lppl.txt

\NeedsTeXFormat{LaTeX2e}[2001/06/01]
\ProvidesPackage{lxfonts}[2013/09/03 v,2.0 Macros for using LX fonts]
\newif\if@lasy \@lasyfalse
\newif\if@AMSfonts \@AMSfontsfalse
\RequirePackage{etoolbox}
\AtEndPreamble{%
\@ifpackageloaded{latexsym}{\@lasytrue}{}
\@ifpackageloaded{amsfonts}{\@AMSfontstrue}{}
\def\rmdefault{llcmss}        % no roman
\def\sfdefault{llcmss}
\def\ttdefault{llcmtt}
\def\itdefault{sl}
\def\sldefault{sl}
\def\bfdefault{bx}
\SetSymbolFont{operators}{normal}{OT1}{llcmss}{m}{n}
\SetSymbolFont{letters}{normal}{OML}{llcmm}{m}{it}
\SetSymbolFont{symbols}{normal}{OMS}{llcmsy}{m}{n}
\SetSymbolFont{largesymbols}{normal}{OMX}{llcmex}{m}{n}

\SetSymbolFont{operators}{bold}{OT1}{llcmss} {bx}{n}
\SetSymbolFont{letters}  {bold}{OML}{llcmm} {bx}{it}
\SetSymbolFont{symbols}  {bold}{OMS}{llcmsy}{bx}{n}
\SetSymbolFont{largesymbols}{bold}{OMX}{llcmex}{m}{n} % no bold!

\DeclareSymbolFontAlphabet{\mathrm}    {operators}
\DeclareSymbolFontAlphabet{\mathnormal}{letters}
\DeclareSymbolFontAlphabet{\mathcal}   {symbols}

\DeclareMathAlphabet      {\mathbf}{OT1}{llcmss}{bx}{n}
\DeclareMathAlphabet      {\mathsf}{OT1}{llcmss}{m}{n}
\DeclareMathAlphabet      {\mathit}{OT1}{llcmss}{m}{sl}
\DeclareMathAlphabet      {\mathtt}{OT1}{llcmtt}{m}{n}

\SetMathAlphabet\mathsf{bold}{OT1}{llcmss}{bx}{n}
\SetMathAlphabet\mathit{bold}{OT1}{llcmss}{bx}{sl}
\if@AMSfonts
\input{ulmsa.fd}
\input{ulmsb.fd}
\SetSymbolFont{AMSa}{normal}{U}{lmsa}{m}{n}
\SetSymbolFont{AMSb}{normal}{U}{lmsb}{m}{n}
\xdef\Join{\mathrel{\mathchar"0\hexnumber@\symAMSb 6F%
\mkern-14.2mu\mathchar"0\hexnumber@\symAMSb 6E}}
\global\let\leadsto\rightsquigarrow
\fi
\if@lasy
\if@AMSfonts%
\PackageWarning{lxfonts}{%
I did not load the LaTeX symbol fonts\MessageBreak
because its glyphs are already provided by the AMS fonts\MessageBreak}
\else
\input{ulllasy.fd}
\SetSymbolFont{lasy}{normal}{U}{lllasy}{m}{n}
\SetSymbolFont{lasy}{bold}{U}{lllasy}{b}{n}
\fi
\fi
\DeclareOldFontCommand{\rm}{\rmfamily}{\mathrm}
\DeclareOldFontCommand{\sf}{\sffamily}{\mathsf}
\DeclareOldFontCommand{\tt}{\ttfamily}{\mathtt}
\DeclareOldFontCommand{\bf}{\bfseries}{\mathbf}
\DeclareOldFontCommand{\it}{\itshape}{\mathit}
\DeclareOldFontCommand{\sl}{\slshape}{\relax}
\DeclareOldFontCommand{\sc}{\scshape}{\relax}
}

%% Read the README test file for further details about installation
%%
%% End of file `lxfonts.sty'.