[XeTeX] Please help me

Arthur Reutenauer arthur.reutenauer at normalesup.org
Tue Nov 18 00:04:35 CET 2008


> I want to use xelatex to write Sanskrit. I need to have hyphenation for my
> project.

  The most straightforward way is to use the polyglossia package.
Something like the example below should do the trick:

\documentclass[12pt,a4paper]{book}
\usepackage{polyglossia}
\usepackage{fontspec}
\setmainlanguage{sanskrit}
\setromanfont[Script=Devanagari]{Code2000}
\newfontfamily\devanagarifont[Script=Devanagari]{Code2000}

\begin{document}

उद्दिष्टः समाहितचित्तस्य योगः । कथं व्युत्थितचित्तोऽपि योगयुक्तः
स्यादित्येतदारभ्यते ।

\end{document}

	Arthur


More information about the XeTeX mailing list