[Tex/LaTex] Change font in a single paragraph

fonts

Duplicate:
How do I use a particular font for a small section of text in my document?

How is it possible to use a new font for just a single section of a document and switch back to the original font after that paragraph?

I have:

\fontfamily{ppl}\selectfont

Which works fine for part way through a document changing the font. But how do I revert back?

Best Answer

You can always restrict the scope of font changing commands by enclosing the paragraph in braces

{\fontfamily{ppl}\selectfont ... }

If this is something you will be doing a lot, it would make more sense to turn it into a proper environment:

\newenvironment{ppl}{\fontfamily{ppl}\selectfont}{\par}

Then you use it like any other environment:

\begin{ppl}
Some text in the new font.
\end{ppl}
Related Question