diff options
author | Karl Berry <karl@freefriends.org> | 2008-01-22 00:47:52 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-01-22 00:47:52 +0000 |
commit | a69af871d6ae9cb51cb7f1b25e2ac690da926ed7 (patch) | |
tree | fb5a3f4a3ecc6f97f7656e7d9e9b5941c87ff741 /Master/texmf-dist/tex/latex/lxfonts | |
parent | 17337a1ac66e89310e57ca7eaff87370d2172703 (diff) |
new font package lxfonts (20jan08)
git-svn-id: svn://tug.org/texlive/trunk@6363 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lxfonts')
-rw-r--r-- | Master/texmf-dist/tex/latex/lxfonts/lxfonts.sty | 174 |
1 files changed, 174 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/lxfonts/lxfonts.sty b/Master/texmf-dist/tex/latex/lxfonts/lxfonts.sty new file mode 100644 index 00000000000..f8eab5b699c --- /dev/null +++ b/Master/texmf-dist/tex/latex/lxfonts/lxfonts.sty @@ -0,0 +1,174 @@ +% 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
\ No newline at end of file |