我正在使用 arabxetex 包,需要我的目录从右到左排列,并且页码采用东方阿拉伯数字,即 (٠ ١ ٢ ٣ ٤ ٥ ٦ ٧ ٨ ٩)?
目录应如下所示:(صصض....... ٣)这是一个最小的示例:
\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}
答案1
如果您想以母语输入阿拉伯语,请使用 xelatex 和polyglossia
,而不是arabxetex
:
\documentclass[a4paper]{article}
\usepackage{polyglossia}
\setmainlanguage{arabic}
\setotherlanguage{english}
\setmainfont{Times New Roman}
\begin{document}
\tableofcontents
\section{انا عجم لا عرب}
الخلیج الفارسیه
\end{document}