Even more condensed: \documentclass{article} \makeatletter \def\vafa#1{\ifcase#1\or ا\or ب\or ح\or ح\or خ\fi} \l...@alph\vafa \makeatother \usepackage{hyperref} \begin{document} \tableofcontents \section{Test} \newpage \appendix \section{Another Test} \end{document}
It seems that the actual problem is because of the presence of Persian characters. -- Best wishes, Vafa Khalighi
-------------------------------------------------- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex