summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/bold-extra/bold-extra.sty
blob: 345e75c6209bd948044f42a17146c99b58388fe9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
% bold-extra.sty - a jiffy to provide access (in latex) to (some of)
% the fonts in ctan directory fonts/cm/mf-extra/bold
%
% by robin fairbairns, rf10@cam.ac.uk November 2001
%
% this package is provided under the provisions of the latex project
% public licence, http://www.latex-project.org/lppl.txt
%
% this packages provides font shapes to support bold small caps and tt
% text.  there is a choice of bold tt fonts, which are selected by
% package options cmbtt and cmttb (this reflects the confusingly
% similar font names).  the default (based on the author's estimation
% of the fonts' relative merits) is cmttb.
%
% to use these fonts you need their metafont sources available to your
% tex system (as far as i know, there are no type 1 versions of the
% fonts available yet).  place them in an appropriate place under
% fonts/source in your tds texmf tree; place this file somewhere like
% tex/latex/misc in your tree.  see
% http://www.tex.ac.uk/cgi-bin/texfaq2html?label=instpackages+wherefiles
% for more details.

\ProvidesPackage{bold-extra}[2001/11/13 v0.1 Use fonts from cm/mf-extra/bold]
\NeedsTeXFormat{LaTeX2e}

\newif\if@cmttb
\DeclareOption{cmttb}{\@cmttbtrue}
\DeclareOption{cmbtt}{\@cmttbfalse}
\ExecuteOptions{cmttb}
\ProcessOptions

% declare bold small caps font
\DeclareFontShape{OT1}{cmr}{b}{sc}
   {
    <5><6><7><8><9><10><12><10.95><14.4><17.28><20.74><24.88>cmbcsc10
    }{}
\DeclareFontShape{OT1}{cmr}{bx}{sc}
   {<->ssub*cmr/b/sc}{}

% declare bold tt font: note, we use cmttb10 by default rather than
% the cmbtt series (which seem over-bold to me)
\if@cmttb
\DeclareFontShape{OT1}{cmtt}{b}{n}
   {
    <5><6><7><8><9><10><12><10.95><14.4><17.28><20.74><24.88>cmttb10
    }{}
\else
\DeclareFontShape{OT1}{cmtt}{b}{n}
   {
    <5><6><7><8>cmbtt8%
    <9>cmbtt9%
    <10><12><10.95><14.4><17.28><20.74><24.88>cmbtt10
    }{}
\fi
\DeclareFontShape{OT1}{cmtt}{bx}{n}
   {<->ssub*cmtt/b/n}{}