From: Anita Zanolini Hoover <anita@ravel.udel.edu>
Newsgroups: comp.text.tex
Subject: BUG: lfonts.tex
Date: Wed, 18 Nov 1992 12:15:55 -0500
Organization: Info-Tex<==>Comp.Text.Tex Gateway
X-Gateway-Source-Info: Mailing List


Yesterday a user came to me to ask how to make a special symbol
in his title of his thesis be bold and another lowercase.  The macro
that is used to generate the title is as such:

\def\maketitlebox{\vbox{\begin{center}\baselineskip\titlebaselineskip
                  {\large\bf\uppercase\expandafter{\@title}}\end{center}}}

So because of the automatic uppercase and bolding sometimes it is not
obvious to users how to do this.  So I told him how to accomplish this
and then we tried it at my workstation.  To my surprise it seemed to
not work correctly.  He was using 12pt fonts.  When I tried the exact
same thing for 11pt or 10pt, I got the results I expected.

Here is the title we were testing:

\title{Irradiation and Annealing Effects\\
in Amorphous Alloys \lowercase{d} $\bf M_{\mbox{\boldmath$\odot$}}$
Okay}

In my searching I found that the definition of \boldmath for the
particular pointsize of the title for 12pt (\large) was causing the
problem.  I narrowed it down to the lfonts.tex file and then the the
\@magscale#1 macro.  It turns out that I was able to fix the problem by
adding \relax after every \@magscale and this fixed the problem.  Is
this an old bug?  I just downloaded the lfonts.tex file from shsu and
still got the same results (this file was dated March 1992) until I
added \relax after \@magscale for xiipt and xivpt.

Here are the changed lines:

------------------------------------------------------
\def\xiipt{\textfont\z@\twlrm
  \scriptfont\z@\egtrm \scriptscriptfont\z@\sixrm
\textfont\@ne\twlmi \scriptfont\@ne\egtmi \scriptscriptfont\@ne\sixmi
\textfont\tw@\twlsy \scriptfont\tw@\egtsy \scriptscriptfont\tw@\sixsy
\textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex
\def\unboldmath{\everymath{}\everydisplay{}\@nomath\unboldmath
          \textfont\@ne\twlmi
          \textfont\tw@\twlsy \textfont\lyfam\twlly
          \@boldfalse}\@boldfalse
%
% 11/18/92: Added \relax after all occurrences of \@magscale1
%           AZH
\def\boldmath{\@ifundefined{twlmib}{\global\font\twlmib\@mbi\@magscale1\relax
        \global\font\twlsyb\@mbsy\@magscale1\relax
        \global\font\twllyb\@lasyb\@magscale1\relax\@addfontinfo\@xiipt
              {\def\boldmath{\everymath
                {\mit}\everydisplay{\mit}\@prtct\@nomathbold
                \textfont\@ne\twlmib \textfont\tw@\twlsyb
                \textfont\lyfam\twllyb\@prtct\@boldtrue}}}{}\@xiipt\boldmath}%
\def\prm{\fam\z@\twlrm}%
\def\pit{\fam\itfam\twlit}\textfont\itfam\twlit \scriptfont\itfam\egtit
   \scriptscriptfont\itfam\sevit
\def\psl{\fam\slfam\twlsl}\textfont\slfam\twlsl
     \scriptfont\slfam\tensl \scriptscriptfont\slfam\tensl
\def\pbf{\fam\bffam\twlbf}\textfont\bffam\twlbf
   \scriptfont\bffam\ninbf \scriptscriptfont\bffam\ninbf
\def\ptt{\fam\ttfam\twltt}\textfont\ttfam\twltt
   \scriptfont\ttfam\nintt \scriptscriptfont\ttfam\nintt
\def\psf{\fam\sffam\twlsf}\textfont\sffam\twlsf
    \scriptfont\sffam\tensf \scriptscriptfont\sffam\tensf
\def\psc{\@getfont\psc\scfam\@xiipt{\@mcsc\@magscale1}}%
\def\ly{\fam\lyfam\twlly}\textfont\lyfam\twlly
   \scriptfont\lyfam\egtly \scriptscriptfont\lyfam\sixly
 \@setstrut \rm}

-------------------------------------------
\def\xivpt{\textfont\z@\frtnrm
  \scriptfont\z@\tenrm \scriptscriptfont\z@\sevrm
\textfont\@ne\frtnmi \scriptfont\@ne\tenmi \scriptscriptfont\@ne\sevmi
\textfont\tw@\frtnsy \scriptfont\tw@\tensy \scriptscriptfont\tw@\sevsy
\textfont\thr@@\tenex \scriptfont\thr@@\tenex \scriptscriptfont\thr@@\tenex
\def\unboldmath{\everymath{}\everydisplay{}\@nomath\unboldmath
          \textfont\@ne\frtnmi \textfont\tw@\frtnsy
          \textfont\lyfam\frtnly \@boldfalse}\@boldfalse
%
% 11/18/92: Added \relax after all occurrences of \@magscale2
%           AZH
\def\boldmath{\@ifundefined{frtnmib}{\global\font\frtnmib\@mbi\@magscale2\relax
         \global\font\frtnsyb\@mbsy\@magscale2\relax
         \global\font\frtnlyb\@lasyb\@magscale2\relax\@addfontinfo\@xivpt
               {\def\boldmath{\everymath
                {\mit}\everydisplay{\mit}\@prtct\@nomathbold
              \textfont\@ne\frtnmib \textfont\tw@\frtnsyb
              \textfont\lyfam\frtnlyb\@prtct\@boldtrue}}}{}\@xivpt\boldmath}%
\def\prm{\fam\z@\frtnrm}%
\def\pit{\@getfont\pit\itfam\@xivpt{cmti10\@magscale2}}%
\def\psl{\@getfont\psl\slfam\@xivpt{cmsl10\@magscale2}}%
\def\pbf{\fam\bffam\frtnbf}\textfont\bffam\frtnbf
   \scriptfont\bffam\tenbf \scriptscriptfont\bffam\ninbf
\def\ptt{\@getfont\ptt\ttfam\@xivpt{cmtt10\@magscale2}\@nohyphens\ptt\@xivpt}%
\def\psf{\@getfont\psf\sffam\@xivpt{\@mss\@magscale2}}%
\def\psc{\@getfont\psc\scfam\@xivpt{\@mcsc\@magscale2}}%
\def\ly{\fam\lyfam\frtnly}\textfont\lyfam\frtnly
   \scriptfont\lyfam\tenly \scriptscriptfont\lyfam\sevly
\@setstrut \rm}