Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using arabxetex package and need my TOC oriented from right-to-left as well as to have page numbers be in Eastern Arabic Numberals i.e (٠‎ ١‎ ٢‎ ٣‎ ٤‎ ٥‎ ٦‎ ٧‎ ٨‎ ٩‎)?

Table of Contents should look like this: (صصض....... ٣) Here is a minimal example:

    \documentclass[a4paper]{article}
\usepackage{hyperref}
\usepackage{multicol}
\usepackage{fancyhdr}
\makeatletter
\makeatother
\usepackage{hyperref}
\hypersetup{
    colorlinks,
    citecolor=black,
    filecolor=black,
    linkcolor=black,
    urlcolor=black
}
\usepackage[margin=0.08in, paperwidth=3.56in, paperheight=5.95in]{geometry}
\usepackage{arabxetex}
\usepackage{setspace}
    \renewcommand*\contentsname{}

\begin{document}
\tableofcontents
\newpage

\phantomsection
\addcontentsline{toc}{section}{AAA} % Instead of AAA, I need Arabic text ننن
\begin{arab}[utf]
نتنتنهه
\end{arab}

\newpage
\phantomsection
\addcontentsline{toc}{section}{\textarab[utf]{ يسيس}} % Instead of BBB, I need Arabic text ههه
\begin{arab}[utf]
منسة
\end{arab}

\end{document}
share|improve this question

1 Answer 1

If you want to type Arabic natively, then use xelatex and polyglossia, not arabxetex:

\documentclass[a4paper]{article}
\usepackage{polyglossia}
\setmainlanguage{arabic}
\setotherlanguage{english}
\setmainfont{Times New Roman}
\begin{document}
\tableofcontents
\section{انا عجم لا عرب}
الخلیج الفارسیه

\end{document}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.