# In FoilTeX, with sans serif font, \emph gives serif font

I'm using the foils class. I'd like all the text to be serif, so I added \renewcommand{\familydefault}{\rmdefault} to the preamble. However, when I use \emph{}, it displays italicised SANS serif!

MWE:

\documentclass[landscape]{foils}
\renewcommand{\familydefault}{\rmdefault}
\begin{document}
This word is \emph{emphasized}.
\end{document}


Help greatly appreciated! -Lu

• Welcome to TeX.SX! A tip: You can use backticks  to mark your inline code as I did in my edit. Where can foils be found? – user31729 Dec 1 '14 at 22:35
• Welcome to TeX.SX! The class is quite old and has not so many features. Are you really sure you want to use it? – egreg Dec 1 '14 at 22:35
• I will reconsider whether I ought to use it. I like the featurelessness and simplicity, but no doubt there are more elegant means to these ends. – lu_sin Dec 1 '14 at 23:44

The fltfonts.def file contains an instruction equivalent to

\DeclareFontShape{OT1}{fcmr}{m}{sl}{<->ssub * fcmss/m/sl}{}


which basically means: if the family is fcmr and the requested fonts shape is slanted, use the slanted font from the fcmss family. The same file also changes \em to select \slshape rather than \itshape.

You get the standard behavior by reinstating the usual definition of \em:

\documentclass[landscape]{foils}
\renewcommand{\familydefault}{\rmdefault}

\makeatletter
\DeclareRobustCommand\em{\@nomath\em \ifdim \fontdimen\@ne\font >\z@
\upshape \else \itshape \fi}
\makeatother

\begin{document}

But this class is quite old and has few features compared to more modern ones like beamer or powerdot`.