% lxfonts.sty
%
\NeedsTeXFormat{LaTeX2e}[2001/06/01]
\ProvidesPackage{lxfonts}[2008/01/20 v.0.4 For using modified LX fonts]
\newif\if@lasy \@lasyfalse
\newif\if@Tuno \@Tunofalse
\newif\if@TSuno \@TSunofalse

\@ifpackageloaded{lastexsym}{\@lasytrue}{}
\@ifpackageloaded{textcomp}{\@TSunotrue}{}
\def\Tun@enc{T1}     
\ifx\encodingdefault\Tun@enc\@Tunotrue\fi
\let\Tun@enc\undefined

% Encoding: OT1
 \DeclareFontFamily{OT1}{llcmss}{\hyphenchar\font45}
 \DeclareFontShape{OT1}{llcmss}{m}{n}{<-> llcmss8}{}
 \DeclareFontShape{OT1}{llcmss}{m}{sl}{<-> llcmssi8}{}
 \DeclareFontShape{OT1}{llcmss}{m}{it}{<->ssub* llcmss/m/sl}{}
 \DeclareFontShape{OT1}{llcmss}{bx}{n}{<-> llcmssb8}{}
 \DeclareFontShape{OT1}{llcmss}{bx}{sl}{<-> llcmsso8}{}
 \DeclareFontShape{OT1}{llcmss}{bx}{it}{<->ssub* llcmss/bx/sl}{}
%
 \DeclareFontShape{OT1}{llcmss}{m}{ui}{<-> ssub* cmr/m/n}{}
 \DeclareFontShape{OT1}{llcmss}{bx}{ui}{<->ssub* cmr/m/n}{}
%
 \DeclareFontFamily{OT1}{llcmtt}{\hyphenchar\font\m@ne}
 \DeclareFontShape{OT1}{llcmtt}{m}{n}{<-> [1.25]cmtt8}{}
 \DeclareFontShape{OT1}{llcmtt}{m}{it}{<-> [1.25]cmti8}{}
 \DeclareFontShape{OT1}{llcmtt}{m}{sl}{<-> ssub* llcmtt/m/it}{}

% Encoding: T1
\if@Tuno 
 \DeclareFontFamily{T1}{llcmss}{\hyphenchar\font45}
 \DeclareFontShape{T1}{llcmss}{m}{n}{<-> leclq8}{}
 \DeclareFontShape{T1}{llcmss}{m}{sl}{<-> lecli8}{}
 \DeclareFontShape{T1}{llcmss}{m}{it}{<->ssub* llcmss/m/sl}{}
 \DeclareFontShape{T1}{llcmss}{bx}{n}{<-> leclb8}{}
 \DeclareFontShape{T1}{llcmss}{bx}{sl}{<-> leclo8}{}
 \DeclareFontShape{T1}{llcmss}{bx}{it}{<->ssub*llcmss/bx/sl}{}
%
\DeclareFontShape{T1}{llcmss}{m}{ui}{<->ssub*llcmss/m/n}{}
\DeclareFontShape{T1}{llcmss}{bx}{ui}{<->ssub*llcmss/m/n}{}
%
 \DeclareFontFamily{T1}{llcmtt}{\hyphenchar\font\m@ne}
 \DeclareFontShape{T1}{llcmtt}{m}{n}{<-> [1.25]ecltt8}{}
 \DeclareFontShape{T1}{llcmtt}{m}{it}{<-> [1.25]ecit0800}{}
 \DeclareFontShape{T1}{llcmtt}{m}{sl}{<-> ssub* llcmtt/m/it}{}
\fi

% Encoding: TS1
\if@TSuno
 \DeclareFontFamily{TS1}{llcmss}{\hyphenchar\font45}
 \DeclareFontShape{TS1}{llcmss}{m}{n}{<-> ltclq8}{}
 \DeclareFontShape{TS1}{llcmss}{m}{sl}{<-> ltcli8}{}
 \DeclareFontShape{TS1}{llcmss}{m}{it}{<-> ssub*llcmss/m/sl}{}
 \DeclareFontShape{TS1}{llcmss}{bx}{n}{<-> ltclb8}{}
 \DeclareFontShape{TS1}{llcmss}{bx}{sl}{<-> ltclo8}{}
 \DeclareFontShape{TS1}{llcmss}{bx}{it}{<-> ssub*llcmss/bx/sl}{}
