[XeTeX] xelatex + beamer + fontspec: result is not as expected
Arash Zeini
azeini at yahoo.com
Wed Feb 25 08:47:53 CET 2009
----- Original Message ----
> Hi all,
>
> This may be FAQ, but a superficial round through Google did not turn up much.
> I'd like to use the beamer class in xelatex, and I'd like to use fontspec to
> choose my fonts. However, when I put
>
> \fontspec[Mapping=tex-text]{Kozuka Mincho Pro-VI}
>
> in the preamble, I get the Latin Modern fonts. When I put the \fontspec command
> after the \begin{document}, I get latin modern. I have to use the \fontspec
> command inside a frame to get the requested font on that particular slide. Is
> this the normal operation of fontspec in this case? It's kind of a nuisance to
> have to set the \fontspec for each frame.
>
> Thanks,
> Wilfred
Hello,
This is what I use in the preamble and it works for me:
\TeXXeTstate=1
\documentclass[xetex]{beamer}
\usepackage{xltxtra,fontspec,xunicode}
\defaultfontfeatures{Mapping=tex-text}
\setmainfont{Gentium} % your choice of font
\newfontfamily{\avestan}{Gentium Basic} % For Avestan quotations
[...]
\begin{document}
\begin{frame}{Early Veneration}
\begin{verse}
\textit{{\avestan SOMETHING IN AVESTAN}}
\end{verse}
\end{frame}
\end{document}
Hope this helps,
Arash
More information about the XeTeX
mailing list