Debian Codegraph @

texmf-dist/tex/latex/extsizes/extsizes.sty

raw
1 %% This follows an idea of Hans Steffani. It attempts to load the class
2 %options as a package. Naturally it's better to use one of the real
3 %extsizes classes, such as extarticle etc. But you are free you use
4 %this with other classes. It may not work with a given class. YMMV
5 %It is therefore quite unsupported.
6 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
7 \ProvidesPackage{extsizes}
8 [1996/10/08 v1.0
9 Non Standard LaTeX Package]
10 \PackageWarningNoLine{ExtSizes}{It is better to use one of the extsizes
11 classes,^^J if you can} %Comment out this
12 % line if you find it annoying!
13 \providecommand\@ptsize{}
14 \DeclareOption{8pt}{\renewcommand\@ptsize{8}}
15 \DeclareOption{9pt}{\renewcommand\@ptsize{9}}
16 \DeclareOption{10pt}{\renewcommand\@ptsize{10}}
17 \DeclareOption{11pt}{\renewcommand\@ptsize{11}}
18 \DeclareOption{12pt}{\renewcommand\@ptsize{12}}
19 \DeclareOption{14pt}{\renewcommand\@ptsize{14}}
20 \DeclareOption{17pt}{\renewcommand\@ptsize{17}}
21 \DeclareOption{20pt}{\renewcommand\@ptsize{20}}
22 \ProcessOptions
23 \def\EC@family#1#2#3#4#5{%
24 \DeclareFontShape{#1}{#2}{#3}{#4}%
25 {<5><6><7><8><9><10><10.95><12><14.4>%
26 <17.28><20.74><24.88><29.86><35.83><42.99><51.59>genb*#5}{}}
27 \EC@family{T1}{cmr}{m}{n}{ecrm}
28 \EC@family{T1}{cmr}{m}{sl}{ecsl}
29 \EC@family{T1}{cmr}{m}{it}{ecti}
30 \EC@family{T1}{cmr}{m}{sc}{eccc}
31 \EC@family{T1}{cmr}{bx}{n}{ecbx}
32 \EC@family{T1}{cmr}{b}{n}{ecrb}
33 \EC@family{T1}{cmr}{bx}{it}{ecbi}
34 \EC@family{T1}{cmr}{bx}{sl}{ecbl}
35 \EC@family{T1}{cmr}{bx}{sc}{ecxc}
36 \EC@family{T1}{cmr}{m}{ui}{ecui}
37 \DeclareFontShape{OT1}{cmr}{m}{n}%
38 {<5><6><7><8><9><10><12>gen*cmr%
39 <10.95>cmr10%
40 <14.4>cmr12%
41 <17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmr17}{}
42 \DeclareFontShape{OT1}{cmr}{m}{sl}%
43 {<5><6><7>cmsl8%
44 <8><9>gen*cmsl%
45 <10><10.95>cmsl10%
46 <12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmsl12%
47 }{}
48 \DeclareFontShape{OT1}{cmr}{m}{it}%
49 {<5><6><7>cmti7%
50 <8>cmti8%
51 <9>cmti9%
52 <10><10.95>cmti10%
53 <12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmti12%
54 }{}
55 \DeclareFontShape{OT1}{cmr}{m}{sc}%
56 {<5><6><7><8><9><10><10.95><12>%
57 <14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmcsc10%
58 }{}
59 \DeclareFontShape{OT1}{cmr}{m}{ui}
60 {<5><6><7><8><9><10><10.95><12>%
61 <14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmu10%
62 }{}
63 \DeclareFontShape{OT1}{cmr}{b}{n}
64 {<5><6><7><8><9><10><10.95><12>%
65 <14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmb10%
66 }{}
67 \DeclareFontShape{OT1}{cmr}{bx}{n}
68 {<5><6><7><8><9>gen*cmbx%
69 <10><10.95>cmbx10%
70 <12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmbx12%
71 }{}
72 \DeclareFontShape{OT1}{cmr}{bx}{sl}
73 {<5><6><7><8><9>%
74 <10><10.95><12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmbxsl10%
75 }{}
76 \DeclareFontShape{OT1}{cmr}{bx}{it}
77 {<5><6><7><8><9>%
78 <10><10.95><12><14.4><17.28><20.74><24.88><29.86><35.83><42.99><51.59>cmbxti10%
79 }{}
80 \let\orig@newcommand=\newcommand
81 \renewcommand{\newcommand}[2]{% %an unconditional newcommand
82 \def#1{}
83 \renewcommand{#1}{#2}}
84 \input{size\@ptsize.clo}
85 \let\newcommand=\orig@newcommand