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

  • 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
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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.