[comp.text.tex] bold-italics-math in all type sizes?

smagt@fwi.uva.nl (Patrick van der Smagt) (09/06/90)

Some time ago I requested solutions for the problem that \boldmath
doesn't work in footnotes or sup/subscripts.  The solution I am using
now is:

\def\bm#1{
  \setbox1=\hbox{$#1$}
  \copy1\kern-\wd1\kern0.05ex\copy1\kern-\wd1\kern0.05ex\box1
}

Of course, this isn't perfect since you'll blur your character
somewhat, e.g., the serif-like extensions of the \it i.

I wonder... why doesn't \boldmath work in all cases?

Patrick van der Smagt

smagt@fwi.uva.nl (Patrick van der Smagt) (09/06/90)

In article <1230@carol.fwi.uva.nl> smagt@fwi.uva.nl (Patrick van der Smagt) writes:
>Some time ago I requested solutions for the problem that \boldmath
>doesn't work in footnotes or sup/subscripts.  The solution I am using
>now is:
>
>\def\bm#1{
>  \setbox1=\hbox{$#1$}
>  \copy1\kern-\wd1\kern0.05ex\copy1\kern-\wd1\kern0.05ex\box1
>}
>
Ok, this is dumb, an improved version would be

\def\bm#1{%
  \mathchoice%
       {\setbox1=\hbox{$#1$}\dobm}
       {\setbox1=\hbox{$#1$}\dobm}
       {\setbox1=\hbox{\scriptsize$#1$}\dobm}
       {\setbox1=\hbox{\tiny$#1$}\dobm}
}
\def\dobm{
    \copy1\kern-\wd1\kern0.05ex\copy1\kern-\wd1\kern0.05ex\box1
}

or something to the same extent (thanks to Raymond Chen 
(raymond@math.berkeley.edu) who pointed out this blooper.
Never publish anything untested.)


Patrick van der Smagt