As I noted in an earlier comment, the IEEEtran
document class uses Helvetica ("Berry" fontname code: phv
) for sans serif material, along with Times Roman ("Berry" code: ptm
) as the main text font.
To switch to Computer Modern Sans Serif (the default sans font used by the article
class), you could issue the command
\renewcommand{\sfdefault}{cmss}
in the preamble.
However, as @cfr has already pointed out in a comment, if you're using the IEEEtran
class to submit a paper to a conference, a proceedings volume, etc., changing the default sans serif family will likely annoy editors and conference organizers.
I can suggest a middle way, which is based on the observation that Times and Helvetica have very different x-heights and thus don't harmonize very well unless one or the other font is re-scaled. A way to alleviate the scaling problem is to issue the command
\usepackage[scaled=0.88]{helvet}
in the preamble. That way, Helvetica is scaled down 12%, making it stand out much less when interspersed among Times-based text:
For comparison, this is what one gets without scaling:
Whichever route you choose, do be sure to point out to editors and others that you've modified at least some aspects of the sans-serif font used in your document.
\documentclass{IEEEtran}
\usepackage[scaled=0.88]{helvet} % comment out this instruction to suspend scaling
\begin{document}
The \textsf{quick} brown \textsf{fox} jumps \textsf{over} the \textsf{lazy} dog.
\end{document}
Aside: I don't know why the creator(s) of the IEEEtran
document class didn't incorporate at least some scaling of Helvetica. After all, the issue of Times and Helvetica not getting along all that well unless they're rescaled has been around for many years.
article
class uses Computer Modern Sans -- code:cmss
-- whereas theIEEEtran
class uses Helvetica -- code:phv
. (Note that theIEEEtran
class uses Times Roman as the main text font.) To switch from Helvetica to Computer Modern Sans, you'll need to execute the instruction\renewcommand{\sfdefault}{cmss}
.texdoc fontname
at a command prompt to learn much more about this scheme; section 2 of the document is particularly relevant. If one uses Xe(La)TeX and/or Lua(La)TeX along with thefontspec
package, it's possible (and highly preferable...) to use the names provided by the font files themselves.