[XeTeX] Question about polyglossia and babel
Fr. Michael Gilmary
FrMichaelGilmary at MaroniteMonks.org
Sat May 29 16:25:24 CEST 2010
Alexander wrote:
> Hello. What the best way to use commands "--- and others (works in
> babel with Russian language) in XeTeX with polyglossia?
>
Hi Alexander:
If you use a preamble with something like this:
%\usepackage[no-math]{fontspec} %% un-comment if you don't use math stuff
\usepackage{xltxtra} %%% this loads fontspec and xunicode also
\usepackage[nolocalmarks]{polyglossia} %%% [nolocalmarks] helps if you
have custom headers
\setdefaultlanguage[variant=american]{english}
\defaultfontfeatures{Mapping=tex-text}
The last command ( \defaultfontfeatures ) is what enables fontspec to
use --- and " as the standard (La)TeX does. However, with Xe(La)TeX, you
can enter — and “ (or ” ) directly since that's part of the genius of XeTeX.
HTH.
--
United in adoration of Jesus,
fr. michael gilmary, mma
Most Holy Trinity Monastery
67 Dugway Road
Petersham, MA 01366-9725
www.MaroniteMonks.org
More information about the XeTeX
mailing list