diff options
author | Karl Berry <karl@freefriends.org> | 2011-10-09 23:48:17 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-10-09 23:48:17 +0000 |
commit | 68d5f2bed16d2f2f0176d8bfcc468e12113a1bbf (patch) | |
tree | 490c65bf2d562e9005273b84a24e2bc57734cff8 /Master/texmf-dist/source/xelatex | |
parent | 09ab3a5d73d4bd916aa1fdfd114753087c851fe4 (diff) |
xepersian (9oct11)
git-svn-id: svn://tug.org/texlive/trunk@24249 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/xelatex')
-rw-r--r-- | Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx b/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx index 170b628e59e..d010163c56a 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 -v1.2.5 +v1.2.8 XePersian is a package written for XeLaTeX that allows users to typeset -Persian easily. The current version is 1.2.5 and it will be developed to +Persian easily. The current version is 1.2.8 and it will be developed to meet the needs of Persian typesetting properly. The XePersian package is independent of any operating system, meaning it @@ -207,7 +207,7 @@ by Vafa Khalighi. % Persian for \LaTeXe{} over \XeTeX} % \author{Vafa Khalighi\\ % \url{vafaklg@gmail.com}} -% \date{\today\qquad Version 1.2.5} +% \date{\today\qquad Version 1.2.8} %\maketitle %\tableofcontents %\section{Introduction} @@ -227,7 +227,7 @@ by Vafa Khalighi. %Description: The package supports Persian %typesetting, using fonts provided in the distribution. %Copyright © 2008-2012 Vafa Khalighi -%v1.2.5, 2012/01/01 +%v1.2.8, 2012/01/01 %License: LaTeX Project Public License, version 1.3c or higher (your choice) %Location on CTAN: /macros/xetex/latex/xepersian %\end{lstlisting} @@ -3109,7 +3109,7 @@ by Vafa Khalighi. \eqcommand{جمعصفحه}{pagetotal} \eqcommand{بلندایکاغذ}{paperheight} \eqcommand{پهنایکاغذ}{paperwidth} -\eqcommand{بند}{par} +\bidi@csdefcs{بند}{par}% this is an exception since \par is redefined only in some circumstances \eqcommand{پاراگراف}{paragraph} \eqcommand{موازی}{parallel} \eqcommand{کادرپار}{parbox} @@ -3909,12 +3909,13 @@ by Vafa Khalighi. %\fi % \subsection{\textsf{loadingorder-bidi-xepersian.def}} % \begin{macrocode} -\ProvidesFile{loadingorder-bidi-xepersian.def}[2010/07/25 v0.2 making sure that xepersian is the last package loaded] +\ProvidesFile{loadingorder-bidi-xepersian.def}[2012/01/01 v0.3 making sure that xepersian is the last package loaded] \bidi@isloaded{algorithmic} \bidi@isloaded{algorithm} \bidi@isloaded{backref} \bidi@isloaded{enumerate} \bidi@isloaded{tocloft} +\bidi@isloaded{url} \AtBeginDocument{ \if@bidi@algorithmicloaded@\else \bidi@isloaded[\PackageError{xepersian}{Oops! you have loaded package algorithmic after xepersian package. Please load package algorithmic before xepersian package, and then try to run xelatex on your document again}{}]{algorithmic} @@ -3931,6 +3932,9 @@ by Vafa Khalighi. \if@bidi@tocloftloaded@\else \bidi@isloaded[\PackageError{xepersian}{Oops! you have loaded package tocloft after xepersian package. Please load package tocloft before xepersian package, and then try to run xelatex on your document again}{}]{tocloft} \fi% + \if@bidi@urlloaded@\else + \bidi@isloaded[\PackageError{xepersian}{Oops! you have loaded package url after xepersian package. Please load package url before xepersian package, and then try to run xelatex on your document again}{}]{url} + \fi% } % \end{macrocode} % \iffalse @@ -3942,9 +3946,7 @@ by Vafa Khalighi. \ProvidesFile{localise-xepersian.def}[2010/07/25 v0.2a Persian localisation of LaTeX2e] \newcommand{\makezwnjletter}{\catcode`=11\relax} \makezwnjletter -\newcommand*{\eqcommand}[2]{% -\expandafter\@ifdefinable \csname#1\endcsname{% -\expandafter\def\csname#1\expandafter\endcsname{\csname#2\endcsname}}} +\newcommand*{\eqcommand}[2]{\if@bidi@csprimitive{#2}{\bidi@csletcs{#1}{#2}}{\bidi@csdefcs{#1}{#2}}} \newcommand*{\eqenvironment}[2]{\newenvironment{#1}{\csname#2\endcsname}{\csname end#2\endcsname}} \input{commands-ltx.def} \input{commands-xepersian.def} @@ -5014,7 +5016,7 @@ U+003E U+003E <> U+00BB ; >> -> RIGHT POINTING GUILLEMET % \subsection{\textsf{xepersian.sty}} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\def\xepersianversion{v1.2.5} +\def\xepersianversion{v1.2.8} \def\xepersiandate{2012/01/01} \ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space Persian typesetting in XeLaTeX] @@ -5497,7 +5499,7 @@ number is 999,999,999.}% \providecommand*{\xpg@warning}[1]{% \PackageWarning{XePersian}% {#1}} -\if@bidi@csdef{abjadnumeral}{}{% +\if@bidi@csundef{abjadnumeral}{% \def\abjadnumeral#1{% \ifnum#1>1999 \xpg@warning{Illegal value (#1) for abjad numeral} {#1} \else @@ -5533,7 +5535,7 @@ number is 999,999,999.}% \def\abj@num@iv#1{% \ifcase#1\or غ\fi \ifnum#1=\z@\fi\abj@num@iii} -} +}{} \let\@latinalph\@alph% \let\@latinAlph\@Alph% \def\PersianAlphs{% @@ -6487,7 +6489,7 @@ indexblock environment may only appear inside frontpage environment. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{xepersian-mathsdigitspec} - [2011/09/22 v1.0.0 Unicode Persian maths digits in XeLaTeX] + [2012/01/01 v1.0.1 Unicode Persian maths digits in XeLaTeX] \ExplSyntaxOn \bool_set_false:N \g_fontspec_math_bool \ExplSyntaxOff @@ -6579,7 +6581,7 @@ indexblock environment may only appear inside frontpage environment. \SetMathCode{`7}{\mathalpha}{OPERATORS}{`7} \SetMathCode{`8}{\mathalpha}{OPERATORS}{`8} \SetMathCode{`9}{\mathalpha}{OPERATORS}{`9} - \SetMathCode{`\%}{\mathbin}{OPERATORS}{`٪} + \SetMathCharDef{\%}{\mathbin}{OPERATORS}{`٪} \SetMathCharDef{\decimalseparator}{\mathpunct}{OPERATORS}{"066B} \cs_set_eq:NN \mathbf \new@mathbf \cs_set_eq:NN \mathit \new@mathit |