%%
%% 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'.
