[XeTeX] arabic

Kamal Abdali k.abdali at acm.org
Thu Oct 21 00:32:35 CEST 2010


I didn't get the error reported here, with the TeX code in-line or in the
attachment. The bidi package is being called last as it should be.

Considering that this is a Persian document, perhaps you would like in it
the Persian equivalents of words like "chapter", "contents", etc. For this,
you might try the package xepersian or polyglossia. Sample polyglossia code
is below (also as an attached image). Polygossia itself calls bidi and
fontspec, so you don't need to.

As an aside, there is some sensitivity about the language name "farsi" vs.
"persian". At present, polyglossia uses "farsi" so that's what I've written.

Kamal Abdali
==============

\documentclass[a4paper]{book}%
\usepackage{xltxtra,url,amsmath}
\usepackage{polyglossia}
\setmainlanguage{farsi}
\usepackage{makeidx}
\makeindex
\setmainfont[Script=Arabic,Scale=1.3]{Scheherazade}%
\setromanfont[Scale=1.3]{Times New Roman}%
\title{روش تولید نمایه توسط زیلاتک}
\author{مهدی امیدعلی}
\begin{document}
\maketitle
\tableofcontents
\begin{farsi}
\chapter{امتحان}

این اولین نمایه این متن است که برای امتحان آورده شده است.
\index{نمایه}
\index{dummy}
\end{farsi}
\begin{LTR}
This a test for LTR languages\index{test}
\end{LTR}
\begin{farsi}
\printindex
\end{farsi}
\end{document}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/xetex/attachments/20101020/d6fab022/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xetexQ.jpg
Type: image/jpeg
Size: 166207 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20101020/d6fab022/attachment-0001.jpg>


More information about the XeTeX mailing list