4

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    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
11

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}

enter image description here

  • @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
  • 1
    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
  • The above code works but not when I change pzc to something else? – Erik Vesterlund Aug 31 '15 at 11:32

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