summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-07-13 23:53:39 +0000
committerKarl Berry <karl@freefriends.org>2008-07-13 23:53:39 +0000
commite4f771b7d8d95e34a03319ed0ce9fd34ea848eea (patch)
tree5ee31fb659e31ba5ea6dad3e9f417b1d43342fab /Master/texmf-dist
parent99246601830cda53e7a58c69efa3adb4d23abef2 (diff)
xepersian update (13jul08)
git-svn-id: svn://tug.org/texlive/trunk@9534 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/README10
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/beamer-example-3.pdfbin28486 -> 28489 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/beamer-example1.pdfbin18423 -> 18424 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/beamer-example2.pdfbin37567 -> 37541 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/beamer-example2.tex4
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/user-guide.pdfbin65425 -> 65070 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/xepersian/user-guide.tex65
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty120
8 files changed, 131 insertions, 68 deletions
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/README b/Master/texmf-dist/doc/xelatex/xepersian/README
index 47330367211..977b8cf680e 100644
--- a/Master/texmf-dist/doc/xelatex/xepersian/README
+++ b/Master/texmf-dist/doc/xelatex/xepersian/README
@@ -1,10 +1,12 @@
-------------------------------
-The XePersian Package v0.161
+The XePersian Package v0.16111
-Updates: removed the clash with bidi, redefined XePersian logo.
+Updates: removed the clash with bidi, redefined XePersian logo, added Persian
+alphabetic page numbering, added Persian alphabetic appendix numbering and
+removed the inconsistent line endings‏ from xepersian.sty.
XePersian is a package written for XeLaTeX that allows users to typeset
-Persian/Arabic properly. The current version is 0.161 and it will be
+Persian/Arabic properly. The current version is 0.16111 and it will be
developed to meet the needs of Persian typesetting properly.
In order to use XePersian without getting any problem, the users are
@@ -33,4 +35,4 @@ Please report any bugs to the author (vafa.khalighi@students.mq.edu.au).
-------------------------------
Vafa Khalighi
-2008/07/12
+2008/07/13
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/beamer-example-3.pdf b/Master/texmf-dist/doc/xelatex/xepersian/beamer-example-3.pdf
index 30cf91d8c64..a9e46da51e3 100644
--- a/Master/texmf-dist/doc/xelatex/xepersian/beamer-example-3.pdf
+++ b/Master/texmf-dist/doc/xelatex/xepersian/beamer-example-3.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/beamer-example1.pdf b/Master/texmf-dist/doc/xelatex/xepersian/beamer-example1.pdf
index fa5d9d375b0..21124df32fd 100644
--- a/Master/texmf-dist/doc/xelatex/xepersian/beamer-example1.pdf
+++ b/Master/texmf-dist/doc/xelatex/xepersian/beamer-example1.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/beamer-example2.pdf b/Master/texmf-dist/doc/xelatex/xepersian/beamer-example2.pdf
index 63d585de041..040f6b60edd 100644
--- a/Master/texmf-dist/doc/xelatex/xepersian/beamer-example2.pdf
+++ b/Master/texmf-dist/doc/xelatex/xepersian/beamer-example2.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/beamer-example2.tex b/Master/texmf-dist/doc/xelatex/xepersian/beamer-example2.tex
index 7ccaca660b3..951b8debb72 100644
--- a/Master/texmf-dist/doc/xelatex/xepersian/beamer-example2.tex
+++ b/Master/texmf-dist/doc/xelatex/xepersian/beamer-example2.tex
@@ -37,9 +37,7 @@ $-3>-4\Rightarrow (-3)^2<(-4)^2$
\begin{frame}
\frametitle{ویژگیهای \eng{\XePersian}}
\begin{farsi}
-\begin{itemize}
-\item
-\end{itemize}
+
\end{farsi}
\end{frame}
\end{document}
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/user-guide.pdf b/Master/texmf-dist/doc/xelatex/xepersian/user-guide.pdf
index 4a11955c702..9c55483da3f 100644
--- a/Master/texmf-dist/doc/xelatex/xepersian/user-guide.pdf
+++ b/Master/texmf-dist/doc/xelatex/xepersian/user-guide.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/xepersian/user-guide.tex b/Master/texmf-dist/doc/xelatex/xepersian/user-guide.tex
index 6a58b5a7971..c46e906243d 100644
--- a/Master/texmf-dist/doc/xelatex/xepersian/user-guide.tex
+++ b/Master/texmf-dist/doc/xelatex/xepersian/user-guide.tex
@@ -1,6 +1,8 @@
-\documentclass{bookest}
+\documentclass{report}
\usepackage{xepersian}
-\title{حروف‌چینی فارسی در \eng{\XePersian}\\[0.2cm]نسخهٔ ۰/۱۶۱}
+\pagestyle{headings}
+\usepackage[top=2.5cm,right=2.5cm,bottom=2.5cm,left=2.5cm]{geometry}
+\title{حروف‌چینی فارسی در \eng{\XePersian}\\[0.2cm]نسخهٔ ۰/۱۶۱۱۱}
\author{وفا خلیقی\thanks{پست الکترونیک:~\eng{vafa.khalighi@students.mq.edu.au}}}
\begin{document}
\maths
@@ -8,21 +10,22 @@
\maketitle
\tableofcontents
\chapter{مقدمه}
-به حروف‌چینی فارسی ‪ ‬با ‪\eng{\XePersian} ‬خوش آمدید. هدف \eng{\XePersian} ارائه یک بستهٔ کاملاً کامل و پایدار برای حروف‌چینی است. لطفاً به خاطر داشته باشید که \eng{\XePersian} هنوز در حالت آزمایش است و این نسخهٔ ۰/۱۶۱ از آن است. من سعی کرده‌ام، می‌کنم و خواهم کرد تا تمام امکانات حروف‌چینی فارسی را در \eng{\XePersian} جمع کنم. اما این خود نیاز به آزمایش و امتحان دارد تا اشکالات پیدا و رفع شود.
+به حروف‌چینی فارسی ‪ ‬با ‪\eng{\XePersian} ‬خوش آمدید. هدف \eng{\XePersian} ارائه یک بستهٔ کاملاً کامل و پایدار برای حروف‌چینی است. لطفاً به خاطر داشته باشید که \eng{\XePersian} هنوز در حالت آزمایش است و این نسخهٔ ۰/۱۶۱۱۱ از آن است. من سعی کرده‌ام، می‌کنم و خواهم کرد تا تمام امکانات حروف‌چینی فارسی را در \eng{\XePersian} جمع کنم. اما این خود نیاز به آزمایش و امتحان دارد تا اشکالات پیدا و رفع شود.
لطفاً قبل از استفاده از \eng{\XePersian} این سند را بدقت بخوانید تا با دستورات و امکانات \eng{\XePersian} آشنا شوید.
همچنین اگر اشکالی، پیشنهادی و یا سؤالی دارید، می‌توانید آن را به نویسندهٔ \eng{\XePersian} گزارش دهید تا مؤلف \eng{\XePersian} بتواند نسخهٔ بعدی کاملتری را ارائه دهد.
-دوست دارم از ته قلبم از آقای \eng{Jonathan Kew } برای پشتیبانی‌ها و اعتمادشان به من تشکر کنم.
+دوست دارم از صمیم قلب از آقای \eng{Jonathan Kew } برای پشتیبانی‌ها و اعتمادشان به من تشکر کنم.
در اینجا نیز دوست دارم از مسئولان پروژه‌های تک‌پارسی و فارسی‌تک تشکر و قدردانی کنم به این خاطر که نوشتن \eng{\XePersian} ممکن نبود مگر با مطالعهٔ کدهای این دو پروژه. همچنین تعدادی از امکانات فارسی‌تک و تک‌پارسی در بسته گنجانده شده است.
در پایان نیز دوست دارم صمیمانه از دوستان خوب و نازنینم در وبلاگ فارسی‌لاتک، آقایان مصطفی واحدی، مهدی امیدعلی، مرتضی خدادادیان، وحید قاسمیان و بسیاری از دوستان دیگر تشکر کنم. بدون نظرات و پشتیبانی‌های این دوستان، من نمی‌توانستم انگیزهٔ لازم را در انجام این کار پیدا کنم.
\chapter{فلسفه و دستورات}
فلسفهٔ \eng{\XePersian} این است که یک استفاده کنندهٔ معمولی باید قادر باشد به راحتی به حروف‌چینی فارسی بپردازد. در حال حاضر \eng{\XePersian} با کلاسهای \eng{article, amsart, amsbook, report, book, bookest, refrep} و \eng{beamer} به زیبایی و آسانی کار می‌کند. در هر نسخه از \eng{\XePersian} تلاش بر این است تا حداقل سه کلاس دیگر نیز به آن اضافه شود. همچنین در هر نسخه بسته‌های زیادی نیز به \eng{\XePersian} اضافه خواهند شد تا کاربران آزادی کامل در حروف‌چینی فارسی داشته باشند.
-\section{فونتهای فارسی}
-تعدادی فونتهای فارسی مناسب با \eng{\XePersian} عرضه می‌شوند. این فونتها در پوشهٔ \eng{True Type Fonts} قرار دارند. لطفاً قبل از انجام هر کاری این فونتها را روی سیستم خود نصب کنید.
+
+\section{قلمهای فارسی}
+تعدادی قلمهای فارسی مناسب با \eng{\XePersian} عرضه می‌شوند. این قلمها در پوشهٔ \eng{True Type Fonts} قرار دارند. لطفاً قبل از انجام هر کاری این قلمها را روی سیستم خود نصب کنید.
\section{اسکلت یک متن فارسی ساده }
\subsection{طبقات \eng{article} و \eng{amsart}}
\setLR
@@ -105,15 +108,14 @@ $\vdots$
\section{نکات}
\begin{itemize}
\item \eng{\XePersian}
-فونت نازلی را برای فونت فارسی به عنوان پیش‌فرض استفاده می‌کند لذا باید این فونت را روی سیستم خود نصب کرده باشید. اگر می‌خواهید از فونت دیگری به عنوان فونت فارسی استفاده کنید، می‌توانید دستور زیر را در پیش‌درآمد فایل خود قرار دهید:
+قلم نازلی را برای قلم فارسی به عنوان پیش‌فرض استفاده می‌کند لذا باید این قلم را روی سیستم خود نصب کرده باشید. اگر می‌خواهید از قلم دیگری به عنوان قلم فارسی استفاده کنید، می‌توانید دستور زیر را در پیش‌درآمد فایل خود قرار دهید:
\setLR
\verb|\newfontinstance\farsifont[Script=Arabic,Scale=1.2,Mapping=farsidigits]{name of your font}|
\setRL
-\item
-همچنین باید فونت ایران نستعلیق را روی سیستم خود نصب کرده باشید زیرا این فونت در نماد \eng{\XePersian} به کار رفته است.
+
\item \eng{\XePersian}
-فونت شهرزاد را برای فونت عربی به عنوان پیش‌فرض استفاده می‌کند لذا باید این فونت را روی سیتم خود نصب کرده باشید. اگر می‌خواهید از فونت دیگری به عنوان فونت عربی استفاده کنید، می‌توانید دستور زیرا را در پیش‌درآمد فایل خود قرار دهید:
+قلم شهرزاد را برای قلم عربی به عنوان پیش‌فرض استفاده می‌کند لذا باید این قلم را روی سیتم خود نصب کرده باشید. اگر می‌خواهید از قلم دیگری به عنوان قلم عربی استفاده کنید، می‌توانید دستور زیرا را در پیش‌درآمد فایل خود قرار دهید:
\setLR
\verb|\newfontinstance\arabicfont[Script=Arabic,Scale=1.2]{name of your font}|
@@ -280,7 +282,7 @@ $\vdots$
\subsection{حروف‌چینی شعر نو}
حروف‌چینی شعر نو نیز در محیطی به نام \eng{newpoem} امکان پذیر است. این محیط دارای دو حالت معمولی و ستاره‌دار می‌باشد.
\section{تهیه اسلاید}
-به آسانی می‌توانید اسلایدهای زیبایی را با کلاس \eng{beamer} در \eng{\XePersian} درست کنید. مثالی نیز در پوشهٔ \eng{doc} موجود می‌باشد. در نسخه‌های بعدی تلاش خواهد شد تا کلاسها و بسته‌های مختلف و متنوع دیگری را برای تهیه اسلاید در \eng{\XePersian} فراهم آورد.
+به آسانی می‌توانید اسلایدهای زیبایی را با کلاس \eng{beamer} در \eng{\XePersian} درست کنید. سه مثال نیز در پوشهٔ \eng{doc} موجود می‌باشد. در نسخه‌های بعدی تلاش خواهد شد تا کلاسها و بسته‌های مختلف و متنوع دیگری را برای تهیه اسلاید در \eng{\XePersian} فراهم آورد.
\section{نوشتهٔ سرصفحه}
برای فعال کردن نوشتهٔ سر صفحه سه راه وجود دارد:
\begin{itemize}
@@ -311,5 +313,46 @@ $\vdots$
\verb|\end{multicols}|
\setRL
+\chapter{تغییرات جدید}
+\begin{enumerate}
+\item
+اصلاح چند باگ بزرگ.
+\item
+اصلاح عدم سازگاری \eng{xepersian} با نسخهٔ جدید \eng{bidi}
+\item
+درست چاپ شدن شماره بخش‌ها، فصل‌ها، قسمت‌ها، زیرقسمت‌ها و زیر زیر قسمت‌ها (در نسخهٔ قبلی این شماره‌ها از سمت مخالف (چپ) شروع می‌شدند).
+\item
+تغییر نوع شماره‌گذاری صفحه، بخش، فصل، قسمت، زیرقسمت و زیر زیر قسمت برای سازگاری کامل با سایر بسته‌ها.
+\item
+اضافه کردن امکان داشتن شماره صفحه به ترتیب حروف الفبای فارسی، برای عوض کردن شماره صفحه از عددی به حروفی کافی است فرمان \verb|\pagenumbering{farsi}| را به کار ببرید و اگر دوباره دوست داشتید شمارهٔ صفحه را از حروفی به عددی تغییر دهید کافی است از فرمان \verb|\pagenumbering{arabic}| استفاده کنید.
+\item
+امکان داشتن جدولی که در بعضی از خانه‌های آن بتوان به راحتی انگلیسی نوشت. لطفاً به مثال زیر توجه کنید:
+\begin{center}
+\begin{tabular}{|r|r|}\hline
+من و تو&تو و من\\ \hline
+me and you&you and me\\ \hline
+\end{tabular}
+\end{center}
+جدول بالا با کد زیر تولید شده است:
+
+\setLR
+\verb|\documentclass{article}|\\
+\verb|\usepackage{xepersian}|\\
+\verb|\begin{document}|\\
+\verb|\begin{farsi}|\\
+\verb|\begin{center}|\\
+\verb|\begin{tabular}|\eng{\texttt{\{|r|r|\}}}\verb|\hline|\\
+\textfarsi{من و تو}\verb|&|\textfarsi{تو و من}\verb|\\ \hline|\\
+\verb|me and you&you and me\\ \hline|\\
+\verb|\end{tabular}|\\
+\verb|\end{center}|\\
+\verb|\end{farsi}|\\
+\verb|\end{document}|
+\setRL
+
+\item
+امکان داشتن شماره پیوست بر حسب حروف الفبا.
+
+\end{enumerate}
\end{farsi}
\end{document}
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty
index bc42b960a37..f11bcc2adaa 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty
+++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{xepersian}[2008/07/12 v0.161
+\ProvidesPackage{xepersian}[2008/07/13 v0.16111
Typesetting Persian with XeTeX]
\RequirePackage{amssymb}
\RequirePackage{graphicx}
@@ -12,10 +12,8 @@
\newfontinstance\farsifont[Script=Arabic,Scale=1.2,Mapping=farsidigits]{Nazli}
\newfontinstance\arabicfont[Script=Arabic,Scale=1.2]{Scheherazade}
-\newfontinstance\logofont[Script=Arabic,Scale=1.2]{IranNastaliq}
\makeatletter
-\renewcommand{\thepage}{\textfarsi{\the\c@page}}
-\renewcommand{\thepart}{\textfarsi{\the\c@part}}
+
%
\renewcommand{\thefootnote}{\textfarsi{\arabic{footnote}}}
\renewcommand{\thefigure}{\textfarsi{\arabic{figure}}}
@@ -30,87 +28,110 @@
\renewcommand{\appendixname}{\textfarsi{پیوست}}%
\renewcommand{\indexname}{\textfarsi{نمایه}}%
\@ifclassloaded{article}{%
-\renewcommand{\thesection}{\textfarsi{\the\c@section}}
-\renewcommand{\thesubsection}{\textfarsi{\the\c@section.\the\c@subsection}}
-\renewcommand{\thesubsubsection}{\textfarsi{\the\c@section.\the\c@subsection.\the\c@subsubsection}}
\renewcommand{\refname}{\textfarsi{مراجع}}%
\renewcommand{\abstractname}{\textfarsi{چکیده}}%
-\RequirePackage{makeidx}
-\RequirePackage{robustindex}
-\makeindex
+\renewcommand\appendix{\par
+ \setcounter{section}{0}%
+ \setcounter{subsection}{0}%
+ \gdef\thesection{\@farsi\c@section}}
}{}
\@ifclassloaded{amsart}{%
-\renewcommand{\thesection}{\textfarsi{\the\c@section}}
-\renewcommand{\thesubsection}{\textfarsi{\the\c@section.\the\c@subsection}}
-\renewcommand{\thesubsubsection}{\textfarsi{\the\c@section.\the\c@subsection.\the\c@subsubsection}}
\renewcommand{\refname}{\textfarsi{مراجع}}%
\renewcommand{\abstractname}{\textfarsi{چکیده}}%
-\RequirePackage{robustindex}
-\makeindex
+\renewcommand\appendix{\par
+ \setcounter{section}{0}%
+ \setcounter{subsection}{0}%
+ \gdef\thesection{\@farsi\c@section}}
}{}
\@ifclassloaded{report}{%
-\renewcommand{\thechapter}{\textfarsi{\the\c@chapter}}
-\renewcommand{\thesection}{\textfarsi{\the\c@chapter.\the\c@section}}
-\renewcommand{\thesubsection}{\textfarsi{\the\c@chapter.\the\c@section.\the\c@subsection}}
-\renewcommand{\thesubsubsection}{\textfarsi{\the\c@chapter.\the\c@section.\the\c@subsection.\the\c@subsubsection}}
\renewcommand{\bibname}{\textfarsi{کتاب‌نامه}}%
\renewcommand{\abstractname}{\textfarsi{چکیده}}%
\renewcommand{\chaptername}{\textfarsi{فصل}}%
\renewcommand{\partname}{\textfarsi{بخش}}%
-\RequirePackage{makeidx}
-\RequirePackage{robustindex}
-\makeindex
+%to make appendix numbering farsi
+\renewcommand\appendix{\par
+ \setcounter{chapter}{0}%
+ \setcounter{section}{0}%
+ \gdef\@chapapp{\appendixname}%
+ \gdef\thechapter{\@farsi\c@chapter}
+}%end appendix
}{}
\@ifclassloaded{amsbook}{%
-\renewcommand{\thechapter}{\textfarsi{\the\c@chapter}}
-\renewcommand{\thesection}{\textfarsi{\the\c@chapter.\the\c@section}}
-\renewcommand{\thesubsection}{\textfarsi{\the\c@chapter.\the\c@section.\the\c@subsection}}
-\renewcommand{\thesubsubsection}{\textfarsi{\the\c@chapter.\the\c@section.\the\c@subsection.\the\c@subsubsection}}
\renewcommand{\bibname}{\textfarsi{کتاب‌نامه}}%
\renewcommand{\chaptername}{\textfarsi{فصل}}%
\renewcommand{\partname}{\textfarsi{بخش}}%
-\RequirePackage{robustindex}
-\makeindex
+%to make appendix numbering farsi
+\renewcommand\appendix{\par
+ \setcounter{chapter}{0}%
+ \setcounter{section}{0}%
+ \gdef\@chapapp{\appendixname}%
+ \gdef\thechapter{\@farsi\c@chapter}
+}%end appendix
}{}
\@ifclassloaded{bookest}{%
\NoHyper
-\renewcommand{\thechapter}{\textfarsi{\the\c@chapter}}
-\renewcommand{\thesection}{\textfarsi{\the\c@chapter.\the\c@section}}
-\renewcommand{\thesubsection}{\textfarsi{\the\c@chapter.\the\c@section.\the\c@subsection}}
-\renewcommand{\thesubsubsection}{\textfarsi{\the\c@chapter.\the\c@section.\the\c@subsection.\the\c@subsubsection}}
\renewcommand{\bibname}{\textfarsi{کتاب‌نامه}}%
\renewcommand{\chaptername}{\textfarsi{فصل}}%
\renewcommand{\partname}{\textfarsi{بخش}}%
-\RequirePackage{makeidx}
-\RequirePackage{robustindex}
-\makeindex
+%to make appendix numbering farsi
+\renewcommand\appendix{\par
+ \setcounter{chapter}{0}%
+ \setcounter{section}{0}%
+ \gdef\@chapapp{\appendixname}%
+ \gdef\thechapter{\@farsi\c@chapter}
+}%end appendix
}{}
\@ifclassloaded{book}{%
-\renewcommand{\thechapter}{\textfarsi{\the\c@chapter}}
-\renewcommand{\thesection}{\textfarsi{\the\c@chapter.\the\c@section}}
-\renewcommand{\thesubsection}{\textfarsi{\the\c@chapter.\the\c@section.\the\c@subsection}}
-\renewcommand{\thesubsubsection}{\textfarsi{\the\c@chapter.\the\c@section.\the\c@subsection.\the\c@subsubsection}}
\renewcommand{\bibname}{\textfarsi{کتاب‌نامه}}%
\renewcommand{\chaptername}{\textfarsi{فصل}}%
\renewcommand{\partname}{\textfarsi{بخش}}%
-\RequirePackage{makeidx}
-\RequirePackage{robustindex}
-\makeindex
+%to make appendix numbering farsi
+\renewcommand\appendix{\par
+ \setcounter{chapter}{0}%
+ \setcounter{section}{0}%
+ \gdef\@chapapp{\appendixname}%
+ \gdef\thechapter{\@farsi\c@chapter}
+}%end appendix
}{}
\@ifclassloaded{refrep}{%
-\renewcommand{\thechapter}{\textfarsi{\the\c@chapter}}
-\renewcommand{\thesection}{\textfarsi{\the\c@chapter.\the\c@section}}
-\renewcommand{\thesubsection}{\textfarsi{\the\c@chapter.\the\c@section.\the\c@subsection}}
-\renewcommand{\thesubsubsection}{\textfarsi{\the\c@chapter.\the\c@section.\the\c@subsection.\the\c@subsubsection}}
\renewcommand{\bibname}{\textfarsi{کتاب‌نامه}}%
\renewcommand{\chaptername}{\textfarsi{فصل}}%
\renewcommand{\partname}{\textfarsi{بخش}}%
-\RequirePackage{makeidx}
-\RequirePackage{robustindex}
-\makeindex
+%to make appendix numbering farsi
+\renewcommand\appendix{\par
+ \setcounter{chapter}{0}%
+ \setcounter{section}{0}%
+ \gdef\@chapapp{\appendixname}%
+ \gdef\thechapter{\@farsi\c@chapter}
+}%end appendix
}{}
%\renewcommand{\prefacename}{\textfarsi{پیشگفتار}}%
+
+
+%We redefine arabic counter style
+\def\@@number#1{\ifmmode\else\beginL\fi{\farsifont #1}\ifmmode\else\endL\fi}
+\def\@@latin#1{\@@number{{\@fromrl#1}}}
+\def\@number{\protect\@@number}
+\def\@latin{\protect\@@latin}
+\let\@farsi=\@arabic
+\let\@@arabic=\@arabic
+\let\@@roman=\@roman
+\let\@@Roman=\@Roman
+\let\@@alph=\@alph
+\let\@@Alph=\@Alph
+\def\@arabic#1{\ifmmode\else\@number{\@@arabic#1}\fi}
+\def\@Roman#1{\@latin{\@@Roman#1}}
+\def\arabicnorl#1{\expandafter\@@arabic\csname c@#1\endcsname}
+\def\make@lr#1{\begingroup
+ \toks@=\expandafter{#1}%
+ \edef\x{\endgroup
+ \def\noexpand#1{\noexpand\@number{\the\toks@}}}%
+ \x}
+\def\@character#1{\ifcase#1\or الف\or ب\or پ\or ت\or ث\or ج\or چ\or ح\or خ\or د\or ذ\or ر\or ز\or س\or ش\or ص\or ض\or ع\or غ\or ف\or ق\or ک\or گ\or ل\or م\or ن\or ه\or و\or ی\fi}
+
+\def\@farsi#1{\textfarsi{\@character{\@@arabic#1}}}
+
%To convert the MILADI date to SHAMSI date, taken from farsitex
\newif\ifFT@leap \newif\ifFT@kabiseh
@@ -511,7 +532,6 @@
\AtBeginDocument{\maths}
-
\endinput