%
\DeclareFontShape{TS1}{llcmss}{m}{ui}{<-> ssub*llcmss/m/n}{}
\DeclareFontShape{TS1}{llcmss}{bx}{ui}{<-> ssub*llcmss/m/n}{}
\fi

% Defaults

\def\rmdefault{llcmss}        % no roman
\def\sfdefault{llcmss}
\def\ttdefault{llcmtt}
\def\itdefault{sl}
\def\sldefault{sl}
\def\bfdefault{bx}


% Math encodings

% Encoding OML

\DeclareFontFamily{OML}{llcmm}{\skewchar\font'177}
\DeclareFontShape{OML}{llcmm}{m}{it}{<-> lcmmi8}{}
\DeclareFontShape{OML}{llcmm}{bx}{it}{<-> lcmmib8}{}

\DeclareFontFamily{OML}{llcmss}{}
\DeclareFontShape{OML}{llcmss}{m}{n}{<-> ssub*llcmm/m/it}{}

% Encoding: OMS

\DeclareFontFamily{OMS}{llcmsy}{\skewchar\font'60}
\DeclareFontShape{OMS}{llcmsy}{m}{n}{<-> lcmsy8}{}
\DeclareFontShape{OMS}{llcmsy}{bx}{n}{<-> lcmbsy8}{}

\DeclareFontFamily{OMS}{llcmss}{\skewchar\font'60}
\DeclareFontShape{OMS}{llcmss}{m}{n}{<->ssub*llcmsy/m/n}{}

% Encoding: OMX

\DeclareFontFamily{OMX}{llcmex}{}
\DeclareFontShape{OMX}{llcmex}{m}{n}{<-> lcmex8}{}


% Encoding: U for AMS fonts

% Both amsmath and amssymb load amsfonts; the latter may be loaded by itself.

\@ifpackageloaded{amsfonts}{%
\DeclareFontFamily{U}{msa}{}% already defined in amsfonts
\DeclareFontShape{U}{msa}{m}{n}{<-> lmsam8}{}
\DeclareFontShape{U}{msa}{bx}{n}{<-> ssub* msa/m/n}{}
\DeclareFontFamily{U}{msb}{}% already defined in amsfonts
\DeclareFontShape{U}{msb}{m}{n}{<-> lmsbm8}{}
\DeclareFontShape{U}{msb}{bx}{n}{<-> ssub* msb/m/n}{}
\begingroup\catcode`\"=12\relax
\xdef\Join{\mathrel{\mathchar"0\hexnumber@\symAMSb 6F\mkern-15.6mu%
  \mathchar"0\hexnumber@\symAMSb 6E}}
\endgroup
}


% Optional LaTeX Symbols

\if@lasy
\DeclareFontFamily{U}{lllasy}{}
\DeclareFontShape{U}{lllasy}{m}{n}{<-> llasy8}{}
\DeclareFontShape{U}{lllasy}{b}{n}{<-> llasyb8}{}
\fi


% Math declarations

\DeclareMathAlphabet{\mathbf}{OT1}{llcmss}{bx}{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}

\DeclareSymbolFont{operators}{OT1}{llcmss}{m}{n}
\DeclareSymbolFont{letters}{OML}{llcmm}{m}{it}
\DeclareSymbolFont{symbols}{OMS}{llcmsy}{m}{n}
\DeclareSymbolFont{largesymbols}{OMX}{llcmex}{m}{n}

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

\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!





\iffalse
%%% Mah!
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
\DeclareRobustCommand*{\cal}{\@fontswitch{\relax}{\mathcal}}
\DeclareRobustCommand*{\mit}{\@fontswitch{\relax}{\mathnormal}}
\fi

\endinput