diff options
Diffstat (limited to 'macros/latex/contrib/extsizes/extsizes.sty')
-rw-r--r-- | macros/latex/contrib/extsizes/extsizes.sty | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/macros/latex/contrib/extsizes/extsizes.sty b/macros/latex/contrib/extsizes/extsizes.sty new file mode 100644 index 0000000000..19a0af4421 --- /dev/null +++ b/macros/latex/contrib/extsizes/extsizes.sty @@ -0,0 +1,85 @@ +%% This follows an idea of Hans Steffani. It attempts to load the class +%options as a package. Naturally it's better to use one of the real +%extsizes classes, such as extarticle etc. But you are free you use +%this with other classes. It may not work with a given class. YMMV +%It is therefore quite unsupported. +\NeedsTeXFormat{LaTeX2e}[1995/12/01] +\ProvidesPackage{extsizes} + [1996/10/08 v1.0 + Non Standard LaTeX Package] +\PackageWarningNoLine{ExtSizes}{It is better to use one of the extsizes + classes,^^J if you can} %Comment out this + % line if you find it annoying! +\providecommand\@ptsize{} +\DeclareOption{8pt}{\renewcommand\@ptsize{8}} +\DeclareOption{9pt}{\renewcommand\@ptsize{9}} +\DeclareOption{10pt}{\renewcommand\@ptsize{10}} +\DeclareOption{11pt}{\renewcommand\@ptsize{11}} +\DeclareOption{12pt}{\renewcommand\@ptsize{12}} +\DeclareOption{14pt}{\renewcommand\@ptsize{14}} +\DeclareOption{17pt}{\renewcommand\@ptsize{17}} +\DeclareOption{20pt}{\renewcommand\@ptsize{20}} +\ProcessOptions +\def\EC@family#1#2#3#4#5{% + \DeclareFontShape{#1}{#2}{#3}{#4}% + {<5><6><7><8><9><10><10.95><12><14.4>% + <17.28><20.74><24.88><29.86><35.83><42.99><51.59>genb*#5}{}} +\EC@family{T1}{cmr}{m}{n}{ecrm} +\EC@family{T1}{cmr}{m}{sl}{ecsl} +\EC@family{T1}{cmr}{m}{it}{ecti} +\EC@family{T1}{cmr}{m}{sc}{eccc} +\EC@family{T1}{cmr}{bx}{n}{ecbx} +\EC@family{T1}{cmr}{b}{n}{ecrb} +\EC@family{T1}{cmr}{bx}{it}{ecbi} +\EC@family{T1}{cmr}{bx}{sl}{ecbl} +\EC@family{T1}{cmr}{bx}{sc}{ecxc} +\EC@family{T1}{cmr}{m}{ui}{ecui} +\DeclareFontShape{OT1}{cmr}{m}{n}% + {<5><6><7><8><9><10><12>gen*cmr% + <10.95>cmr10% + <14.4>cmr12% + <17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmr17}{} +\DeclareFontShape{OT1}{cmr}{m}{sl}% + {<5><6><7>cmsl8% + <8><9>gen*cmsl% + <10><10.95>cmsl10% + <12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmsl12% + }{} +\DeclareFontShape{OT1}{cmr}{m}{it}% + {<5><6><7>cmti7% + <8>cmti8% + <9>cmti9% + <10><10.95>cmti10% + <12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmti12% + }{} +\DeclareFontShape{OT1}{cmr}{m}{sc}% + {<5><6><7><8><9><10><10.95><12>% + <14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmcsc10% + }{} +\DeclareFontShape{OT1}{cmr}{m}{ui} + {<5><6><7><8><9><10><10.95><12>% + <14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmu10% + }{} +\DeclareFontShape{OT1}{cmr}{b}{n} + {<5><6><7><8><9><10><10.95><12>% + <14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmb10% + }{} +\DeclareFontShape{OT1}{cmr}{bx}{n} + {<5><6><7><8><9>gen*cmbx% + <10><10.95>cmbx10% + <12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmbx12% + }{} +\DeclareFontShape{OT1}{cmr}{bx}{sl} + {<5><6><7><8><9>% + <10><10.95><12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmbxsl10% + }{} +\DeclareFontShape{OT1}{cmr}{bx}{it} + {<5><6><7><8><9>% + <10><10.95><12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmbxti10% + }{} +\let\orig@newcommand=\newcommand +\renewcommand{\newcommand}[2]{% %an unconditional newcommand + \def#1{} + \renewcommand{#1}{#2}} +\input{size\@ptsize.clo} +\let\newcommand=\orig@newcommand |