As long as I do not use \bf, my font works fine. Starting with $$ within which I first use \bf, and every instance thereafter, instead of getting the font I defined I keep getting bold letters. How do I fix this?
The problem might lie in the fact that I defined my own font. AMSFonts User Guide mentions several font families which can be used to define new fonts. Since it does not tell how to do so, I had to hack together a way to define my own font which I called \Cal
.
\documentclass{article}
\usepackage{amsfonts}
\newfam\calfam
\font\calten=eusm10
\font\calseven=eusm7
\font\calfive=eusm5
\textfont\calfam=\calten
\scriptfont\calfam=\calseven
\scriptscriptfont\calfam=\calfive
\def\Cal{\fam=\calfam}
\begin{document}
${\Cal O}$ ${\Cal O}{\bf a}b{\Cal O}$ ${\Cal O}$
\end{document}
The first \Cal O
shows up fine; the rest show up bold instead. Note that the b does NOT show up bold: so the bold-ness has obviously ended with the a. However, the O's keep showing up bold thereafter. How can I get regular \Cal O
's throughout my document?
Thank you in advance. Update:
I found the answer: Does it matter if I use \textit or \it, \bfseries or \bf, etc
{\bf foo}, for example, resets all font attributes which had been set earlier before it prints foo in bold face.
In other words, when I used bf, I guess it reset some variable that I had not defined when defining my font. While it would be nice to know how to define my font to allow it to go back to normal, I guess I will have to use the longer \mathbf in the meanwhile.
\bf
is deprecated in LaTeX. Using either\textbf
or\bm
from packagebm
(bold math) instead, it works as expected.\usepackage{eucal}
and use the standard\mathcal
to avoid the "hack together" method altogether.