summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r--Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx61
1 files changed, 45 insertions, 16 deletions
diff --git a/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx b/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx
index 7ff3a2a94e6..674e63f7dd9 100644
--- a/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx
+++ b/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx
@@ -5,10 +5,10 @@
%<*readme>
_________________
The XePersian package
-v11.142
+v11.143
XePersian is a package written for XeLaTeX that allows users to typeset
-Persian easily. The current version is 11.142 and it will be developed to
+Persian easily. The current version is 11.143 and it will be developed to
meet the needs of Persian typesetting properly.
The XePersian package is independent of any operating system, meaning it
@@ -22,6 +22,14 @@ in the documentation.
To get help, please explore http://forum.parsilatex.com
+________________________________________________________
+How to file bug reports and follow development of XePersian package
+
+The XePersian package is developed on <https://github.com/vafa/xepersian>.
+
+Users are encouraged to offer suggestions and file bug reports on
+the github issue tracker: <https://github.com/vafa/xepersian/issues>.
+
______________
Vafa Khalighi
vafakhlg@gmail.com
@@ -148,7 +156,7 @@ by Vafa Khalighi.
%
%<*driver>
\documentclass{ltxdoc}
-\usepackage{graphicx,wrapfig}
+\usepackage{graphicx,wrapfig,framed}
\usepackage{url}
\usepackage{supertabular}
\usepackage{fontspec}
@@ -159,6 +167,8 @@ by Vafa Khalighi.
\definecolor{xepersianblue}{rgb}{0.1,0.2,0.8}
\usepackage[numbered]{hypdoc}
\definecolor{myred}{rgb}{0.65,0.04,0.07}
+\definecolor{TFFrameColor}{rgb}{0.1,0.2,0.8}
+\definecolor{TFTitleColor}{rgb}{1,1,1}
\hypersetup{pdftitle={The XePersian Package (Persian for \LaTeXe{} over XeTeX)},pdfauthor={Vafa Khalighi <vafakhlg@gmail.com>},linkcolor=xepersianblue,urlcolor=xepersianblue,citecolor=xepersianblue}
\usepackage{bidi}
\setlength\columnseprule{.4pt}
@@ -214,11 +224,17 @@ by Vafa Khalighi.
% \makeatletter
% \title{The \textsf{\XePersian} Package\\[10pt]
% \includegraphics[width=0.5\textwidth]{xepersian-logo}\\[10pt]
-% Persian for \LaTeXe{} over \XeTeX}
+% Persian for \LaTeXe{} over \XeTeX\\
+%\url{https://github.com/vafa/xepersian}}
% \author{Vafa Khalighi\\
% \url{vafakhlg@gmail.com}}
-% \date{\today\qquad Version 11.142}
+% \date{\today\qquad Version 11.143}
%\maketitle
+%\begin{titled-frame}{How to file bug reports and follow development of \textsf{XePersian} package}
+%The \textsf{XePersian} package is developed on \url{https://github.com/vafa/xepersian}. Users are encouraged to offer suggestions and file bug reports on the github issue tracker:
+%\url{https://github.com/vafa/xepersian/issues}.
+%\end{titled-frame}
+%\newpage
%\tableofcontents
%\section{Introduction}
%\XePersian\ is a package for typesetting Persian/English documents with \XeLaTeX. The package includes adaptations for use with many other commonly-used packages.
@@ -237,7 +253,7 @@ by Vafa Khalighi.
%Description: The package supports Persian
%typesetting, using fonts provided in the distribution.
%Copyright © 2008-2012 Vafa Khalighi
-%v11.142, 2012/07/25
+%v11.143, 2012/07/25
%License: LaTeX Project Public License, version 1.3c or higher (your choice)
%Location on CTAN: /macros/xetex/latex/xepersian
%\end{lstlisting}
@@ -1327,8 +1343,11 @@ by Vafa Khalighi.
%\bicsintabular{پانویس}{LTRfootnote}
%\bicsintabular{متن‌پانویس}{LTRfootnotetext}
%\bicsintabular{پانویس‌عنوان}{LTRthanks}
+%\bicsintabular{روزپارسی}{persianday}
%\bicsintabular{قلم‌پارسی}{persianfont}
%\bicsintabular{اعدادفرمولهاپارسی}{PersianMathsDigits}
+%\bicsintabular{ماه‌پارسی}{persianmonth}
+%\bicsintabular{سال‌پارسی}{persianyear}
%\bicsintabular{علامت‌چپ‌نقل‌قول‌پارسی‌}{plq}
%\bicsintabular{علامت‌راست‌نقل‌قول‌پارسی}{prq}
%\bicsintabular{خط‌زیرنویس‌راست}{rightfootnoterule}
@@ -1722,10 +1741,14 @@ by Vafa Khalighi.
%\end{itemize}
%\subsection{Miscellaneous Commands}
%\begin{BDef}
+%\Lcs{persianyear}\quad\Lcs{persianmonth}\quad\Lcs{persianday}\\
%\Lcs{today}\quad\Lcs{latintoday}\quad\Lcs{twocolumnstableofcontents}\quad\Lcs{XePersian}\\
%\Lcs{plq}\quad\Lcs{prq}
%\end{BDef}
%\begin{itemize}
+%\item \Lcs{persianyear} is Persian equivalent of \Lcs{year}.
+%\item \Lcs{persianmonth} is Persian equivalent of \Lcs{month}.
+%\item \Lcs{persianday} is Persian equivalent of \Lcs{day}.
%\item \Lcs{today} typesets current Persian date and \Lcs{latintoday} typesets current Latin date.
%\item \Lcs{twocolumnstableofcontents} typesets table of contents in two columns. This requires that you have loaded \textsf{multicol} package before \textsf{\XePersian} package, otherwise an error will be issued.
%\item \Lcs{XePersian} typesets \XePersian's logo.
@@ -3612,7 +3635,7 @@ by Vafa Khalighi.
%\fi
% \subsection{\textsf{commands-xepersian.def}}
% \begin{macrocode}
-\ProvidesFile{commands-xepersian.def}[2010/07/25 v0.1 Persian localisation of XePersian commands]
+\ProvidesFile{commands-xepersian.def}[2012/07/25 v0.2 Persian localisation of XePersian commands]
\eqcommand{خط‌زیرنویس‌خودکار}{autofootnoterule}
\eqcommand{اعدادفرمولهاخودکار}{AutoMathsDigits}
\eqcommand{اعدادفرمولهالاتین}{DefaultMathsDigits}
@@ -3631,8 +3654,11 @@ by Vafa Khalighi.
\eqcommand{پانویس}{LTRfootnote}
\eqcommand{متن‌پانویس}{LTRfootnotetext}
\eqcommand{پانویس‌عنوان}{LTRthanks}
+\eqcommand{روزپارسی}{persianday}
\eqcommand{قلم‌پارسی}{persianfont}
\eqcommand{اعدادفرمولهاپارسی}{PersianMathsDigits}
+\eqcommand{ماه‌پارسی}{persianmonth}
+\eqcommand{سال‌پارسی}{persianyear}
\eqcommand{علامت‌چپ‌نقل‌قول‌پارسی}{plq}
\eqcommand{علامت‌راست‌نقل‌قول‌پارسی}{prq}
\eqcommand{خط‌زیرنویس‌راست}{rightfootnoterule}
@@ -5400,7 +5426,7 @@ U+003E U+003E <> U+00BB ; >> -> RIGHT POINTING GUILLEMET
% \subsection{\textsf{xepersian.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\def\xepersianversion{v11.142}
+\def\xepersianversion{v11.143}
\def\xepersiandate{2012/07/25}
\ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space
Persian typesetting in XeLaTeX]
@@ -5563,8 +5589,7 @@ Location on CTAN: /macros/xetex/latex/xepersian}
\def\persian{\RTL\PersianAlphs\@RTL@footnotetrue\setpersianfont}
\def\endpersian{\endRTL}
\let\originaltoday=\today
-\def\today{\lr{\originaltoday}}
-\let\latintoday\today
+\def\latintoday{\lr{\originaltoday}}
\def\today{\rl{\persiantoday}}
\def \@LTRmarginparreset {%
\reset@font
@@ -7231,7 +7256,7 @@ indexblock environment may only appear inside frontpage environment.
% \subsection{\textsf{xepersian-persiancal.sty}}
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{xepersian-persiancal}[2010/07/25 v0.1 provides Persian calendar]
+\ProvidesPackage{xepersian-persiancal}[2012/07/25 v0.2 provides Persian calendar]
\newif\ifXePersian@leap \newif\ifXePersian@kabiseh
\newcount\XePersian@i \newcount\XePersian@y \newcount\XePersian@m \newcount\XePersian@d
@@ -7258,7 +7283,7 @@ indexblock environment may only appear inside frontpage environment.
\newcount\XePersian@sn
\newcount\XePersian@mminusone
-\def\persiantoday{%
+
\XePersian@y=\year \XePersian@m=\month \XePersian@d=\day
\XePersian@temp=\XePersian@y
\divide\XePersian@temp by 100\relax
@@ -7387,10 +7412,14 @@ indexblock environment may only appear inside frontpage environment.
\else
\XePersian@d = \XePersian@dn \advance \XePersian@d by -\XePersian@sn
\fi
-\beginL\number\XePersian@d\endL\space%
-\persianmonth{\XePersian@m}\space\beginL\number\XePersian@y\endL%
-}
-\def\persianmonth#1{\ifcase#1\or فروردین\or
+\newcommand*{\persiantoday}{%
+\number\XePersian@d\space%
+\XePersian@persian@month{\XePersian@m}\space\number\XePersian@y%
+}
+\let\persianyear\XePersian@y
+\let\persianmonth\XePersian@m
+\let\persianday\XePersian@d
+\def\XePersian@persian@month#1{\ifcase#1\or فروردین\or
اردیبهشت\or
خرداد\or تیر\or
مرداد\or