# Using a font for selected text [duplicate]

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

How can I use the chancery font for only selected text instead of the whole document?

-

## marked as duplicate by Joseph Wright♦Aug 25 '11 at 6:41

Exact duplicate of this question? Change font in a single paragraph – Alan Munn Mar 7 '11 at 5:19
@Alan: It is definitely similar. I interpreted this question as being more about which obscure combination of characters makes up the font family name for Chancery. In this case, it is pzc. – TH. Mar 7 '11 at 6:12

You can change the font family using \fontfamily.

\documentclass{article}
\newcommand*\chancery{\fontfamily{pzc}\selectfont}
\begin{document}
Normal Computer Modern. {\chancery Chancery.} Back to CM.
\end{document}


-
thanks TH...... – Regis da Silva Mar 7 '11 at 4:22
@Regis: If you are using XeLaTeX see also this answer which shows a similar but simpler approach using fontspec. – Martin Scharrer Mar 7 '11 at 7:32
This answer got me wondering.. Is there some kind of manual or document that contains a list of all these font families? I know the, but that's only for document wide font changes. I'd like to have a list of existing fonts with their shorthand names (like pzc in your example). – romeovs Mar 7 '11 at 13:48
@romeovs: We were actually just contemplating this on meta. I'm unaware of such a document. I just looked in chancery.sty to figure out the answer to this question. I think you should ask a question asking for exactly that list. What I'd like is a list of fonts, the packages to use for them, and the font family names for them as well. – TH. Mar 7 '11 at 16:06
@romeovs for the standard fonts, the document psnfss2e.pdf (texdoc psnfss should find it). For all of the possible fonts there is the online LaTeX Font Catalogue. For XeLaTeX/LuaLaTeX the available fonts are any fonts installed in your system. – Alan Munn Mar 7 '11 at 18:55