summaryrefslogtreecommitdiff
path: root/macros/plain/contrib/misc/bfsymb.tex
blob: 2fbd828f81af9287f1c0964a8da366fa7c1ae472 (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
%
%% bfsymb.tex, written by Uwe M\"unch
%% e-mail: muench@ph-cip.uni-koeln.de
%
% This macro package provides the command
%	\boldsymbol{...} 
% to typeset parts of a math formula (e.g. a greek sign (\alpha)) in the 
% bold cmmib10-font for the plain tex format. It's not for use under 
% any other format, because it will not work (I think).
%
% The 10pt-font cmmib10 is hard-coded, so that you get the design size
% 10 pt. Magnification with \magnification=???? will work, but this macro
% will not provide good results, if you want to use it with (e.g.) cmr17...  
%
% For the latex format the command \boldsymbol is provided in the amstex 
% package (written by the AMS, not me), with similar functionality, but 
% much stronger font selection (NFSS2).
%
%%
\font\bfsymbtext=cmmib10 
\font\bfsymbscript=cmmib10 at 7pt
\font\bfsymbscriptscript=cmmib10 at 5 pt
\def\boldsymbol#1{{\mathchoice%
	{\hbox{$\displaystyle\textfont1=\bfsymbtext\scriptfont1=%
		\bfsymbscript\scriptscriptfont1=\bfsymbscriptscript #1$}}%
	{\hbox{$\textstyle\textfont1=\bfsymbtext\scriptfont1=%
		\bfsymbscript\scriptscriptfont1=\bfsymbscriptscript #1$}}%
	{\hbox{$\scriptstyle\scriptfont1=\bfsymbscript%
		\scriptscriptfont1=\bfsymbscriptscript #1$}}%
	{\hbox{$\scriptscriptstyle%
	\scriptscriptfont1=\bfsymbscriptscript {#1}$}}}}
\endinput