diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/bold-extra/bold-extra.sty |
Initial commit
Diffstat (limited to 'macros/latex/contrib/bold-extra/bold-extra.sty')
-rw-r--r-- | macros/latex/contrib/bold-extra/bold-extra.sty | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/macros/latex/contrib/bold-extra/bold-extra.sty b/macros/latex/contrib/bold-extra/bold-extra.sty new file mode 100644 index 0000000000..345e75c620 --- /dev/null +++ b/macros/latex/contrib/bold-extra/bold-extra.sty @@ -0,0 +1,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}{} |