[XeTeX] (no subject)

Gildas Hamel gweltaz at ucsc.edu
Tue Dec 25 06:21:01 CET 2012


* Skriv a reas Sasi Kumar (sasi.fsf at gmail.com):
 
  |>  1. How can I change the font inside a document? For 
  |>  2. I am creating a document in two languages, let us say, English and
  |>  Malayalam
  
Here is a short example but reading fontspec and polyglossia documentation will give you essential information:

\documentclass{article}
\usepackage{fontspec}
\setmainfont[Ligatures={TeX}]{Hoefler Text}
\defaultfontfeatures{Scale=MatchLowercase}
\usepackage{polyglossia}
\setdefaultlanguage[variant=american]{english}
\setotherlanguage{malayalam}
\newfontfamily\malayalamfont{FreeSerif}

\begin{document}
Here some text in English
and then some in Malayalam (I hope) \textmalayalam{മീനകേതനചരിതം}
\end{document}

--Gildas



More information about the XeTeX mailing list