Index of /archives/text/CTAN/macros/plain/contrib/font_selection

Icon  Name                                      Last modified      Size  Description
[PARENTDIR] Parent Directory - [   ] fnts.tex 2000-03-03 04:48 28K [   ] fnts.doc 2000-03-03 04:47 10K [TXT] README 2000-03-03 04:47 10K
FNTS.TEX v3.0  Copyright (c) 1994-1999 Harold W. de Wijn

FONT SELECTION FOR PLAIN TeX, featuring
- 21 sizes in the range 7 to 154 points;
- 16 typefaces, including Italic Bold, Calligraphic Bold, Sans Serif, Sans
  Serif Italic, and Sans Serif Bold;
- Boldmath, inclusive of subscripts, superscripts, and symbols.

File is provided `as is' with no warranty of any kind.

Please direct comments to the author at H.W.deWijn@phys.uu.nl


                            *** USAGE ***

\input fnts [\viipt, \viiipt, ..., \fsize0, \fsize{h}, \fsize1, ... ]
<body of document with further font-size calls as necessary>
\bye (or \Bye)


                          *** FONT SIZES ***

Fonts of point size 7, 8, 9, 10, 11, 12, 13, 14, 17, 21, 25, 30, 36, 43,
52, 62, 74, 89, 107, 128, and 154 are selected by \<roman numeral>pt,
i.e., \viipt, \viiipt, \ixpt, \xpt, \xipt, \xiipt, \xiiipt, \xivpt,
\xviipt, \xxipt, \xxvpt, \xxxpt, \xxxvipt, \xliiipt, \liipt, \lxiipt,
\lxxivpt, \lxxxixpt, \cviipt, \cxxviii, and \cliv.  The fonts of size 10
point and larger follow the customary 10*1.2^n magstep series, with
additional halfinteger steps for n = 0.5 and 1.5.  They may alternatively
be selected by \fsize{n}, in which n = 0, 0.5, 1, 1.5, 2, ...., 15 is the
number of magsteps; \fsize{h} is equivalent to \fsize{0.5}, and \fsize{1h}
equivalent to \fsize{1.5}.  Spaces following \fsize{n} are ignored.
Also note that the {} are optional for integer n < 10, as in \fsize2.

The values delivered by the macro \magstep#1 accordingly extend from 1000
to 1000*1.2^15 = 15407 for parameter values #1 = 0 up to 15 as follows:

   0   1000     1   1200     2   1440     3   1728     4   2074
   5   2488     6   2986     7   3583     8   4300     9   5160
  10   6192    11   7430    12   8916    13  10699    14  12839
  15  15407

The macros \magstephalf and \magsteponehalf refer to 0.5 and 1.5 magsteps,
i.e., the values 1095 and 1314.

The integer \fontscaling assumes the values 700, 800, 900, 1000,
\magstephalf, \magstep1, \magsteponehalf, \magstep2, ..., \magstep{15}
according to the font size selected.  It may conveniently be used to load
additional fonts scaled to the same size, e.g., \font\euro=euro scaled
\fontscaling.


                          *** TYPEFACES ***

The following typefaces are available in text mode and math mode (T = text
size, S = script size, SS = scriptscript size; see also the table of font
families in math mode below):

==========================================================================
         typeface          text       math        remarks
                           mode       mode
--------------------------------------------------------------------------
\rm      Roman               x     T   S   SS
\mit     Math Italic               T   S   SS     No need for text mode!
\oldstyle                    x     T
         Symbol                    T   S   SS     Math mode only
\cal     Calligraphic              T   S   SS     Math mode only (=symbol)
\it      Text Italic         x     T
\sl      Slanted Roman       x     T
\bf      Bold                x     T   S   SS
\tt      Typewriter          x     T
\sc      small caps          x                    Text mode only
\mib     Math Italic Bold          T   S   SS     No need for text mode!
\boldoldstyle                x     T
         Symbol Bold               T   S   SS     Math mode only
\boldcal Calligraphic Bold         T   S   SS     Math mode only
\itb     Text italic Bold    x     T
\sf      Sans Serif          x     T   S   SS
\sfi     Sans Serif Italic   x     T   S   SS
\sfb     Sans Serif Bold     x     T   S   SS
==========================================================================


                           *** BOLDMATH ***

The macro \boldmath causes TeX to make boldface the default in math mode.
This includes first-order and second-order subscripts and superscripts.
Boldmath applies to math italic, greek characters, symbols, and the
standard mathematical functions, but not to the math extension font.
\boldmath is achieved by exchanging the font families 0, 1, and 2 for the
families \bffam, \mibfam, and \sybfam, and vice versa.  The macro
\unboldmath returns math to the standard fonts.  \boldmath should be
called prior to entering math mode, \unboldmath after exiting math mode.
The Boolean \ifboldmath is true when boldmath is in effect.

\boldmath is designed for boldface composition of all math in a document,
or, for that matter, part of a document or a complete formula.  You may,
e.g., include \bf\boldmath in macros for headers, to ensure that any
material in math mode will appear in boldface, as does the material in text
mode.  To compose part of a formula or a single character in boldface, one
should preferentially rely on \bf for roman and \mib for italic boldface.
The macro \bmbox#1, which is based on \boldmath, provides a more powerful
tool, but its use should be restricted to cases where \bf and \mib don't
work.  \bmbox#1 may be used in both text and math modes.

The macros \boldoldstyle and \boldcal produce bold oldstyle numbers and
bold calligraphic capitals, similarly to \oldstyle and \cal.


                     *** HEAD AND FOOT LINES ***

The font size of the head and foot lines is defined as the font size first
selected (usually immediately following \input fnts), with roman the
default.


           *** SCALING OF PARAMETERS, \tightendisplays ***

All of TeX's parameters scale with the font size, with the exception of
\parindent, \parskip, and the page-size parameters.

For large-size lettering on standard-sized paper, this results in
unaesthetically wide skips separating the displayed equation from the
preceding and following text.  The macro \tightendisplays#1 reduces the
height of displays by roughly #1/100 times the baselineskip.  Satisfactory
values of the integer parameter #1 are in the range 0 - 100.  A negative
#1 similarly increases the display height.  The display skips may be reset
to their default values by the command \normaldisplayskips.


               *** ADDITIONAL MACROS IN TEXT MODE ***

\Bye     % \bye except for omitting page numbering in a single-page
           document
\@       % end-of-sentence space after punctuation (\@ must precede the
           punctuation character; the length of the space depends on the
           character's \sfcode; suppressed by \frenchspacing)
\is, \\  % intersentence space (following whatever; suppressed by
           \frenchspacing; \\ may be redefined without affecting \is)
\hoursminutes (time in format hh:mm)
\today
\vandaag (\today in Dutch)
\heute (\today in German)
\aujourdhui (\today in French)
\dollar
\pounds
\copyright
\GOTOnextoddpage  % useful to ensure that material to follow, e.g. the
\GOTOnextevenpage % next chapter, begins at the top of the next odd or
                  % even page, inserting a blank page if necessary


               *** ADDITIONAL MACROS IN MATH MODE ***

\frac#1#2                % fraction
\csfrac#1#2, \case#1#2   % case fraction (used for small integers)
\slfrac#1#2              % slanted fraction
\rdcl                    % slightly raised radical sign \surd
\gsim, \gtrsim           % greater than or on the order of
\lsim, \lesssim          % smaller than or on the order of


                 *** FONT FAMILIES IN MATH MODE ***

==========================================================================
family                 typeface              macro
(in boldmath)
--------------------------------------------------------------------------
FAMILIES ALREADY DEFINED IN plain TeX:
         0 (6)         Roman                 \rm
         1 (8)         Math Italic           \mit (math), \oldstyle
         2 (9)         Symbols               \cal (math)
         3             Math Extension
\itfam=  4             Text Italic           \it
\slfam=  5             Slanted Roman         \sl
\bffam=  6 (0)         Bold                  \bf
\ttfam=  7             Typewriter            \tt
--------------------------------------------------------------------------
ADDITIONAL FAMILIES:
\mibfam= 8 (1)         Math Italic Bold      \mib (math), \boldoldstyle
\sybfam= 9 (2)         Symbol Bold           \boldcal (math)
\itbfam=10             Text Italic Bold      \itb
\sffam= 11             Sans Serif            \sf
\sfifam=12             Sans Serif Italic     \sfi
\sfbfam=13             Sans Serif Bold       \sfb
        14             --                    not used
        15             --                    not used
==========================================================================


                            *** FONTS ***

The fonts, in various magnifications, are the 16 basic Computer Modern
fonts of plain TeX (marked with *) augmented with Computer Modern fonts
that come with standard TeX distributions such as emTeX.  The font metrics
should be available in tfm files, and METAFONT should be ready to generate
the pk files for missing magnifications.

==========================================================================
Roman                  cmr5*  cmr6   cmr7*  cmr8   cmr9   cmr10*   cmr12
Math Italic            cmi5*  cmi6   cmi7*  cmi8   cmi9   cmi10*   cmi12
Symbol                 cmsy5* cmsy6  cmsy7* cmsy8  cmsy9  cmsy10*
Math Extension                       cmex7  cmex8  cmex9  cmex10*
Text Italic                          cmti7  cmti8  cmti9  cmti10*  cmti12
Slanted                                     cmsl8  cmsl9  cmsl10*  cmsl12
Bold Extended          cmbx5* cmbx6  cmbx7* cmbx8  cmbx9  cmbx10*  cmbx12
Typewriter                                  cmtt8  cmtt9  cmtt10*  cmtt12
Math Italic Bold       cmmib5 cmmib6 cmmib7 cmmib8 cmmib9 cmmib10
Symbol Bold            cmbsy5 cmbsy6 cmbsy7 cmbsy8 cmbsy9 cmbsy10
Text Italic Bold                                          cmbxti10
Sans Serif                                  cmss8  cmss9  cmss10   cmss12
Sans Serif Italic                           cmssi8 cmssi9 cmssi10  cmssi12
Sans Serif Demi Bold                                      cmssdc10
Small caps                                  cmcsc8 cmcsc9 cmcsc10
==========================================================================

The font-selecting macros load the typefaces belonging to a particular
size.  This includes, to the extent requested, the text-mode font, the
math-mode text font, the math-mode script font, and the math-mode
scriptscript font (cf. the table of typefaces above).  Fonts are called
only once throughout the document.  Their font identifiers are stored for
later use by global definitions such as \global\def\twelverm=cmr12.  The
fonts marked with an * are preloaded by plain TeX.

                       *** END OF FNTS.DOC ***