Bold Math Mode Macro

plain TeX


The following code allows one make math mode items bold; i.e., a bold title may contain an item in math mode that also needs to be bold. The necessary fonts are preloaded into this definition.

Example: $\boldmath{a^2+b^2=c^2}$


%=================================================================
% necessary fonts
%-----------------------------------------------------------------
   \font\fivebf  =cmbx10  scaled 500 % five point bold
   \font\sevenbf =cmbx10  scaled 700 % seven point bold
   \font\tenbf   =cmbx10             % ten point bold
   \font\fivemb  =cmmib10 scaled 500 % five point math bold
   \font\sevenmb =cmmib10 scaled 700 % seven point math bold
   \font\tenmb   =cmmib10            % ten point math bold
%=================================================================
% Math in Bold
% example $\boldmath{..}$   { math characters will be bold }
%-----------------------------------------------------------------
\def\boldmath{\textfont0=\tenbf           \scriptfont0=\sevenbf 
              \scriptscriptfont0=\fivebf  \textfont1=\tenmb
              \scriptfont1=\sevenmb       \scriptscriptfont1=\fivemb}
%=================================================================
And, if you want a larger, bold math type you can use

%=================================================================
% necessary fonts
%-----------------------------------------------------------------
   \font\sevenbf   =cmbx10  scaled 700
   \font\ninebf    =cmbx10  scaled 900
   \font\twelvebf  =cmbx10  scaled 1200
   \font\sevenmb   =cmmib10 scaled 700
   \font\ninemb    =cmmib10 scaled 900
   \font\twelvemb  =cmmib10 scaled 1200
%=================================================================
% Math in Bold
% example $\twelveboldmath{...}$   { math characters will be bold }
%-----------------------------------------------------------------
\def\twelveboldmath{\textfont0=\twelvebf           \scriptfont0=\ninebf 
              \scriptscriptfont0=\sevenbf  \textfont1=\twelvemb
              \scriptfont1=\ninemb       \scriptscriptfont1=\fivemb}
%=================================================================

Fifteen Point Macro / Blackboard Bold Macros

MESmith Spinneret / TeXSpot / smith@math.fsu.edu


FSU Math Home Page


Last modified: 14 August 1995