2

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}
\foilhead{Test slide}
This word is \emph{emphasized}.
\end{document}

Help greatly appreciated! -Lu

3
  • 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, 2014 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, 2014 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, 2014 at 23:44

1 Answer 1

2

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}
\foilhead{Test slide}

This word is \emph{emphasized}.
\end{document}

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

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .