[XeTeX] XeTeX, Persian, Page Numbers, Footnote Numbers and other same issues
Mojca Miklavec
mojca.miklavec.lists at gmail.com
Wed Nov 28 00:28:17 CET 2007
On Nov 27, 2007 4:10 PM, Ali Majdzadeh wrote:
> Hello
> Is it possible to produce page numbers in Persian? The same question exists
> about footnote numbers, endnote numbers and heading numbers.
I don't understand any Persian (and "almost no LaTeX" either).
In ConTeXt it would look simple like that:
% I took a random font from http://www.wazu.jp/gallery/Fonts_Persian.html
% and put it to the same folder where the document is (you need to
specify your own font)
%
% This is the an ugly font definition (you should change the whole
font instead):
\font\persian="[BCompset]"
% page numbers:
\setuppagenumbering[conversion=persiannumerals,style=\persian]
% heading numbers:
\setuphead[section][conversion=persiannumerals,numberstyle=\persian]
\setuphead[subsection][conversion=persiannumerals,numberstyle=\persian]
% footnotes:
\setupfootnotes[conversion=persiannumerals,style=\persian]
% style=\persian is not needed in general (once you properly set the font)
\starttext
\section{test}
\subsection{test}
\subsection{test}
\starttext
(to be processed with "texexec --xtx filename", you need to have ruby installed)
Mojca
More information about the XeTeX
mailing list